logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP 07S Lighting 2 channel - Physical and virtual push button control

mmaker 2379 31
Best answers

How can I make an ESP8266/Blynk module let a wall pushbutton and a phone app both toggle two lights while keeping the existing wiring and updating the app state?

You do not need to detect 230 V with an optocoupler if the wall button is only a control input; wire the button directly to GPIO and GND and let the ESP drive the relays, which keeps the control circuit galvanically isolated from the mains [#18099080] If you want ready-made firmware instead of writing your own code, ESPEasy, Tasmota, or ESPurna can handle this kind of setup [#18094288] If you really need mains-voltage sensing, a cheap isolated 220 V detection module from AliExpress can be used and can even be powered from 3.3 V [#18090932]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #31 18145270
    krzbor
    Level 29  
    Posts: 1731
    Help: 40
    Rate: 1044
    I have been writing about the Sonoff dual all along. This schematic I have seen, but it is difficult to read when one is used to GPIOx designations. In the link given earlier, there is what is important from a programming point of view - the GPIOs given.
  • ADVERTISEMENT
  • #32 18286667
    mmaker
    Level 19  
    Posts: 623
    Help: 28
    Rate: 162
    For the time being, the controller is working faultlessly and I consider the topic exhausted.

Topic summary

✨ The discussion revolves around integrating physical push button control with WiFi-based lighting automation using ESP technology, specifically the ESP-07S module. The user seeks a solution that allows a wall-mounted button to control lighting while simultaneously updating the status in the Blynk app. Various responses provide insights into circuit design, including the use of relays, optoisolators, and the importance of maintaining safety with 230V circuits. Suggestions include using existing modules like Sonoff Dual for ease of implementation, while others discuss custom circuit designs for direct GPIO control. The conversation highlights the challenges of programming the ESP and the benefits of using pre-existing firmware like Tasmota or ESPEasy.
Generated by the language model.
ADVERTISEMENT