ESP32-DevKitC-VIE 5V Safety!

ktauchathuranga
Posts: 6
Joined: Sun Jul 02, 2023 2:03 pm

ESP32-DevKitC-VIE 5V Safety!

Postby ktauchathuranga » Sun Jul 02, 2023 2:18 pm

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)
Attachments
1-channel-5v-relay-module-10amp-250v.jpg
Relay Module
1-channel-5v-relay-module-10amp-250v.jpg (157.4 KiB) Viewed 1740 times
b9b757236d73f0de150e46217689d644.jpg
MOSFET Module
b9b757236d73f0de150e46217689d644.jpg (18.53 KiB) Viewed 1740 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-DevKitC-VIE 5V Safety!

Postby ESP_Sprite » Mon Jul 03, 2023 12:41 am

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.

ktauchathuranga
Posts: 6
Joined: Sun Jul 02, 2023 2:03 pm

Re: ESP32-DevKitC-VIE 5V Safety!

Postby ktauchathuranga » Tue Jul 04, 2023 12:22 pm

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.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-DevKitC-VIE 5V Safety!

Postby ESP_Sprite » Wed Jul 05, 2023 2:41 am

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.

ktauchathuranga
Posts: 6
Joined: Sun Jul 02, 2023 2:03 pm

Re: ESP32-DevKitC-VIE 5V Safety!

Postby ktauchathuranga » Wed Jul 05, 2023 4:27 am

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?

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-DevKitC-VIE 5V Safety!

Postby ESP_Sprite » Wed Jul 05, 2023 7:17 am

No. Uno is 5V I/O, ESP32 is 3.3V and not 5V compatible. You need level converters.

Who is online

Users browsing this forum: No registered users and 83 guests