@mfalkvidd right, I was thinking of updating RFM69 wiring diagrams on https://www.mysensors.org/view/171#rfm69-&-esp8266 , but for how the radio module go I was interested in the rfm96 range / reliability to see how it goes.
Anyway I will look for futures updates on the forum.
@napo7 thanks for response. Actually I want to avoid such solution. The main reason is the reliability. Just want to have wired connection between switch and the actuator. I tried the solution with resistor ladder like this:
(5V)
|
(R=2kOhm)
|
(ADC PIN)
--- (SW1) --- (R=1kOhm) -----
-- (SW2) --- (R=1.5kOhm) --
--- (SW3) --- (R=3kOhm) -----
--- (GND)
So pressing different switches (SW1 to SW3) should result in different resistance seen between ADC PIN and GND. And to be able to detect multiple switches pressed at the same moment the resistor values must differ. Unfortunetly this makes very little differences between some combinations, and i'm afraid that on 5 meter long wire the noise will cause misdetections. Does anybody used such solution ?
Then you have to modify it a bit. I really think you should try this yourself to learn how it works.
Have you read the relevant API pages on the main site? Did you get stuck somewhere?
@dbemowsk said in Problems with an SI7021 temp/humidity sensor:
@Yveaux So I tried that library and it worked. Thanks for the help. Now I just need to print an enclosure for the thing.
Great!
@Aron-Sjöberg Great switches, I thought these went out of production in the 60'ties :)
As you are going for a battery powered solution a good starting sketch would be the motion detector. Just replace the motion sensor with the switch and you are almost done. The switch will probably need some debouncing. Add a ``sleep(100)``` to avoid retriggering.
If you want to use a momentary switch you need a variable to save the last state.
@tomasandersson
Have a look at this thread. I think it contains the answer on your fixed ID (children) question.
https://forum.mysensors.org/topic/4834/unique-id-value-ds18b20-temperature-sensors
I personally used the sample programs as provided with the MySensors lib with succes the get the DS18B20 onewire working.
A resistor 4k7 from +5VDC to the middle pin of the DS18B20 connected to D3 from the arduino and both outer pins of the DS18B20 connected to GND works perfect for me.
BR,
Boozz