Skip to content

My Project

Show off and share your great projects here! We love pictures!
962 Topics 13.4k Posts
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Hacking a remote control Hunter ceiling fan controller

    11
    3 Votes
    11 Posts
    9k Views
    dbemowskD
    @The-Profit I am sure that the arduino library and the MySensors library are different in how they talk to devices. The MySensors gateway is not only supported as a serial gateway, though I think that is the most common way that people connect. MySensors also supports an RS485 wired gateway, MQTT gateway, and a few others. Check out the "Selecting a gateway" page for more on the gateways. If you have MQTT already set up for HomeSeer, you may not need any gateay at all (could be wrong on that though), not exactly sure as I have never used MQTT. As @Tmaster mentions, you could build a dimmer sensor, but if you are going to do that, you will want to make sure you make one that is safe for inductive loads. If you don't have one for inductive loads, you could easily burn out the circuit. I have not had the time to dig into this one again, though I hope to soon. I have my hands full at the moment with my weather station node that I have been building. Once I get more done on this, I will post to this topic again.
  • I can´t see my new noods on my vera...help

    7
    0 Votes
    7 Posts
    2k Views
    dbemowskD
    I had similar problems with some of my nodes. To fix it I forced them to use the repeater as the parent node. Once I did that the nodes worked perfectly.
  • Help with irrigation LCD display

    15
    2
    0 Votes
    15 Posts
    3k Views
    core_cC
    great! it works.. happy++ The explanation: There is the variable named inSetup. Somewhere (outside any function) in the top of the sketch that variable is declared and at the same time initialized (given a value). bool inSetup = true; In the rest of the sketch, that variable's value is never changed: The value of inSetup is always the same, all the time. It's value simply remains the same. In every Arduino-sketch you're obligated to define two special functions, namely: setup() and loop(). If you don't have them in your sketch, the sketch would not compile. The setup() function is executed only once. It is called at the beginning of any Arduino sketch. It's used to do things that only need to be done one time, like setting pins to input or output, or perhaps even displaying a startup text on a connected display. The loop() function holds the code that is executed repeatedly. All of it's code is run, and when all that code is done executing (and the loop-code is finished), the Arduino just starts all that loop-code anew. Normally, it keeps on doing that until the power goes off. In your sketch's loop() function, there is a call to: goGetValveTimes();. Code in the loop() is executed over and over again. That means, that also goGetValveTimes() is executed over and over again. Now suppose your LCD is full of text, already been displayed in other parts of the code. Every loop() cycle will make a call to goGetValveTimes(). In that function named goGetValveTimes() is that block of code that is executed: if (inSetup) { lcd.print(F(" Updating ")); lcd.setCursor(0, 1); lcd.print(F(" Valve Data: ")); lcd.print(valveIndex); } Code inside that block is always executed. It sets the cursor, and prints the valve data line. It is always executed because the variable inSetup is always true. Therefore no matter what was on your LCD, in every loop() cycle, that line on the display is overwritten with the valve data.. just as it is instructed to do. Another way to fix the problem, while keeping that block of code (displaying the valve data), is to set the value of variable inSetup to false at the right moment. That way the code block is not executed anymore, and will no longer keep overwriting your text already on the display. Probably the best moment to do that, is at the end of the setup() function. like so: void setup() { // at the end of your setup() function it would then look like this: goGetValveTimes(); } lcd.clear(); inSetup = false; } I believe that explains what was going on in your sketch..
  • Watering flowers on the balcony + LED illumination

    3
    1 Votes
    3 Posts
    1k Views
    TmasterT
    Nice. i`m building an version that control just 2 selenoids valvs 24v AC controlled by 5-12v DC . i will post it when its ready.stills testing the humidity sensor .. i build it from scratch because i change all the smart features to the sensors instead of depending from the gw. one of selenoids work all days ,the other just day yes ,day not.
  • RF433 NODE, help with code

    4
    4
    1 Votes
    4 Posts
    2k Views
    sundberg84S
    @craktor - after a power failuer you can request it by using v_var1 i think Check the pulse power meter example on how to :)
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Another simple (No SMT) relay actuator

    42
    5 Votes
    42 Posts
    12k Views
    breimannB
    @dpressle Nice job!
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • LCD Display Incorrect

    1
    2
    0 Votes
    1 Posts
    684 Views
    No one has replied
  • 2 Votes
    3 Posts
    4k Views
    core_cC
    Thanks gohan.. This forum is a great source of inspiration. Lots of examples of people and their own projects, and/or problems they encounter(ed). I'm fairly new to MySensors & Arduino, but i have a lot of experience with Atmel AVR. At this time, i'm more reading than writing: absorbing info first. Hopefully i can help out others too sometimes.. it's cool to share knowledge. I already have 10 Arduino Yúns & 2 Raspberries at my disposal (they belong to friends i'm helping out). It would be fun to find a sensible application to combine a MySensors radio network (or perhaps multiple networks), and the IOT-capabilities of the Yún(s) & Raspberries. But that's another project..
  • Scrolling Text sensor node with new V_TEXT

    51
    7 Votes
    51 Posts
    30k Views
    S
    I just did send(msg2.set(reason.c_str())); and it worked. Thanks @AWI
  • Domoticz(Raspberry) with Mysensor USB gateway without Radio

    6
    0 Votes
    6 Posts
    3k Views
    D
    Ok, I find. Sketchinfo was in Presntation, and should be in setup. void setup() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Salon_Parents_SdJ", "1.0"); for (int sensor=RELAY_Sejour_Volet1_Bas, pin=RELAY_Sejour_Volet1_Bas; sensor<=NUMBER_OF_RELAYS; sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_BINARY); } for (int sensor=IN_Sejour_Presence1, pin=IN_Sejour_Presence1; sensor<=NUMBER_OF_INPUT; sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_MOTION); } }```
  • Low Voltage Whole House Power Supply

    13
    9 Votes
    13 Posts
    9k Views
    JonnyDev13J
    @petewill Thanks for explaining. That will be helpful if I get to the point where I can try to do something like this!
  • Central Heating Controls

    4
    0 Votes
    4 Posts
    2k Views
    gohanG
    It depends if it is a normal relay on/off command or a bus communication. If it is the first case you could replace it with a node and a relay (could be arduino mini pro or esp8266 + relay) and a temperature sensor and set up the controller with time schedule and temperatures you want during the day. My personal suggestion if you have just an on/off command is to get something like a Netatmo thermostat (I have one and I am so happy with it) because they use a learning algorithm that adapts automatically according to your house heating system that keeps temperature constant taking advantage of the heating inertia (implementing it in a controller is really an hassle). For water heating it is simpler as you may just need a relay and schedule on/off on the controller
  • Molgan and Emengency Light

    9
    0 Votes
    9 Posts
    2k Views
    AWIA
    @markcame #define MY_NODE_ID xxx in the start of your sketch
  • Molgan-Hack hack

    4
    1
    2 Votes
    4 Posts
    2k Views
    J
    @Yveaux You board is almost perfect. You could just expose some of the pins with the next version. This would keep it very generic anf make it easy to add additional functions. Commercial devices contain temp, hum and light sensors. And a vibration sensor as thief protection. Most of that could easily fit in the molgan.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    41 Views
    No one has replied
  • USB PowerMeter

    8
    0 Votes
    8 Posts
    2k Views
    gohanG
    I saw few videos about bed occupancy sensors, maybe you could take some ideas from those
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied

20

Online

11.7k

Users

11.2k

Topics

113.1k

Posts