Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 91 characters in body; edited title
Source Link
ocrdu
  • 9.3k
  • 23
  • 32
  • 42

esp8266 ESP8266-01 gpioGPIO flicker during boot

I have been experimenting with a ESP8266-01 module (8-Pinpin).

I would like to use the ESP-01 module as an MQTT client and control two relays. For

For this iI bought aan ESP-01 module and a 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0GPIO-2 has the same circuit as GPIO-0):

Schematic EPS

The EPS-01 and the optocoupler share +3.3V3 V which is isolated from +5Vthe +5 V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V3 V using 10K10 kΩ as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (Inin my code iI have set GPIOs asto HIGH and then set them as O/P).

I read that this is due to the internal process of the ESP module. FewA few people suggest to useusing GPIO-2 to avoid flicker and a few suggest to addadding a 470uF470 μF capacitor across the optocoupler input terminals (only few people hashad success with a capacitor).

Is it a good idea to add a capcapacitor across the optocoupler (OR)? Can iI add a capacitor across the GPIO pin and 3.3V_GND.3 V_GND? Both ways cause the capcapacitor to discharge into the GPIO pins at LOW signal on GPIO, is this safe for the ESP-01.? If so, what is the optimum value offor the capacitor.?

Or do iI need to add aan RC network between the GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).?

I know there are lots of discussions on this topic but iI could not find a reliable solution.

Update:
AHere's a link to detailed GPIO behavior during boot is below
https://bbs.espressif.com/viewtopic.php?t=2101#p6636detailed GPIO behavior
The during boot.

The last post in the form says "GPIO0 will output the clock frequency (e.g 26MHz26 MHz) of the external crystal by default".
I

I think this clock might be causing the relay to turn ON and OFF during boot. How to avoid relay turn ON during this clock output.How to avoid relay turn ON during this clock output?

esp8266-01 gpio flicker during boot

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

Update:
A link to detailed GPIO behavior during boot is below
https://bbs.espressif.com/viewtopic.php?t=2101#p6636
The last post in the form says "GPIO0 will output the clock frequency (e.g 26MHz) of the external crystal by default".
I think this clock might be causing the relay to turn ON and OFF during boot. How to avoid relay turn ON during this clock output.

ESP8266-01 GPIO flicker during boot

I have been experimenting with a ESP8266-01 module (8-pin).

I would like to use the ESP-01 module as an MQTT client and control two relays.

For this I bought an ESP-01 module and a 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 has the same circuit as GPIO-0):

Schematic

The EPS-01 and the optocoupler share +3.3 V which is isolated from the +5 V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3 V using 10 kΩ as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset (in my code I have set GPIOs to HIGH and then set them as O/P).

I read that this is due to the internal process of the ESP module. A few people suggest using GPIO-2 to avoid flicker and a few suggest adding a 470 μF capacitor across the optocoupler input terminals (only few people had success with a capacitor).

Is it a good idea to add a capacitor across the optocoupler? Can I add a capacitor across the GPIO pin and 3.3 V_GND? Both ways cause the capacitor to discharge into the GPIO pins at LOW signal on GPIO, is this safe for the ESP-01? If so, what is the optimum value for the capacitor?

Or do I need to add an RC network between the GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful)?

I know there are lots of discussions on this topic but I could not find a reliable solution.

Update:
Here's a link to detailed GPIO behavior during boot.

The last post in the form says "GPIO0 will output the clock frequency (e.g 26 MHz) of the external crystal by default".

I think this clock might be causing the relay to turn ON and OFF during boot. How to avoid relay turn ON during this clock output?

Bumped by Community user
Bumped by Community user
Bumped by Community user
added more details
Source Link
kk345
  • 11
  • 3

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

Update:
A link to detailed GPIO behavior during boot is below
https://bbs.espressif.com/viewtopic.php?t=2101#p6636
The last post in the form says "GPIO0 will output the clock frequency (e.g 26MHz) of the external crystal by default".
I think this clock might be causing the relay to turn ON and OFF during boot. How to avoid relay turn ON during this clock output.

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

Update:
A link to detailed GPIO behavior during boot is below
https://bbs.espressif.com/viewtopic.php?t=2101#p6636
The last post in the form says "GPIO0 will output the clock frequency (e.g 26MHz) of the external crystal by default".
I think this clock might be causing the relay to turn ON and OFF during boot. How to avoid relay turn ON during this clock output.

fixed grammer
Source Link
kk345
  • 11
  • 3

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) just afterduring ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) just after ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

I have been experimenting with ESP8266-01 module (8-Pin).

I would like to use ESP-01 module as MQTT client and control two relays. For this i bought a ESP-01 module and 2-CH relay module (HW-383) and my schematic is as below (GPIO-2 also has the same circuit as GPIO-0)

Schematic EPS-01 and optocoupler share +3.3V which is isolated from +5V used for relay and transistor. I pulled GPIO-0 and GPIO-2 to 3.3V using 10K as it is necessary for ESP to boot properly.

Everything is working perfectly except the flicker (relay turn ON and then OFF) during ESP-01 boot or reset. (In my code i have set GPIOs as HIGH and then set them as O/P)

I read that this is due to the internal process of ESP module. Few people suggest to use GPIO-2 to avoid flicker and few suggest to add a 470uF capacitor across the optocoupler input terminals (only few people has success with capacitor).

Is it a good idea to add a cap across optocoupler (OR) Can i add a capacitor across GPIO pin and 3.3V_GND. Both ways cause the cap to discharge into GPIO pins at LOW signal on GPIO, is this safe for ESP-01. If so what is the optimum value of capacitor.

Or do i need to add a RC network between GPIO and the optocoupler to delay the switch ON of optocoupler (schematic would be helpful).

I know there are lots of discussions on this topic but i could not find a reliable solution.

Source Link
kk345
  • 11
  • 3
Loading