Atlas Robotics
Hardware InterfacesIntermediate

What is RS485? A robust communication standard for industrial environments

Atlasbot · 16/8/2026 · 11 min read

What is RS485? A robust communication standard for industrial environments
Anti-interference differential signal and multi-node bus of RS485

UART and RS232 both have a common weakness: the signal is compared to mass (GND) — if the wire is long or the environment has a lot of electrical noise (like near a high-power motor in a factory), the signal can easily be distorted or lost completely. RS485 solves this problem with a completely different approach: differential signaling.

Key concepts

Instead of comparing the voltage of one wire with GND (like UART/RS232), RS485 uses 2 wires A and B, transmitting the same signal but inverted with each other. The receiver does not read the absolute voltage of each wire, but reads the voltage difference between A and B. If there is electrical noise affecting the line, that noise affects both A and B almost equally — the A-B difference is almost unchanged, the signal still reads correctly.

Thanks to this mechanism, RS485 achieves two outstanding advantages compared to regular RS232/UART:

  • Much better anti-interference, suitable for industrial environments near motors and inverters
  • Much longer distance — up to about 1200m (compared to a few meters of conventional UART TTL)

Bus with many nodes, but must control the direction of transmission

RS485 supports up to 32 devices on the same pair of A/B wires (multi-drop bus, similar to the idea of I2C but at a different physical layer). Since most RS485 circuits operate half-duplex (cannot send and receive simultaneously on the same pair of wires), the converter IC (e.g. MAX485) has an additional pin DE/RE to actively switch between send mode (Driver Enable) and receive mode (Receiver Enable) — forgetting to switch at the right time is a common RS485 programming error. most variable.

In short: RS485 = differential signal (anti-interference, long distance) + multi-node bus (multi-drop) — in return, you have to self-manage the transmission direction (DE/RE) and need an upper-layer protocol (like Modbus RTU) to know which node is allowed to "talk".

How it works

   A ──┬──────┬──────┬────── (voltage across A increases when B decreases, and vice versa)
   B ──┼──────┼──────┼──────
       │      │      │
    Node 1 Node 2 Node 3 (maximum 32 nodes on the same bus)

Control transmission direction with DE/RE pin before sending data:

HAL_GPIO_WritePin(DE_RE_Port, DE_RE_Pin, GPIO_PIN_SET);   // Switch to SEND mode
HAL_UART_Transmit(&huart1, data, len, HAL_MAX_DELAY);
HAL_GPIO_WritePin(DE_RE_Port, DE_RE_Pin, GPIO_PIN_RESET); // Switch back to RECEIVE mode as soon as sending is completed

Technical details

Formulas

The RS485 receiver only considers a signal valid when the differential voltage difference is large enough — the standard specifies a minimum threshold:

|V(A) − V(B)| ≥ 200mV to be considered a valid signal

VD: A = 2.5V, B = 2.3V
|2.5 − 2.3| = 0.2V = 200mV → just enough valid threshold (safety margin should be much larger in reality)

This is why even though each individual A/B wire may be subject to quite a bit of fluctuating noise, the system will still read it correctly — as long as the noise affects both wires the same (the twisted-pair standard helps ensure this) and the difference stays above 200mV.

Parameters

Maximum transmission speed and cable distance are inversely proportional to each other according to the RS485 specification — choosing a high baud rate means accepting shorter distances:

Baud rateMaximum cable distance reference
100 kbps~1200m
1 Mbps~120m
10 Mbps~15m

The standard termination resistor for RS485 cables is 120Ω, placed at 2 farthest ends of the bus (not every node) to prevent signal reflection on long cables.

Protocol

RS485 itself is just a differential signaling physical layer — it does not define data packaging or device addressing. The most popular protocol running on RS485 in industry is Modbus RTU (will be discussed in detail in a separate article in this category) — Modbus RTU defines the slave address, command code, and checksum, while RS485 only takes care of "how the electrical signal reaches the right place without interference".

Practical applications

On large AMR/AGVs with many motor drivers or sensors spread throughout the robot frame, RS485 is often used as a daisy-chain bus from the central controller to each motor driver located near each wheel - each driver is a node on the same A/B wire pair, individually addressed (usually via the Modbus RTU protocol on the upper layer). This wiring method significantly reduces the number of wires that have to be pulled along the robot frame compared to pulling a separate UART/CAN line for each driver, while still being able to withstand strong electromagnetic interference near high-power motors.

Practical example

RS485 wiring diagram for 3 motor drivers on 1 bus:

[Controller] ──A──┬────A────┬────A──── [Resistor 120Ω]
                ──B──┼────B────┼────B──── [Resistor 120Ω]
                  Driver 1 Driver 2 Driver 3 (last node)

Check with multimeter when the bus is idle:
|V(A) - V(B)| should be in the range of a few hundred mV to ~1-2V
If reading near 0V continuously → suspect lack of terminal resistance or broken wire

Place the 120Ω resistor only at the 2 farthest ends of the bus (not at every driver in the middle of the chain) — placing it in the wrong position or placing it at all nodes will attenuate the signal too much, causing intermittent data reading errors even though the wiring is completely correct.

Common mistakes

  • Lack of terminal resistors on long cables — not having 120Ω resistors at both ends of the bus causes signal reflection on long cables, manifesting as intermittent data reading errors, especially evident at high baud rates.
  • Forgetting to switch DE/RE at the right time — switching to send mode (Driver Enable) without running out of old data, or forgetting to switch back to receive mode after sending, makes that node "deaf" to not receive a response or causes a signal conflict (bus collision) with another sending node.
  • Inverting A and B wires — with most compliant devices, A/B inversion across the entire bus will still work (because it's just uniform phase inversion), but inverting A/B at only 1 node in the middle of the chain while the other nodes are in the right direction will cause communication errors with only that exact node.
  • Exceeding 32 nodes without using a repeater — standard RS485 bus limits 32 loads per segment, needs a signal repeater (repeater) if the system needs more devices, not just connecting more wires to run.

Conclusion

RS485 solves the two weaknesses of RS232/UART — electrical noise and short distances — with differential signaling, at the expense of having to manage half-duplex transmission yourself and needing an upper-layer protocol to coordinate multiple nodes. This is the most popular choice for sprawling multi-device industrial/AMR systems. The next article in the column is about CAN bus — another industrial/automotive standard, with error detection and priority arbitration mechanisms built right into the protocol layer.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

What is RS485? A robust communication standard for industrial environments — Atlas Robotics