Page 1 of 1

ESP32-DevKitC-VIE 5V Safety!

Posted: Sun Jul 02, 2023 2:18 pm
by ktauchathuranga
heyy,
i have ESP32-DevKitC-VIE dev board. i wanna control 19V 4.74A and i have a MOSFET Driver Module (as shown in the attachment) and normal 5V relay module (relay module doesn't have a optocoupler but it have freewheel diode).
can you guyz suggest me which way is the safest to control the above mentioned voltage and current!
-------------------------
if i connect the relay module, using 5V pin in the board. does it gonna have current competition i mean if the relay draw more current than rated ESP32-DevKitC-VIE board! (i assume its not directly passing the 5V from the usb connector)

Re: ESP32-DevKitC-VIE 5V Safety!

Posted: Mon Jul 03, 2023 12:41 am
by ESP_Sprite
It depends. The most foolproof would be the relay module as the 'dangerous' 19V will always be separated from your ESP devboard. If you need to switch very often, though, the relay will wear out and you're better off using the mosfet board.

The relay will indeed pull power from the devboard, which gets it (via a reverse polarity protection diode iirc) directly from the USB port.

Re: ESP32-DevKitC-VIE 5V Safety!

Posted: Tue Jul 04, 2023 12:22 pm
by ktauchathuranga
so its totally okay to use relay module with my ESP32-DevKitC-VIE board! right?
there is no current overload from the board for the relay and kill the board. cuz u said its directly pulling 5v from USB port, right?
i just really wanna keep this board cuz i waited really long time for this board 😕.
can u send me a diagram how should i connect the relay module to the board using GPIO9 pin please.

Re: ESP32-DevKitC-VIE 5V Safety!

Posted: Wed Jul 05, 2023 2:41 am
by ESP_Sprite
Probably. We don't have specs for the relay board so there's no way to say this with 100% certainty, but generally I'd expect connecting together these boards won't lead to issues. I'm not gonna draw you a diagram, but you'd connect GND of the relay board to GND of your devboard, VCC to 5V and IN to your GPIO pin of choice. Note that GPIO9 cannot be used as it's occupied by the flash; better to go with e.g. GPIO13.

Re: ESP32-DevKitC-VIE 5V Safety!

Posted: Wed Jul 05, 2023 4:27 am
by ktauchathuranga
alright!
so i have another question, i have Arduino UNO board too,
can I make a UART com between 2 boards, (Arduino UNO and ESP32-DevKitC-VIE (ESP32-WROVER))
by directly connecting jumper wires TX to RX and RX to TX
is that safe?
or I need some kinda logic level converter?

Re: ESP32-DevKitC-VIE 5V Safety!

Posted: Wed Jul 05, 2023 7:17 am
by ESP_Sprite
No. Uno is 5V I/O, ESP32 is 3.3V and not 5V compatible. You need level converters.