RS485 board/The board/03. Six pins and a terminal
The board · 03 of 11

Six pins and a terminal

Six holes along the bottom go to your microcontroller, and three screws along the top go to the bus. The one name that trips everybody is TX: it is the board's own transmit, the chip's receiver output, and it goes to your RX.

Two sides

The MAX485 board from directly above: a black three-way screw terminal across the top, B, GND and A printed under it over three holes, the eight-legged chip in the middle, a box printed TR 120R and a box printed RE-DE on the right, and six holes along the bottom edge printed GND, 5V, TX, RX, RE and DE.
Bus on top, your microcontroller along the bottom.

The board has two sides. Along the top, a screw terminal with B, GND and A, and three holes under it that carry the same three nets: this side goes to the other boards. Along the bottom, six holes for your microcontroller.

Every hole, and where it goes
TX is RO
Bottom row
Bus
Goes to
a UART RX pin
Chip pin
1
TX is an output, and it goes to your RX. The board is named from its own side: this is what the chip heard on the bus, sent to you. TX to TX is the most common first mistake, and it looks exactly like a broken board.

The six holes

HoleThe chip calls itWire it to
GNDGNDGND
5V or 3V3VCCThe matching supply pin
TXRO, receiver outputYour RX
RXDI, driver inputYour TX
REreceiver enableOne GPIO, with DE
DEdriver enableOne GPIO, with RE

TX and RX are named from the board's side, the way a USB-serial adapter names them. The chip's own names say it more plainly: RO is what it heard on the bus, coming out to you; DI is what you give it to put on the bus. Wire TX to TX and nothing moves in either direction, with no error anywhere.

What else is on the board

Every part is on both boards, with the same value:

  • 120 Ω between A and B, in the box printed TR 120R. It belongs on the two boards at the ends of a cable and nowhere else, and it ships fitted on all twelve. The 120 Ω resistor is about it.
  • A 0 Ω link between RE and DE, in the box printed RE-DE.
  • 20 kΩ from A up to the supply and 20 kΩ from B down to GND, which hold the bus at a 1 while nobody is talking — as far as the 120 Ω lets them.
  • 10 kΩ pull-ups on TX and RX, so neither line floats while your microcontroller is starting up.
  • 100 nF and 10 µF across the supply, and a power LED.
The MAX485 board from underneath: A, GND and B printed over the terminal's three pins at the top, MAX485 5V in a white box, A GND B again over three holes, lonely binary in large letters, and DE, RE, RX, TX, 5V and GND along the bottom, mirror-image to the top.
From underneath the order is mirrored: DE on the left, GND on the right.

From underneath, everything reads mirror-image: the bottom row starts with DE on the left. When you wire from the back, go by the printing on the back.

When it does not work

Nothing arrives, and I wired TX to TX.

The board names its pins from its own side. Its TX is what it sends to you, so it goes to your RX; its RX takes your TX. Swap the two wires. Nothing is damaged by having them crossed the wrong way.

Which RE or DE hole do I use?

Either. The 0 Ω link on the board joins them, so they are one net and one wire to either hole drives both. Wiring both holes to the same GPIO is also fine.

The terminal and the three holes under it: which do I use?

They are the same three nets, A, GND and B, so either. The screw terminal takes stripped cable for a real run; the three holes take a header or jumper wires on a bench.

The power LED does not light.

The LED sits across the supply through a 5.1 kΩ resistor, so if it is dark the board has no power: check the 5V or 3V3 hole and GND. It is dim by design, especially on the 3.3 V board.

Where this goes next

One pin decides whether the board talks or listens, and why that is the default.

RE and DE are joined

Edit this page — content/books/rs485/six-pins-and-a-terminal.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

This page covers several products. Choose yours to see the right discussions.

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum