Open boshkash1151 opened 6 years 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.
https://www.aliexpress.com/w/wholesale-2.54mm-double-long-female.html
@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 :(
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
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.
@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?
For esphome good solution is early_pin_init: false in esp8266: section. Like this: esp8266: board: esp01_1m early_pin_init: false
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
Thanks :)
Best and easiest solution, worked for me. Just make sure you don't Serial.begin in your final code, GPIO 3 is RX.
During boot the relay turns on then off then on again.
any help would be much appreciated