#question about esp32 + relay

1 messages · Page 1 of 1 (latest)

reef wren
#

I bought an esp32-wroom-32 and 5v relay and followed this tutorial: https://esp32io.com/tutorials/esp32-relay but I am supplying the 5v via the usb-c. I jumped the 5v from the "VN" contact (I measured at 5v with a voltmeter) to the breadboard + rail and then jumpered that to the DC port on the relay and then used D27 to send the gpio to the "IN" contact on the relay. It seems the relay didn't like having 5V power and 3.3v coming from gpio (the relay would activate but not de-activate on "low") so I switched to sending the relay 3.3v power from the "3v3" contact instead and that worked. Am I doing it wrong? Should I be supplying the relay and esp32 5v power from a different source?