ESP32-WROOM-32U Connect with MAX3232 Mini

xN0tiCx
Posts: 2
Joined: Wed Jul 24, 2024 9:46 am

ESP32-WROOM-32U Connect with MAX3232 Mini

Postby xN0tiCx » Wed Jul 24, 2024 10:21 am

Hello!

I'm looking to connect an ESP32 board with a MAX3232 Mini to communicate with another device, but I'm unsure about the correct connections.

Here are my idea on the connections:

MAX3232 to ESP32:
MAX3232 TTL OUT to ESP32 RX pin
MAX3232 TTL IN to ESP32 TX pin
GND to GND

MAX3232 to Device:
MAX3232 RS232 OUT to Device TXD
MAX3232 RS232 IN to Device RXD
GND to GND

For power:
The ESP32 is powered via the 5V pin and ground.
The MAX3232 module also needs power. But I'm unsure about where and how exactly.

Questions:
Can I draw power from the ESP32 board, or should both devices use the 5V supply?
Are my connection ideas correct?

I attached an image of the devices.

I appreciate any guidance you can provide!

Thank you! :D
Attachments
ImagePreview.png
ImagePreview.png (1.57 MiB) Viewed 785 times

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

Re: ESP32-WROOM-32U Connect with MAX3232 Mini

Postby ESP_Sprite » Thu Jul 25, 2024 12:04 am

MAX3232 RS232 OUT to Device TXD
MAX3232 RS232 IN to Device RXD
You probably want to swap those two around. Otherwise, it sounds like your plan should work.


Can I draw power from the ESP32 board, or should both devices use the 5V supply?
The MAX3232 is both 3.3V and 5V tolerant, but it'll run the IOs at the voltage of its power supply and the ESP32 can't handle 5V on its IOs. That all means you should connect the MAX3232 to a 3.3V power supply. You should be fine hooking it up to the 3.3V ('3V3') pin of the devboard; the chip doesn't use that much power.

xN0tiCx
Posts: 2
Joined: Wed Jul 24, 2024 9:46 am

Re: ESP32-WROOM-32U Connect with MAX3232 Mini

Postby xN0tiCx » Thu Jul 25, 2024 6:05 am

Thanks for your reply and guidance!

I'll try that today. Much appreciated! :D

Who is online

Users browsing this forum: No registered users and 90 guests