logo elektroda
logo elektroda
X
logo elektroda

ESP12-E relay resets when switching devices on power strip, wiring with separate PSU

Viper2215 369 8
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21164566
    Viper2215
    Level 9  
    Hello,
    I started by uploading the supli on the ESP, uploaded it all configured from the software side. I am attaching a diagram of how I have it wired up. According to the connection as in the diagram, only the ESP works for me, the relay does not work only when I put a jumper on VCC | JD-VCC and 5V+ is connected to VCC near IN6, but as far as I know, if I have a separate power supply for ESP and relay, it should be without a jumper. The problem is that when I connect something to the power strip or the second input in the socket (double socket), when I switch the device on and off (e.g. a bedside lamp or a fan) the set (ESP and relay) resets itself, it also happens that ESP switches off and I have to disconnect the power completely, wait and switch it on again. I have only marked the connections on the ESP-relay-lay diagram in colours so as not to make the diagram tangled.
  • ADVERTISEMENT
  • #2 21164609
    kindlar
    Level 42  
    Well, you can see what happens in the network without filters when you switch devices on with a key.
  • ADVERTISEMENT
  • #3 21164636
    Viper2215
    Level 9  
    Well, how about some information on what to add or change where. I wrote here to get someone with experience to give me a hint and help me get it working, not to state together what I don't have and the symptoms are what they are.
  • #4 21164640
    kaz69
    Level 36  
    Check the supply voltages from the 5V and 3.3V inverters to see if either squats when the relays are servoed.
  • #5 21164753
    Viper2215
    Level 9  
    I checked the power supply from the 5V inverter and there is actually a drop for a moment at 4.9V. On the 3.3V inverter I didn't notice a drop, but I suppose that could also be because they are on the same power supply
  • ADVERTISEMENT
  • #6 21164794
    kaz69
    Level 36  
    Maybe add the 3.3V inverter ground to the control board. Also check that when controlling the ESP12 with the 5V inverter supply disconnected you have similar behaviour. Clearly something is resetting-your ESP.
  • ADVERTISEMENT
  • #7 21164883
    Viper2215
    Level 9  
    And with such a connection that the 2 inverters are on one power supply, isn't their ground shared? So the 3.3 V ground is also at the relays. I was also reminded of one more thing when switching the night light or fan, the diodes at the relays from their on state blink for a fraction of a second when switching.
  • #8 21165036
    Anonymous
    Level 1  
  • #9 21165303
    Viper2215
    Level 9  
    I finished the battles, today my D1 mini from aliexpress arrived I swapped the ESP-12 for the D1 mini and everything works fine. The conclusion is that the inexperienced should not order a bare ESP

Topic summary

An ESP12-E module controlling a relay experiences resets when switching devices on a power strip, despite using a separate power supply unit (PSU) for the ESP and relay. The relay only functions when a jumper connects VCC and JD-VCC, contrary to expectations for separate PSU wiring. Voltage measurements revealed a momentary drop from 5V to 4.9V on the 5V supply during relay activation, while the 3.3V line remained stable, likely sharing the same PSU ground. Relay indicator LEDs flicker briefly when switching connected devices, indicating possible interference. Suggestions included verifying proper grounding between the 3.3V inverter and control board and testing behavior with the 5V supply disconnected. A recommended wiring schematic emphasized correct ground connections. Ultimately, replacing the bare ESP12-E with a D1 Mini module resolved the issue, implying that integrated modules with onboard regulation and protection are more reliable for such applications.
Summary generated by the language model.
ADVERTISEMENT