Skip to content

My Project

Show off and share your great projects here! We love pictures!
961 Topics 13.4k Posts
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Single button operated Led Strip Dimmer

    11
    6 Votes
    11 Posts
    17k Views
    JahFyahhJ
    @BartE (dutch site.. Even better) thanks for the link. I am looking for the safest way, seeing the this will not be in a quick access location. I want to put it away and only return for update/upgrades. But I will also look into an opto-coupler. Thanks for the tip.:+1:
  • Library for thresholded readings of sensors

    1
    5 Votes
    1 Posts
    1k Views
    No one has replied
  • Parking Sensor

    74
    10 Votes
    74 Posts
    45k Views
    hekH
    Wooo, cool to see it live!
  • Parts LIst

    2
    0 Votes
    2 Posts
    605 Views
    mfalkviddM
    Welcome to the MySensors commuinty @chuckyancey ! Which part list are you referring to? The recommended size of the capacitor is 4.7 uF to 470 uF. The exact capacity usually doesn't matter. The capacitor needs to handle the same voltage as the radio, so at least 3.3V. 6V is the most common I think (that's what I use)
  • Slim Node scene controller/ keypad

    18
    6 Votes
    18 Posts
    11k Views
    carlierdC
    Hello, Some pictures of my scene controller inspired by this post ! I modified the original sketch to have two functions: keyboard for my alarm (from key 1 to 9) and scene controller (from key 10 to 16). Thanks @awi for the idea and the original sketch ! [image: 1471010532684-scene-controller-1.png] [image: 1471010537792-scene-controller-2.png] [image: 1471010571979-scene-controller-3.png] [image: 1471010569054-scene-controller-4.png] David.
  • 0 Votes
    4 Posts
    3k Views
    cimba007C
    To refine your code: Try to use arduino IDEs "Tab"-Function. Add few tabs to organise your code. e.g. Tab "Network" with functions like init_rf() and just call this function from your setup() or before() method. Same with your actual sensors. Consider making an extra tab to put all the relevant functions there. I try to keep my "Main" tab as clean as possible. As I understand your code right your rf95 receiver acts as a gateway to mysensors MyMessage msg(NODE_ID, V_FLOW); // Set's up mesaaging protocol to reciever, lets it know what variables are used MyMessage vmsg(NODE_ID,V_VOLUME); // V_FLOW means that the data being sent is a flowrate, etc. All your Sensor-Nodes who send to your receiver-serial-gateway should have different IDs and your gateway should use these IDs to send the sensor date to your controller. So NODE_ID should be a variable depending on "from which node" you got your sensor date. Have a look at "MyMessage.h" // Setters for building message "on the fly" MyMessage& setType(uint8_t type); MyMessage& setSensor(uint8_t sensor); MyMessage& setDestination(uint8_t destination); You can change the message Sensor (your actual sensor no the gateway) dynamically on your gateway depending on the payload you get and from which sensor.
  • Backlit Dimmable LED Mirror with Motion Sensor

    43
    6 Votes
    43 Posts
    31k Views
    loralgL
    @petewill @mfalkvidd After looking I have the 168.. I already have some more ordered that are the 328 though. I should have looked closer when I ordered the first batch. Thanks for the help! I figured it was probably something simple I had overlooked on my end.
  • Combined Sensor RepeaterNode and sleep(SLEEP_TIME) in MySensors 2.0.0

    10
    0 Votes
    10 Posts
    3k Views
    sinczeS
    Thanks. I did not know for sure if this was still the case in 2.0.0. wait(sleepTimer); added at the bottom of loop() function. now lets rewrite the sketch with your library.
  • Blindcontroller with PB local control

    6
    0 Votes
    6 Posts
    2k Views
    S
    Again right.. but the class definition is in the BL_Control.h file (line 47) The reason not to put the logic is that i yust want some sceleton for this kind of physical controller now i don' t have to include write and reads in the class and i can re-use it maybe for a PB dimmer. That off the declaration with the pinmodes is a habbit from the plain C period and assembler adventures with the AVR. There i set my outputs to a safe state before setting the DDR(x) register. As far as i assume the DDR is only relevant when you read the input (or want to do a logic operation on the input/output state. And it is overkill to write this in C++. But for me i consider it as a good excercise. And no i don't have a question I only wanted it to publish so others can steal maybe a idea Cheers,
  • WeMos D1 R2 Gateway

    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Raindrops Detection under v2

    raindrops rainsensor
    5
    0 Votes
    5 Posts
    2k Views
    tlpeterT
    You're welcome. It was for me also a struggle to get it working.
  • Circuit drawing pen.

    5
    0 Votes
    5 Posts
    1k Views
    Nca78N
    @csa02221862 they do but when I see the prices of ink and paper it's cheaper to order pcbs online with 24h option and DHL delivery ;)
  • 5 Votes
    26 Posts
    30k Views
    M
    @afeno said: @mvader said: I have the etekcity ZAP 433 remote & outlets. I just bought a 433 mhz transceiver off ebay and hooked it up to my raspberry pi2 and sniffed the codes. Did you manage to turn on/off the etekcity outlets from the gateway? I would like to do the same on my side... But I don't know too much about radio protocols. Thanks! Yes, i have my gateway in the basement. and then i built a mysensors 433mhz repeater (arduino + NRF radio + 433 transmitter / mysensors) this one is USB powered, stays on full time, it is on the 1st floor.. I control about 7 of the etek city outlets with it. I have to say though, most of my outlets are on the 2nd floor (which is why i put the transmitter on the 1st floor and not in the basement) even with an 433 external antenna, they fail to respond 10-15% of the time, with my z wave devices, they never fail to turn on/off no matter where they are, and with my sensors devices, i can always see/talk no matter where they are.. based on that, if i had to do it again, i would either zwave those or mysensor those devices (which i will probably move to down the road). during the holidays, i controlled another 5-7 etek outlets on the 1st floor, to control holiday lights, tree lights.. etc. all of those were on the 1st floor and generally worked fine.
  • 3 in 1 incl battery monitor

    60
    1 Votes
    60 Posts
    30k Views
    carlierdC
    Hello, All nodes are still working correctly but I still want to replace DHT22. But nothing done for the moment. Not at top position on my todo list ;) David.
  • My Custom Gateway

    1
    8 Votes
    1 Posts
    1k Views
    No one has replied
  • My simple and minimalistic calculator with only two buttons

    lcd arduino attiny85
    2
    2 Votes
    2 Posts
    1k Views
    mfalkviddM
    Nice work! Reminds me of this great short story by Isaac Asimov from 1958.
  • Parking Sensor Node

    5
    3 Votes
    5 Posts
    3k Views
    Boots33B
    Updated the sketch for MySensors V2 and am now using the Adafruit Neopixel library /** ******************************* * * DESCRIPTION * A node to indicate correct parking position to allow closing of garage door. * uses a pre built IR beam "door minder" to detect car position *MySensors V2 and using Adafruit neopixel library and bounce2 library * Connect N/O contacts of Infrared device between * pin 3 and GND. * * Connect a N/O reed switch between GND and pin 2 * * Connect RGB Led strip data terminal to pin 4 * */ // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 #include "MySensors.h" #include <SPI.h> #include <Bounce2.h> #include <Adafruit_NeoPixel.h> #define NUM_LEDS 18 // How many leds are in the strip? change this to the number of LEDs in your strip #define PIN 4 // Data pin that led data will be written out over #define CHILD_ID 0 // door switch MySensors id number #define IR_PIN 3 // Arduino Digital I/O pin for infrared device #define DOOR_PIN 2 // pin garage door switch is connected to int marker = 0; // used to decide if LEDs are allowed to turn white int irValue ; // holder for ir state int doorValue ; // holder for garage door state int oldDoorValue=-1; //set to -1 to ensure current door switch status is sent at startup unsigned long startMillis = 0; // holder for the time when garage door first opens unsigned long millisNow = 0; // holder for the current time const long activeTime = 120000; // Time the sensor will stay active after garage door is opened in milliseconds. change this to suit your situation Bounce debouncerA = Bounce(); // Instantiate Bounce object 1.... iR switch Bounce debouncerB = Bounce(); // Instantiate Bounce object 2.... Garage Door switch MyMessage msg(CHILD_ID,V_TRIPPED); // Parameter 1 = number of pixels in strip // Parameter 2 = Arduino pin number (most are valid) // Parameter 3 = pixel type flags, add together as needed: // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers) // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800); void setup() { /* ----Setup the buttons as inputs and activate their internal pull-up resistor---- */ pinMode(IR_PIN,INPUT_PULLUP); //set pin as input and activate internal pull-up resistor pinMode(DOOR_PIN,INPUT_PULLUP); //set pin as input and activate internal pull-up resistor /* ---After setting up the buttons, setup debouncers---- */ debouncerA.attach(IR_PIN); debouncerA.interval(5); debouncerB.attach(DOOR_PIN); debouncerB.interval(5); strip.begin(); strip.show(); // Initialize all pixels to 'off' } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Park Sensor", "2.0"); // Register all sensors to gateway (they will be created as child devices) present(CHILD_ID, S_DOOR); // Register binary input sensor to gw } void loop() { updateSwitches(); // call function to check switches status millisNow = millis(); // get the current time if (millisNow - startMillis < activeTime){ // check to see if timeout has been reached if (doorValue == HIGH ) { // garage door is open if (irValue == LOW ) { // car is in ir beam ledChange(strip.Color(255, 0, 0)); // car is blocking ir beam,turn LEDs red } else{ ledChange(strip.Color(0, 255, 0)); // car is out of ir beam, turn LEDs green } } else{ if (marker == 1){ ledChange(strip.Color(127, 127, 127)); // door down but timer not finished. turn leds white for entry mode } } } else { // Timeout has been reached. Turn off LEDs if (marker == 1){ // check marker to only turn off if needed ledChange(strip.Color(0, 0, 0)); // turn off leds (black) marker = 0; } } } /* --------------start of functions-------------- */ /* --Update the switches status, send door state change if required -- */ void updateSwitches (){ debouncerA.update(); // IR switch debouncerB.update(); // Door switch irValue = debouncerA.read(); // get the state of the IR switch doorValue = debouncerB.read(); // get the state of the Door switch if (doorValue != oldDoorValue) { // Check if digital input has changed and send in new value if it has send(msg.set(doorValue==HIGH ? 1 : 0)); // Send in the new value if (doorValue == HIGH){ // door is open startMillis = millis(); // store start time of door opening for timeout check marker = 1; } oldDoorValue = doorValue; } } /* ----------function to change LED color------------*/ void ledChange(uint32_t c) { for(uint16_t i=0; i<strip.numPixels(); i++) { strip.setPixelColor(i, c); } strip.show(); }
  • Retrofit sensors into 240v LED Night Light : Help a novice?

    7
    0 Votes
    7 Posts
    2k Views
    SuperKrisS
    The kind of "PSU" thats is in that night light is not ideal for a mysensors application. I suggest you use this one: https://www.domoticz.com/forum/viewtopic.php?f=42&t=7832 I think using the housing is a good idea, but please throw away those electronics. Here in the netherlands we have a cheap ass store called "Action" where they sell those 433mhz controlled remote plug in switches. You get 3 of them + a remote control for just € 10,-. I think they can be a pretty good housing too.
  • Update from 1.41 to 2.0?

    5
    0 Votes
    5 Posts
    2k Views
    Dan S.D
    @tekka Thanks! Exactly what I needed

19

Online

11.7k

Users

11.2k

Topics

113.1k

Posts