Component guide · Intermediate · 3 min read
RS-485 and RS-232 Modules

MAX485 and MAX3232
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
RS-485 and RS-232 carry UART serial data over longer cables than plain TTL. RS-232 uses higher positive and negative voltages for point-to-point links up to about 15 m, and a MAX3232 module converts it to 3.3 or 5 V logic. RS-485 uses a differential pair, supports up to 32 standard loads on one bus and runs over 1 km at low speed. A MAX485 module is the usual way to read Modbus sensors and meters.
Key specs at a glance
- RS-232
- Single-ended, about ±5 to ±15 V, one device to one device, DB9 connector
- RS-485
- Differential A/B pair, half duplex, multi-drop, up to about 1200 m
- MAX485
- 5 V transceiver with DE and RE direction pins
- MAX3485 / auto-direction boards
- 3.3 V versions; some modules switch direction automatically
- MAX3232
- RS-232 level converter for 3 to 5.5 V logic
- Termination
- 120 Ω across A and B at each end of a long RS-485 bus
RS-232
RS-232 is the old PC serial port, still on industrial instruments, GPS units, scales and CNC controllers. Its voltages are inverted and can reach ±12 V, so connecting it to a microcontroller pin destroys the pin. A MAX3232 module converts it to UART levels: module TX and RX to your board, and the DB9 side to the device. Swap TX and RX if nothing comes through; some devices need a null-modem cable.
RS-485 wiring
RS-485 sends each bit as the difference between wires A and B, which rejects noise picked up along the cable. Use twisted pair, connect A to A and B to B on every device, and add 120 Ω termination at the two far ends of long runs. Share a ground or signal-common wire between devices where possible.
The MAX485 is half duplex: it either sends or listens. Tie DE and RE together to one GPIO; set it HIGH before sending, wait until the last byte has left (Serial.flush()), then set it LOW to listen. Some modules handle direction automatically, which is simpler.
Modbus sensors and meters
Many industrial sensors, soil probes and energy meters speak Modbus RTU over RS-485. Your board acts as the master: it sends a request with the device address, function code and register number, and the device replies with the value and a CRC. Use a library such as ModbusMaster on Arduino. Each device on the bus needs its own address, and all must share the same baud rate and settings (often 9600 baud, 8N1).
Common mistakes to avoid
- Connecting RS-232 directly to a microcontroller pin.
- Forgetting to switch the MAX485 DE/RE pin back to receive.
- Swapping A and B on one device.
- No termination on a long, fast bus.
- Using a 5 V MAX485 on a 3.3 V board without checking levels.
Frequently asked questions
What is the difference between RS-232 and RS-485?
RS-232 is single-ended and point-to-point over short cables; RS-485 is differential, multi-drop and works over long cables.
Can I use MAX485 with ESP32?
Use a 3.3 V transceiver such as the MAX3485, or level-shift the MAX485's receiver output.
Do I need termination resistors?
On long or fast buses, yes: 120 Ω at each end. Short benches at 9600 baud often work without.
How many devices can share an RS-485 bus?
32 standard unit loads, and more with low-load transceivers.
What is Modbus RTU?
A request-and-reply protocol for reading registers from industrial devices, usually over RS-485.
Parts for this guide
Terms in this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
- TI and Analog Devices MAX485 datasheets
- TI MAX3232 datasheet
- TIA/EIA-485 application notes
- Modbus over Serial Line specification
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




