IOT-MCU / ESP-01S-Relay-v4.0

131 stars 59 forks source link

Relay flickers on boot #1

Open boshkash1151 opened 6 years ago

boshkash1151 commented 6 years ago

During boot the relay turns on then off then on again.

any help would be much appreciated

dwd1 commented 5 months ago

A less sophisticated approach that has worked well for me ... mechanically change the connection with an "adapter" socket inserting the RX pin into the GPIO0 slot. That way you can used RX (GPIO3) to operate the relay.

I use a couple of the long header pin rows that came with a Wemos D1 mini and cut them in half so that they were 4 pins wide (the remainder will be wasted). Physically remove what might have been GPIO0 pin and bend the RX pin slightly. Hope the pictures explain better than the words.

Relay1

Relay2

https://www.aliexpress.com/w/wholesale-2.54mm-double-long-female.html

2x4p

ervee commented 3 months ago

@Amaktronix , would a capacitor over the relay LED also work on the Wemos D1 Mini Relay Shield?

In the schematic I see an LED1 but this is a little SMD LED which makes soldering a capacitor over it a bit hard.

I have this relay on a D1 Mini ESP board and it also switches the relay on (re)boot of the ESP :(

meccip commented 2 months ago

It works fine, I programmed to turn on and off using GPIO3... And I removed the iron inside of yellow connector, and soldered gpio3 on gpio0 pin, image bellow

6fd5660b-a4ce-4185-9bff-e611ea3d1122 f4e0c6c8-3c75-48e6-8d17-84604078cee0

Thanks :)

This is the simple way. Remove yellow plastic and break gpio0 pin, put plastic back and solder RX with gpio0 and use gpio3 in code. I did that and is working. Still initialize at boot but the relay contacts are not making contact.

arutz12 commented 2 months ago

@Amaktronix , would a capacitor over the relay LED also work on the Wemos D1 Mini Relay Shield?

In the schematic I see an LED1 but this is a little SMD LED which makes soldering a capacitor over it a bit hard.

I have this relay on a D1 Mini ESP board and it also switches the relay on (re)boot of the ESP :(

I can confirm that @blynkuser's method works fine (I have v4.0 IOTMCU) with ESPHOME+HomeAssistant. Couldn't you do something similar to the Wemos relay board?

00svd00 commented 1 month ago

For esphome good solution is early_pin_init: false in esp8266: section. Like this: esp8266: board: esp01_1m early_pin_init: false

johnster000 commented 1 week ago

It works fine, I programmed to turn on and off using GPIO3... And I removed the iron inside of yellow connector, and soldered gpio3 on gpio0 pin, image bellow

6fd5660b-a4ce-4185-9bff-e611ea3d1122 f4e0c6c8-3c75-48e6-8d17-84604078cee0

Thanks :)

Best and easiest solution, worked for me. Just make sure you don't Serial.begin in your final code, GPIO 3 is RX.