5V Relay on pycom
-
@kebson What kind of relay is that? In any case, you need a switching transistor (like a simple N-Channel Mosfet [e.g. 2N7000]) and a flyback diode [e.g. 1N4148]) to switch the 5V the relay needs. There are some modules which have that integrated, but the circuitry is so bad designed that it still needs a 5V level to fully switch.
-
@kebson You will need to check the specs of the relay to see what voltage and current is required to actually hold the relay closed.
ESP32 details can be found here
https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf