logo elektroda
logo elektroda
X
logo elektroda

ESP8266-01s from Supla for intercom - GPI0 problem on startup

sediv 1929 10
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17968582
    sediv
    Level 10  
    Hi. I bought a relay from esp8266-01s on Airexpress. I uploaded to it a program from supli to open the door of the intercom. Well there is a problem, the module works fine with one disadvantage that when I connect it to the power supply it gives voltage to GPI0 for a second which controls the relay but this is not a big problem. The problem is when I connect the module to the relay then when the voltage is applied the module gets a low state on GPI0 and stops working because it perceives this as preparation for uploading a new program. It would be enough to isolate GPI0 for 1 or 2 seconds during power up and everything would work fine. I thought that inserting a rectifying diode between the optocoupler and GPI0 would help, but I was wrong, the diode does not conduct current in the other direction, but ground does. I must point out that I am an amateur. I was told in an electronics shop that there is nothing but a relay to isolate this. Do you have a solution to this problem. I was also thinking about a transistor, plug it into vcc and an optocoupler and control it via GPI0 but I don't know if this is a good idea.
  • ADVERTISEMENT
  • #2 17968600
    BlueDraco
    MCUs specialist
    First step to the solution: Przepist this text in Polish, with commas and spaces after each punctuation mark.
  • ADVERTISEMENT
  • #3 17969064
    khoam
    Level 42  
    GPIO0 always should be connected via a resistor to the power supply, no other combinations.
  • ADVERTISEMENT
  • #4 17969226
    sediv
    Level 10  
    Connecting a resistor doesn't help either.I already had such a relay from airexpress and it worked fine and this one in total I have two of them have some kind of error.The simplest solution is to insert a button that breaks the connection between GPI0 and the optocoupler when switching on and it will work until it runs out of power.
  • #5 17969287
    khoam
    Level 42  
    It's actually not clear which specific relay module you are writing about. If you provided a link, or at least a picture, it would be possible to try to trace the problem. There are quite a few of these module varieties on ali.
  • #7 17969327
    khoam
    Level 42  
    This module is labelled as "ESP-01S-Relay-v1.0". On this page there is (I think) a schematic of this module - I'm not at all surprised that a low state briefly appears on GPIO0 after power-up.

    ESP8266-01s from Supla for intercom - GPI0 problem on startup .
  • ADVERTISEMENT
  • #8 17969356
    sediv
    Level 10  
    Does this mean that nothing can be done about it ?
  • #9 17969380
    khoam
    Level 42  
    I don't know why there is this resistor R2 (10k) connected directly to GPIO0 and ground - it should be elsewhere:

    ESP8266-01s from Supla for intercom - GPI0 problem on startup .

    Also, it cannot be ruled out that the schematic I posted in post #7 is incorrect - this needs to be verified "organoleptically" :)
  • #10 17969650
    sediv
    Level 10  
    I'm green in electronics so it's doubtful I'll figure anything out on my own but I'll try.

Topic summary

The discussion revolves around a problem encountered with the ESP8266-01S relay module purchased from AliExpress, specifically regarding the behavior of GPIO0 during startup. The user reports that upon powering the module, GPIO0 briefly receives a low state, causing the module to enter programming mode instead of functioning normally. Suggestions include connecting GPIO0 through a resistor to the power supply, but this did not resolve the issue. A proposed solution is to use a button to temporarily disconnect GPIO0 from the optocoupler during startup. The conversation also touches on the need for a clearer schematic of the relay module to diagnose the issue effectively.
Summary generated by the language model.
ADVERTISEMENT