- Sat May 05, 2018 12:14 pm
#75783
Hello Rudy,
I use Electrodragon ESP8266 boards (with two relays on the PCB) :
http://www.electrodragon.com/product/wi ... d-esp8266/The corresponding electronic circuit board schematics is :
http://www.electrodragon.com/w/File:Esp ... d_r1.6.pngSchéma Esp_relay_board_SPST_r1.6.png
The lights (of the two areas) are powered on/off from the two relays on the ESP8266 board. The pushbuttons are connected to the coil commands of two latching relays (located at the main panel). The two latching relays outputs are used as two switches connected to GPIO 4 and 5. When a latching relay is open, the corresponding GPIO is +3.3V (pull up resistor on the board). When a latching relay is closed, the corresponding GPIO goes to Ground.
Obviously, I can't run the code without the relays. But I've noticed if I run the code and switch on/off the relays without the lights connected, there is no issue at all. The issue occurs only if the lights are connected and actually powered on/off. I did also some tests with incandescent lights and electronic bulbs, the issue occurs in both cases. As I already mentioned, the issue doesn't happen every time. It happens maybe every 20 relay switch on but of course It can happen two times in a row.
You do not have the required permissions to view the files attached to this post.