Page 1 of 1

Control 5V relay with ESP32 DEVKITC

Posted: Sat Mar 16, 2019 3:56 pm
by Nikosant03
Dear all,

I've got an ESP32 Devkitc and I need to control a 5V relay through a GPIO pin.

I will supply 5V (using a battery and dc/dc converter) into the 5v pin of ESP32. The GPIO outputs is going to be 5V OR 3.3V?

In general is it possible to control a 5V relay with ESP32?

Thanks is advance

Re: Control 5V relay with ESP32 DEVKITC

Posted: Sun Mar 17, 2019 5:42 am
by chegewara
It's not possible but you can use simple logic level shifter.

Re: Control 5V relay with ESP32 DEVKITC

Posted: Sun Mar 17, 2019 5:36 pm
by Deouss
Depends what relay. I was able to control 5V relay with multiplexer without any problems.
Also adding 3V optocoupler will allow such control