@skywatch said in Anyone help with 4 relays please?:
If anyone is interested this now works perfectly with mycontroller, local buttons and remote buttons too.....
Any modification to the above code? This could be very handy for me!
EDIT: does each button pin correspond to a relay? So in your example A0 relates to 4?
Or can I use the rules in MC to dynamically assign buttons to operations?
@mfalkvidd said in Suddenly, the node stopped working.:
Many thanks @mfalkvidd!
You were right! Something strange happened to Arduino. Moreover, I was able to write down the cleareepromconfig example and clear the memory, but after this procedure I could not write anything into the memory of Arduino.
I have little experience with Arduino and this happened to me for the first time.
I have ordered some bigger tantalum capacitors. But have in the meantime tried with 100 and 220 uF ordinary electrolytic capacitor. But it didn’t make a difference. As soon as it get cold outside it stops working.
And since it is outside attached to sensors that is hard to take inside it makes it hard to connect a computer and enable and watch debug output.
But I wonder, is there something else that could be sensitive to the cold? In general -5– -10 cold shouldn’t be a problem for electronics?
@cgrf well, thanks for the feedback anyway. As for structure, I do have it in chapters. So the technical stuff is separated from other things, and the whole thing starts with how to actually use it, and the theory goes last for those interested. I could split it into separate pages but I feel that just fragments it.
As for the use cases, they are also split and I am not sure how to simplify them further.
As for what version they work with, the current setup is that there are always two versions. One for the most current release here: https://www.mysensors.org/apidocs/index.html
The other is for the beta releases (development branch), which is always bleeding edge here: https://www.mysensors.org/apidocs-beta/index.html
The version is currently to the git sha. But I have a pull request open that will make further releases show a version number instead which better link the documentation to a human readable version.
It will also update the security part of the "library customization" chapter a bit.
Alkaline, cheap "IKEA" batteries..
My units reports around 60% battery capacity left (very unscientifically measurements)
About operating frequency. If you have a sleeping node, then you won't gain anything from using 1Mhz versus 8Mhz, on the contrary you might end up using more power, when using 1Mhz, than 8Mhz. Because the time that the MCU is awake is longer at 1Mhz, than at 8Mhz. Remember, that when the MCU is sleeping, the power usage is the same, regardless of what frequency the MCU is working at, because the oscillator is shut down.
at 8Mhz you would complete your operation quicker, and return to sleep mode again faster, than when running at 1Mhz.
@sindrome73 assuming you have executed the personalizer sketch with your generated keys on both the gateway and the node(s), then yes. You can always see in the log if signing is being used. There is a parser for the log on the homepage.
@gohan Maybe: RFM69 and RFM95 have a software-based packet engine responsible for the ACK handling, i.e. with extreme clock differences between node and GW, TX from (fast) GW may occur before the radio of the (slow) node is in RX, that's why we introduced additional delays for faster CPUs. I had no issues running the code on RPI1 (0.7GHz) and RPI2 (0.9GHz), but I do not have a RPI3(1.2GHz) where additional timing optimizations may be needed.