RS485 - TTL to RS485 Module UART Port Converter

SKU: TP2003
TTL to RS485 module with MAX485ESA chip, VCC TXD RXD GND pins and A+ B- terminals, front view
TTL to RS485 module dimensions 1.69 by 0.63 inches, showing MAX485ESA chip, UART pins and terminal block

RS485 - TTL to RS485 Module UART Port Converter

SKU: TP2003
Default
Regular price $3.49
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $100.00 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

The TTL to RS485 Module UART Port Converter is a 4-pin UART-to-RS-485 board with a MAX485ESA transceiver and automatic send/receive switching.

Connect VCC, TXD, RXD and GND to a microcontroller's serial port, and A+ and B− to an RS-485 bus. It works with 3.3 V and 5 V signals, runs from 110 to 256000 bps, and needs no direction pin.

Chip
MAX485ESA
Baud rate
110–256000 bps
Signals
3.3 V and 5.0 V
Direction
Automatic

Why choose it

  • No direction pin — only VCC, TXD, RXD and GND to wire; the module switches between sending and receiving by itself.
  • Works with 3.3 V and 5 V boards — the communication signal is compatible with both, so the same module suits an Arduino UNO, ESP32 or Raspberry Pi Pico.
  • Protected bus side — dual TVS transient suppression diodes and a thermal recovery fuse on the A+ / B− terminals, plus TXD and RXD LEDs to watch traffic.

Specifications

Interface
UART side (4-pin header) VCC, TXD, RXD, GND
RS-485 side (3-way terminal) A+, B−, Earth
Direction control Automatic, no direction pin
Transceiver chip MAX485ESA
Baud rate 110–256000 bps
Power and signals
Operating voltage Compatible with 5.0 V
Communication signal Compatible with 3.3 V and 5.0 V
Operating temperature −40 °C to +85 °C
Protection and indicators
Bus protection Dual TVS transient suppression diodes, thermal recovery fuse, lightning protection design
Indicators TXD (send) and RXD (receive) LEDs
Physical
Dimensions 1.69 × 0.63 in (about 43 × 16 mm)

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Power the module from 5V. Use SoftwareSerial pins or a spare hardware UART.
ESP32 (3.3 V) ✓ Yes Use Serial2 (GPIO16 / GPIO17 in the Tutorial) and a 3.3 V / 5 V level converter, as shown in the Tutorial.
Raspberry Pi Pico (3.3 V) ✓ Yes Use UART0 (GP0 / GP1 in the Tutorial) and a 3.3 V / 5 V level converter, as shown in the Tutorial.
Software ✓ Yes Any serial port: Arduino Serial / Serial2 / SoftwareSerial, or the MicroPython UART class.

In the box

Included
  • 1 × TTL to RS485 Module UART Port Converter

Applications

  • Connect a microcontroller's UART to an RS-485 bus
  • Link two boards over a long two-wire cable
  • Talk to devices that have an RS-485 port

Tutorial

What you'll build: send a line of text from your board through this module onto an RS-485 bus once a second, and print anything that arrives from the bus. · About 20 minutes.

Choose your board

Board Logic voltage Pins used Language Best for
Arduino UNO 5 V D10, D11 (SoftwareSerial) C++ (Arduino IDE) First-timers
ESP32 3.3 V GPIO16, GPIO17 (Serial2) C++ (Arduino IDE) Projects that also need Wi-Fi

New to this? Start with the Arduino UNO.

How it works

Your board talks in UART (serial): one wire to send, one wire to receive. RS-485 sends the same data as a difference between two wires, which is what lets it run over long cables. This module sits in between and changes one into the other.

  • TXD / RXD — the module's UART pins. Here TXD takes the board's TX and RXD goes to the board's RX: they are not crossed over.
  • A+ / B− — the two RS-485 bus wires. Join A+ to A+ and B− to B− on every device on the bus.
  • Automatic direction — the module has no direction pin. It switches between sending and receiving by itself, and the TXD and RXD LEDs show activity.
  • GND — the return path. Every GND you wire to the board must be joined.
Arduino UNO Tutorial

You need: Arduino UNO R3, a data USB cable, this module, 4 jumper wires (male-to-female or male-to-male), and a second RS-485 device on the other end (for example a PC with a USB-to-RS485 adapter).

Wiring diagram: Arduino UNO to TTL to RS485 module. 5V to VCC, D11 to TXD, D10 to RXD, GND to GND. Arduino UNO5 V logicTTL to RS485UART side5VVCCPower (5 V)D11TXDUART TX →D10RXD← UART RXGNDGNDGNDRS-485 sideA+B−Earthto the bus

■ Power ■ GND ■ UART (TX / RX) Check the pin labels printed on your board.

# Arduino UNO pin Module pin Wire Notes
1 5V VCC Red Power for the module
2 D11 (SoftwareSerial TX) TXD Blue Board TX goes to the module pin named TXD
3 D10 (SoftwareSerial RX) RXD Blue Board RX comes from the module pin named RXD
4 GND GND Black Common ground

Watch out: Wire the UNO with the USB cable unplugged. Do not use D0 and D1: the USB connection to your computer uses them.

1
Install the Arduino IDE
Download and install the Arduino IDE. SoftwareSerial is built in, so there is no library to install.
2
Connect and upload
Plug the UNO in with a data USB cable. In the IDE choose Tools → Board → Arduino UNO, then Tools → Port → the port that appears when you plug the board in. If no port appears, try another cable and install the USB driver for your board. Paste the example below and click Upload.
▸ Example 1 — Send a line every second and print what arrives
// Wiring: VCC->5V, GND->GND, TXD->D11, RXD->D10
// (this module's TXD pin takes the board's TX, RXD pin goes to the board's RX)
#include <SoftwareSerial.h>

const int RS485_RX_PIN = 10;   // board receives on D10  <- module RXD
const int RS485_TX_PIN = 11;   // board sends on D11     -> module TXD
SoftwareSerial rs485(RS485_RX_PIN, RS485_TX_PIN);

unsigned long counter = 0;

void setup() {
  Serial.begin(115200);        // Serial Monitor speed
  rs485.begin(9600);           // you can change this - must match the other end
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  rs485.print("Hello from UNO #");   // send one line every second
  rs485.println(counter);
  Serial.print("Sent #");
  Serial.println(counter);
  counter++;

  unsigned long start = millis();
  while (millis() - start < 1000) {  // for 1 second, print anything that arrives
    while (rs485.available()) {
      Serial.write(rs485.read());
    }
  }
}
3
Open the Serial Monitor
Tools → Serial Monitor, and set the speed to 115200 baud.

✓ Check: Serial Monitor (115200 baud) prints OK - epartners.co.nz test once, then Sent #0, Sent #1 … every second. On the other end of the bus (a PC with a USB-to-RS485 adapter and a serial terminal at 9600 baud) you see Hello from … #0, #1 … line by line.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), a data USB cable, this module, a 4-channel bidirectional 3.3 V / 5 V logic level converter module (two channels are used; common BSS138-based modules work), about 9 jumper wires, and a second RS-485 device on the other end.

Wiring diagram: ESP32 DevKitC to level converter to TTL to RS485 module. 3V3 to LV, 5V (VIN) to HV and VCC, GPIO17 via converter to TXD, GPIO16 via converter to RXD, GND to GND. ESP32 DevKitC3.3 V logicLevel converterLV side | HV sideTTL to RS485UART side3V3LV5V (VIN)HVVCC5 VGPIO17LV1HV1TXDGPIO16LV2HV2RXDGNDGNDGNDGNDRS-485 sideA+B−Earthto the bus

■ 3.3 V (converter LV side) ■ 5 V power ■ GND ■ UART (TX / RX) Check the pin labels printed on your boards.

# ESP32 pin Connects to Wire Notes
1 3V3 Converter LV Orange Reference voltage for the 3.3 V side
2 5V (VIN) Converter HV and module VCC Red 5 V for the module and the converter HV side
3 GPIO17 (TX2) Converter LV1 → HV1 → module TXD Blue Board TX goes through the converter to the module pin named TXD
4 GPIO16 (RX2) Converter LV2 ← HV2 ← module RXD Blue The module pin named RXD goes through the converter to board RX, so the 5 V signal is stepped down to 3.3 V
5 GND Converter GND (both sides) and module GND Black Common ground for all three parts

Watch out: ESP32 pins are 3.3 V only: never connect the module's 5 V RXD output straight to GPIO16. Always pass it through the level converter. Power the module from the 5V (VIN) pin, which carries 5 V only while the board is powered over USB. Wire with the USB cable unplugged.

1
Install the Arduino IDE
Download and install the Arduino IDE.
2
Add the ESP32 boards
File → Preferences → Additional boards manager URLs → paste https://espressif.github.io/arduino-esp32/package_esp32_index.json. Then Tools → Board → Boards Manager → search "esp32" → install esp32 by Espressif Systems (installation guide).
3
Choose board and port
Tools → Board → ESP32 Arduino → ESP32 Dev Module. Plug the board in with a data USB cable and pick its port under Tools → Port. If no port appears, install the USB driver for your board.
▸ Example 1 — Send a line every second and print what arrives
// Wiring: VCC and converter HV->5V (VIN), converter LV->3V3, GND->GND
// GPIO17->converter->module TXD, GPIO16<-converter<-module RXD
// (the converter steps the module's 5 V RXD output down to 3.3 V for GPIO16)
const int RS485_RX_PIN = 16;   // board receives on GPIO16  <- module RXD
const int RS485_TX_PIN = 17;   // board sends on GPIO17     -> module TXD

unsigned long counter = 0;

void setup() {
  Serial.begin(115200);        // Serial Monitor speed
  // you can change 9600 - it must match the other end
  Serial2.begin(9600, SERIAL_8N1, RS485_RX_PIN, RS485_TX_PIN);
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  Serial2.print("Hello from ESP32 #");   // send one line every second
  Serial2.println(counter);
  Serial.print("Sent #");
  Serial.println(counter);
  counter++;

  unsigned long start = millis();
  while (millis() - start < 1000) {      // for 1 second, print anything that arrives
    while (Serial2.available()) {
      Serial.write(Serial2.read());
    }
  }
}
4
Upload
Paste the example and click Upload. If the upload fails or stops part-way, set Tools → Upload Speed → 115200 and upload again. If it says "Connecting…", hold the BOOT button until uploading starts.
5
Open the Serial Monitor
Tools → Serial Monitor, speed 115200 baud.

✓ Check: Serial Monitor (115200 baud) prints OK - epartners.co.nz test once, then Sent #0, Sent #1 … every second. On the other end of the bus (a PC with a USB-to-RS485 adapter and a serial terminal at 9600 baud) you see Hello from … #0, #1 … line by line.

Troubleshooting

Board Problem Likely cause Fix
All Nothing arrives on the other end A+ and B− are swapped, or the two ends use different baud rates Swap the A+ and B− wires on one end, and set the same baud rate (9600 in the example) on both ends.
All Nothing is sent TX and RX wired the wrong way round Board TX goes to the module pin named TXD, board RX goes to the pin named RXD. If it still fails, try swapping the two wires.
All Garbled characters Baud rate mismatch or a missing common ground Match the baud rate on both ends and check GND is connected.
All TXD LED never lights The board is not sending, or the wires are loose Check the pin numbers in your code against the pin table, and re-seat the jumper wires.
ESP32 Stuck on "Connecting…" Board is not in upload mode Hold the BOOT button until uploading starts.
ESP32 Upload fails or stops part-way Upload speed too high for the USB cable or the board Tools → Upload Speed → 115200, then upload again.
UNO No port in the Tools menu Charge-only cable or missing USB driver Use a data USB cable and install the USB driver for your board.

Try next: change the message and baud rate on both ends, or connect two of these modules to two boards and send data between them.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we'll check it and update the tutorial.

Good to know
  • The module's TXD pin takes your board's TX, and its RXD pin goes to your board's RX. Do not cross them over.
  • Join A+ to A+ and B− to B− on every device. If no data arrives, swap the two wires on one end.
  • RS-485 buses normally have a 120 Ω termination resistor at the two far ends of a long cable.

Datasheet

Key figures from the manufacturer's datasheet for the MAX485 transceiver chip on this module. The module's own limits are in Specifications above.

MAX485 RS-485 transceiver
Description Low-power, slew-rate-limited RS-485/RS-422 transceiver
Supply voltage 5 V ±5% (4.75–5.25 V); absolute maximum 12 V
Quiescent current 300 µA
Maximum data rate 2.5 Mbps
Transceivers on one bus 32
Receiver input impedance 12 kΩ (1 unit load)
Receiver threshold ±0.2 V differential (70 mV typical hysteresis)
Open-circuit input Receiver output goes high (fail-safe)
Package and temperature (ESA) 8-pin SO, −40 °C to +85 °C

Download the MAX485 datasheet (PDF)

Source: Analog Devices (Maxim Integrated), MAX481/MAX483/MAX485/MAX487–MAX491/MAX1487 datasheet.

Resources

Which one should I choose?

Product Key difference Best for
This product (TTL to RS485 Module UART Port Converter) Four UART pins (VCC, TXD, RXD, GND); direction is automatic; signals compatible with 3.3 V and 5.0 V Connecting a board's UART to an RS-485 bus without a direction pin
RS485 - MAX485 RS485 Transceiver Module Bare MAX485 module with RO, RE, DE and DI pins; direction is set with one digital pin; 5 V supply and 5 V logic levels Projects where you want to control send/receive direction in code
RS485 - USB to RS485 Converter Adapter USB 2.0 connection on the computer side; automatic direction; 300–9216000 bps baud rate Connecting a PC to an RS-485 bus

FAQ

▸ Do I need a direction control pin?

No. The module has only four UART pins (VCC, TXD, RXD, GND) and switches between sending and receiving by itself.

▸ Can I use it with an ESP32 or Raspberry Pi Pico?

Yes. The communication signal is compatible with 3.3 V and 5.0 V. The Tutorial powers the module from 5 V and uses a 3.3 V / 5 V level converter on the TX and RX lines, so the 3.3 V pins of the ESP32 and Pico are never exposed to 5 V.

▸ How do I connect two of these modules together?

Join A+ to A+ and B− to B− with a two-wire cable. Each module then connects to its own board's UART. If no data arrives, swap the two wires on one end.

▸ How far can an RS-485 cable run?

RS-485 allows cable runs of up to 1200 m, with the usable data rate falling as the cable gets longer (CircuitState). The distance you get depends on your cable, baud rate and termination.

▸ Can I connect it to a computer?

Yes, through a USB-to-RS485 adapter on the computer side, such as our USB to RS485 Converter Adapter.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we'll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

Recently viewed