RS485, formally known as TIA/EIA-485, represents a standard protocol in the realm of serial communication. Established by the Telecommunications Industry Association and the Electronic Industries Alliance (TIA/EIA), RS485 enables serial data exchange between multiple devices over distances up to 4000 feet. RS485 is a specification for the physical layer of a network, governing the electrical characteristics of drivers and receivers in a digital communication system.

Arduino

related projects, submodules and templates

If you’re just getting started with
Arduino
, we have many

RS485 is engineered to overcome the limitations inherent in older serial communication standards, such as RS232 and RS422. RS485's facilitates communication between more than two devices, a feature central to the concept of multidrop networking.

actual rs485 connector, its physical appearance.

RS485 Electrical Characteristics

| Category | Number | :=== | :=== | | Differential Voltage Levels | Minimum 200 mV | | Common Mode Voltage Range | -7V to +12V | | Maximum Data Rates | Up to 10 Mbps (short distances) | | | Up to 100 kbps (1200 meters) | | Termination Resistor Value | 120 ohms (at each end) | | Maximum Cable Length | Up to 1200 meters (data rate-dependent) | | Maximum Number of Nodes | Up to 32 (without repeaters) | | Driver Output Current | ±1.5 mA to ±250 mA | | Receiver Input Sensitivity | ±200 mV | | Driver Output Voltage Swing | 1.5V to 5V | | Receiver Input Resistance | 12 kΩ |

Key Characteristics

  • Differential Signaling. One of the most noteworthy features of RS485 is its use of differential signaling. This method involves transmitting each bit of data as a difference in voltage across the two wires of atwisted pair. Unlike single-ended signaling, where the signal is measured against a common ground, differential signaling measures the voltage difference between the two wires,significantly mitigating the impact of external noise.

    The principle behind differential signaling is relatively straightforward. Any external electrical noise typically induces similar electrical disturbances on both wires of the twisted pair. Since RS485 receivers interpret signals based on the voltage difference between these wires, common-mode noise is effectively canceled out. This characteristic makes RS485 particularly suited for environments with high electromagnetic interference, ensuring reliable data transmission even under challenging conditions.
  • Half-Duplex Communication. RS485 operates under a half-duplex communication mode. While the network can handle two-way communication, it cannot transmit and receive data simultaneously. In a half-duplex RS485 system, each device on the network takes turns in sending or receiving data. This mode of operation is a deliberate design choice that caters to the multidrop nature of RS485 networks.

    The half-duplex configuration allows for a simpler and more cost-effective network design, especially crucial in industrial applications where long cable runs and multiple devices are common. Although this means that data cannot flow in both directions simultaneously, the high-speed capabilities of RS485 ensure that the time lag in switching between sending and receiving modes is negligible for most practical applications.

Technical Specifications

Physical Layer

  1. Twist Pair Wiring - The physical infrastructure of RS485 relies on twisted pair wiring. In a twisted pair cable, two conductors are intertwined in a helical form, which significantly diminishes the effect of electromagnetic radiation and noise. The twist rate, or the number of twists per unit length, plays a role in determining the effectiveness of this noise cancellation.

    Twisted pair wiring in RS485 can be shielded or unshielded. Shielded twisted pair (STP) cables come with an additional layer of conducting material that acts as a shield against external noise. Unshielded twisted pair (UTP) cables, while more vulnerable to noise, are often preferred in less demanding environments due to their lower cost and ease of handling.

    The cable impedance, typically around 120 Ohms for RS485, requires matching of  the impedance of the cable with the terminating resistors at each end of the network to prevent signal reflections, which can degrade communication quality.
  2. Voltage Levels and Signal Encoding - RS485 defines specific voltage levels for logical high (1) and logical low (0) states in digital communication as at least 200 millivolts required for a valid signal, with a range typically extending up to ±6 volts. This range allows RS485 to achieve a balance between sufficient signal strength for reliable data detection and low enough voltages to minimize power consumption and reduce the risk of circuitry damage.

    Signal encoding in RS485 converts digital data into electrical signals for transmission. The most common encoding techniques include Non-Return-to-Zero (NRZ) and Bi-phase encoding. NRZ is straightforward, representing a logical 1 or 0 by a high or low voltage, respectively. Bi-phase encoding, on the other hand, incorporates transitions within each bit period, thereby aiding in clock recovery and synchronization in the absence of a separate clock line.

Data Link Layer

  1. Master-Slave Communication - At the data link layer, RS485 commonly employs a master-slave communication protocol. In this architecture, one device (the master) initiates and controls the communication with one or more slave devices. The master device sends commands or queries to the slaves, and the slaves respond accordingly. This hierarchical structure ensures organized and collision-free communication, especially in systems with multiple devices.
  2. Multi-Drop Configuration - RS485's ability to support multi-drop: allowing for multiple devices (up to 32, or more with repeaters) to be connected to a single communication bus without requiring additional select lines. Each device on the network has a unique address, and the master device can direct communication to a specific slave or broadcast to all devices. This topology is highly efficient for systems where centralized control and data collection from various points are necessary–i.e. systems with decentralized data sources and/or a variety of sensors and devices.
    1. Full-Duplex Capability - While RS485 is inherently a half-duplex standard, it can be extended to support full-duplex communication by using four-wire cabling (as opposed to the standard two-wire configuration). In a full-duplex RS485 system, two twisted pairs are used: one pair for transmitting data and the other for receiving. This allows simultaneous bi-directional communication, effectively doubling the data throughput. Full-duplex RS485 is advantageous in applications where rapid and continuous two-way data exchange is critical.

Comparison with RS232 and RS422

Pinout differences of RS485, RS232 and RS422. These standard protocols in serial communication devices and applications.

RS232 and RS422 are two other major serial communication protocols. While RS232 is limited in distance and device connectivity, offering point-to-point communication typically within 50 feet, RS485 extends this capability to 4000 feet and allows up to 32 devices on a single bus. RS422, similar to RS485 in terms of distance and voltage levels, differs primarily in its support for multi-drop configurations. RS422 is more suited for point-to-point or multipoint unidirectional communication, lacking the bidirectional, multi-drop capability inherent to RS485. 

Practical Applications: Industrial Use Cases

Profibus and Other Industrial Protocols

RS485 is the physical layer for several industrial protocols. 

  • Profibus (Process Field Bus) is a leading standard in industrial automation and capitalizes on RS485's robustness and reliability for field bus communication, facilitating data exchange among automation systems and field devices like sensors and actuators. RS485's ability to support long cable lengths and multiple devices makes it an ideal foundation for Profibus.
  • Modbus RTU and DNP3 leverage RS485's physical layer characteristics to ensure secure and efficient communication in automation systems, SCADA (Supervisory Control and Data Acquisition) systems, and other industrial control systems. 

Integration with Analog Devices

While RS485 inherently supports digital communication, it is often used in conjunction with analog-to-digital converters (ADCs) and digital-to-analog converters (DACs) to interface with analog sensors and control devices. This is useful when analog signals from sensors (like temperature, pressure, or flow sensors) need to be digitized for processing and monitoring in digital control systems. 

Considerations for Installation and Maintenance

Proper termination of the RS485 network is essential to prevent signal reflections, which can degrade communication quality. This involves matching the characteristic impedance of the cable with terminating resistors at each end of the network.

Cable selection and layout are also critical. Factors such as the type of twisted pair cable (shielded or unshielded), the environment where the cable is installed (including potential exposure to EMI), and adherence to proper grounding practices are critical for optimal network performance.

Maintenance of RS485 networks involves regular checks for any deterioration in cable integrity, connectors, and terminations. Additionally, Ensuring network reliability involves managing device limits and adhering to cable length specifications.

If this sounds interesting to you and you'd like to request a demo or learn more, please contact sales.

Contact Sales
Profile avatar of the blog author

Jharwin Barrozo

Jharwin is an electronics engineer mainly focused on satellites. He built his own ground station using Flux to monitor RF activities on the International Space Station. Find him on Flux @jharwinbarrozo

Go 10x faster from idea to PCB
Flux is an all-in-one EDA. Use re-usable blocks, scripting, and a library you don’t have to manage to dramatically reduce the time it takes to go from idea to prototype.
Illustration of sub-layout. Several groups of parts and traces hover above a layout.Illustration of sub-layout. Several groups of parts and traces hover above a layout.
Flux is a better way to build PCBs
Go 10x faster from idea to PCB by reducing busy work, never starting from scratch, and keeping your team in sync. All from the browser.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Flux is a better way to build PCBs
Go 10x faster from idea to PCB by reducing busy work, never starting from scratch, and keeping your team in sync. All from the browser.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Flux is a better way to build PCBs
Go 10x faster from idea to PCB by reducing busy work, never starting from scratch, and keeping your team in sync. All from the browser.
Screenshot of the Flux app showing a PCB in 3D mode with collaborative cursors, a comment thread pinned on the canvas, and live pricing and availability for a part on the board.
Flux for Enterprise
Learn how Fortune 500s are revolutionizing hardware design at scale with AI.
Flux for Enterprise
Join leading Fortune 500s and over 300k hardware engineers revolutionizing the way they build PCBs with AI
Flux for Enterprise
Join leading Fortune 500s and over 300k hardware engineers revolutionizing the way they build PCBs with AI