Control 5V relay with ESP32 DEVKITC

Nikosant03
Posts: 12
Joined: Wed Mar 13, 2019 11:44 pm

Control 5V relay with ESP32 DEVKITC

Postby Nikosant03 » Sat Mar 16, 2019 3:56 pm

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

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Control 5V relay with ESP32 DEVKITC

Postby chegewara » Sun Mar 17, 2019 5:42 am

It's not possible but you can use simple logic level shifter.

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Control 5V relay with ESP32 DEVKITC

Postby Deouss » Sun Mar 17, 2019 5:36 pm

Depends what relay. I was able to control 5V relay with multiplexer without any problems.
Also adding 3V optocoupler will allow such control

Who is online

Users browsing this forum: No registered users and 48 guests