Page 1 of 1

Connect ESP32 and relay of 5V

Posted: Sat Jun 04, 2022 3:05 pm
by igorgaj87
How connect esp32 and relay of 5V, if GPIO pin is 3.3V?, in practice with me, on relay is always same status (on GPIO HIGH-LOW green led light on relay is always on, this lamp only change intesity)? I have and HW-221 level shifter and I'm afraid I'll burn the ESP32 plate.

Re: Connect ESP32 and relay of 5V

Posted: Sun Jun 05, 2022 2:19 am
by ESP_Sprite
The canonical way is to use a mosfet or BJT transistor. Random link to more info: you can safely use the first schematic presented there.