Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Paul Arbour
#92852 I have a relay board which I'm trying to drive with the sp8266.
Short explanation is that the input voltage to the control circuit is 5V, and the relays are 12V.

I am feeding the 12v into the relays, and 5V into the control circuit along with the same power going to the ESP8266.

If I do not have the 12V power into the relays the control from the ESP works just fine, the LEDs on the relay module switch on and off as requested.

When I power up the relays with 12V the setup of my code succefully turns the relays on but they never go off.

I am feeding a LOW and they turn on, but a HIGH never seems to force them off.

Again, if I remove the 12V everything is hunky dory.

Is it possible this is because the output from the ESP is only 3.3V which somehow isn't enough to force the relays down?
User avatar
By Paul Arbour
#92863 To provide some further context and details.
I put some resistors inline with the pins from the MCU to the relay controller, and that kind of mostly works but there is still a relay or two that doesn't react properly here.
I was using the first eight GPIO pins, the one connected to GPIO0 was being wonky, so I moved that but it seems to not have really helped.

The relays will all switch but will eventually flip open slowly but surely.
User avatar
By Inq720
#92901 You might also show your hardware and wiring configuration. You're guess is probably right in that a 3.3v pin may not trigger something expecting 5v. I use WeMos ESP8266 and you can get cheap daughter boards with relays that have all the proper supporting hardware to trigger the relay correctly. You'll note in the image that there are some supporting components, resistors, diode and what looks like its own voltage regulator.

Good luck
You do not have the required permissions to view the files attached to this post.