@nicomedia I stumbled on this doing a google search. Just wondering if you are still trying to get your Sonoff's working with your Vera controller? If so, I have written a blog post on the subject. It uses a different firmware called ESP Easy and an HTTP Switch plugin on the Vera rather than MySensors. but it works rather well for me. Here is the link to the blog post:
https://dan.bemowski.info/2017/07/04/using-a-sonoff-with-espeasy-and-vera/
I use this in conjunction with some MySensors wall switches that I built.
https://dan.bemowski.info/2017/06/11/my-start-into-open-source-hardware/
Hi,
nice projet. I am very interested in it.
But why you are using 5 V and not 3.3 V? The ATmea328 works with 3.3 V too and the NRF have to use 3.3 V.
The only restriction on 3.3 V is the clock limitation for the Atmega (8 MHz). But with no crystal it don't care.
For example you could use an HLK-PM03 instead of HLK-PM01 and remove the linear voltage regulator. So you get more space an everything have the same voltage level.
And another point is, it is recommended to use a capacitor (0.1 ยตF) to ground for each voltage pin (Vcc, Avcc, Aref).
@C.r.a.z.y.
yeah.... those are VERY bouncy.
are you interrupt triggering or just using a state change?
post your code, let's make sure you have it de-bounced enough.