Design overview
Key specifications and signal flow at a glance
Block diagram
The isolated DC-DC and digital isolator break ground loops between distant nodes. Bias resistors and a 120 Ohm terminator sit only at the two bus ends.
Bill of materials
Select the lines you need and send them to RFQ in one click
Tick the lines you need, then copy the list, download a CSV, or open the RFQ form. Part numbers are common catalogue items; equivalents are acceptable.
| # | Function | Suggested part | Key spec | Qty | |
|---|---|---|---|---|---|
| 1 | MCU | STM32G030F6P6 | Cortex-M0+, 32 KB flash, TSSOP-20 | 1 | |
| 2 | RS-485 transceiver | SN65HVD3082EDR | 3.3 V, half duplex, SOIC-8 | 1 | |
| 3 | Digital isolator | ISO7721DR | 2.5 kVrms, dual channel, SOIC-8 | 2 | |
| 4 | Isolated DC-DC | B0505S-1WR3 | 5 V to 5 V, 1 W, SIP-4 | 1 | |
| 5 | 3.3 V LDO | AMS1117-3.3 | 800 mA, SOT-223 | 1 | |
| 6 | Bus ESD protection | PESD5V0S2BA | 5 V, SOT-23 | 1 | |
| 7 | Decoupling cap | GRM155R71C104KA88D | 100 nF, X7R, 25 V, 0402 | 8 | |
| 8 | Bulk cap | GRM21BR61A106KE19L | 10 uF, X5R, 10 V, 0805 | 2 | |
| 9 | Termination resistor | CRCW0603120RFKEA | 120 Ohm, 1%, 0603 | 2 | |
| 10 | Resistor | CRCW040210K0FKED | 10 kOhm, 1%, 0402 | 12 |
Design notes
Engineering choices and common pitfalls
Bus biasing and termination
RS-485 needs a single fail-safe bias pair for the whole segment and 120 Ohm termination only at the ends. Adding bias at every node overloads the driver and causes intermittent failures. Calculate total bus load before adding more than 32 nodes.
Isolation strategy
Isolate the transceiver side, not the whole board. A 1 W isolated DC-DC plus a dual digital isolator protects the MCU from ground potential differences across a long cable. Keep the isolation gap free of copper and traces.
Cable and connector choice
Use twisted pair with 120 Ohm characteristic impedance. Avoid star topology; daisy-chain the A/B lines instead. Put a TVS array at the connector and route the shield to chassis through a 1 nF capacitor and 1 MOhm resistor.
Modbus firmware notes
Set the transceiver driver-enable pin with a guard time of at least one character after the last transmitted byte. Most field bus failures come from releasing DE too early, which truncates the CRC.
Frequently asked questions
What is needed for an RS-485 Modbus sensor node?
An MCU with a UART, a half-duplex RS-485 transceiver, bus protection, a 3.3 V regulator, bias and termination resistors, plus decoupling parts.
How long can an RS-485 cable be?
Up to 1200 metres at lower baud rates such as 9600 bps. Higher speeds shorten the usable distance; use shielded 120 Ohm twisted pair and a daisy-chain topology.
Why isolate the RS-485 side?
Ground potential differences between distant nodes can exceed the transceiver common-mode range. Isolation protects the MCU and prevents ground-loop currents through the cable shield.