Skip to content

My Project

Show off and share your great projects here! We love pictures!
961 Topics 13.4k Posts
  • 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
    676 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
    8k 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
  • My Project - A Beginners travel….

    2
    13
    2 Votes
    2 Posts
    1k Views
    Boots33B
    @segelmann Great to see you are having fun on your Mysensors journey. A reliable connection to your nodes is a most important piece of a Mysensors setup. This becomes very apparent when you start deploying light switches that require an immediate reaction once activated. There is nothing worse than to gather all your family around to show off your latest piece of node wizardry only to find it does not perform as expected every time. For nodes that are to be on the fringes of range I use this mod to the antenna, In testing I have found it to make a worthwhile improvement to range. For my outside network I used this method to first establish the reliable range from my gateway , then once my first repeater was established used the same method to place the next repeater within range of my first repeater. By using the antenna mod and correct repeater placement I now have reliable connections to my nodes over 100m away from the gateway with just two repeater nodes. You will find that once you get clear of buildings you will get a sizeable increase in the distance that can be covered reliably. There are a few things to remember with repeater nodes, you cannot use sleep or delay in their code as this will prevent them from working as a repeater. You should try and have the repeater node as high up as is practical and clear of surrounding walls etc that might impede their signal. Nodes that are on the fringe of range from the gateway may still connect to the gateway instead of your repeater and thus still give you unstable results. To prevent this you can include the code below . #define MY_PARENT_NODE_ID 11 // set this to your repeater node id #define MY_PARENT_NODE_IS_STATIC // this will force your node to use only the repeater this must be added at the top of your sketch before #include <MySensors.h> and will instruct the node to use the repeater at all times. Of course you must ensure that the repeater is always available.
  • Garage door contraption (yet another)

    12
    6
    5 Votes
    12 Posts
    4k Views
    barduinoB
    @koen01 I'm going for a similar next step. The cars must be parked in a very specific position relative to the side wall and the garage door, or otherwise it's almost impossible to move around the garage. Something like this Hek project. Cheers

20

Online

11.7k

Users

11.2k

Topics

113.1k

Posts