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?
Learn how to use relay with ESP32, how relay works, how to connect relay to ESP32, how to code for relay, how to program ESP32 step by step. The detail instruction, code, wiring diagram, video tutorial, line-by-line code explanation are provided to help you quickly get started with ESP32. Find this and other ESP32 tutorials on esp32io.com.