Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›IoT & Wireless
  4. ›MAX485 RS485 to TTL Module

Component guide · Intermediate · 3 min read

MAX485 RS485 to TTL Module

Pinout, Wiring and Modbus Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the MAX485 RS485 module isMAX485 RS485 module pinoutWiring the MAX485 RS485 moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

The MAX485 module converts a microcontroller's UART into RS485, the two-wire differential bus used by industrial sensors and Modbus devices over long cables (up to about 1200 m). Connect DI to TX, RO to RX and drive the joined DE/RE pins HIGH to send and LOW to receive. Wire A to A and B to B on the bus.

Key specs at a glance

Standard
RS485 half duplex
Speed
Up to 2.5 Mbps (lower over long cables)
Distance
Up to about 1200 m at low baud rates
Devices
Up to 32 on one bus (unit loads)
Supply
5 V (MAX485); use MAX3485 or a 3.3 V module for 3.3 V boards
Pins
RO, RE, DE, DI to the controller; A, B to the bus

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1MAX485 RS-485 to TTL Module₹28
  • Option 2MAX485 TTL to RS485 Converter Module – 5V DC₹209
  • Option 3MAX485 RS485 Transceiver IC₹35
01

What the MAX485 RS485 module is

RS485 sends each bit as a voltage difference between two wires, A and B, which rejects electrical noise and allows long cables. Many devices share one pair, each with its own address when using Modbus RTU.

The MAX485 is half duplex: it either sends or listens. Your code switches direction with the DE (driver enable) and RE (receiver enable) pins, usually tied together.

02

MAX485 RS485 module pinout

The pins on the MAX485 RS485 module and what each one does.

PinFunction
ROReceiver output, to controller RX
REReceiver enable, LOW = listen
DEDriver enable, HIGH = send
DIDriver input, from controller TX
VCC5 V
GNDGround
ABus A (non-inverting, sometimes D+)
BBus B (inverting, sometimes D−)
PinFunction
RO
Receiver output, to controller RX
RE
Receiver enable, LOW = listen
DE
Driver enable, HIGH = send
DI
Driver input, from controller TX
VCC
5 V
GND
Ground
A
Bus A (non-inverting, sometimes D+)
B
Bus B (inverting, sometimes D−)
03

Wiring the MAX485 RS485 module

On an ESP32 the 5 V MAX485 outputs 5 V on RO, so divide it to 3.3 V or use a 3.3 V transceiver. Fit a 120 Ω termination resistor at each end of long buses (many modules have one already).

MAX485 RS485 module pinArduino UnoESP32
ROD10 (SoftwareSerial RX)GPIO 16 (RX2) via divider
DID11 (SoftwareSerial TX)GPIO 17 (TX2)
DE + RED2GPIO 4
VCC5V5V (VIN)
GNDGNDGND and bus ground
A / BDevice A / BDevice A / B
RO
Arduino Uno:
D10 (SoftwareSerial RX)
ESP32:
GPIO 16 (RX2) via divider
DI
Arduino Uno:
D11 (SoftwareSerial TX)
ESP32:
GPIO 17 (TX2)
DE + RE
Arduino Uno:
D2
ESP32:
GPIO 4
VCC
Arduino Uno:
5V
ESP32:
5V (VIN)
GND
Arduino Uno:
GND
ESP32:
GND and bus ground
A / B
Arduino Uno:
Device A / B
ESP32:
Device A / B
04

Example code

Install the ModbusMaster library. Address, baud rate, register numbers and scaling come from your sensor's manual.

Read a Modbus sensor register (ModbusMaster) · Arduino C++Verify & upload in Electrolark
#include <ModbusMaster.h>
#include <SoftwareSerial.h>

const int DIR = 2;
SoftwareSerial rs485(10, 11);      // RO, DI
ModbusMaster node;

void preTx()  { digitalWrite(DIR, HIGH); }
void postTx() { digitalWrite(DIR, LOW); }

void setup() {
  Serial.begin(9600);
  rs485.begin(9600);
  pinMode(DIR, OUTPUT); postTx();
  node.begin(1, rs485);            // slave address 1
  node.preTransmission(preTx);
  node.postTransmission(postTx);
}

void loop() {
  uint8_t r = node.readHoldingRegisters(0x0000, 2);   // check your sensor's register map
  if (r == node.ku8MBSuccess) {
    Serial.print("Reg 0: "); Serial.print(node.getResponseBuffer(0));
    Serial.print("  Reg 1: "); Serial.println(node.getResponseBuffer(1));
  } else {
    Serial.print("Modbus error 0x"); Serial.println(r, HEX);
  }
  delay(2000);
}
05

Setup and tuning

A/B swapped?

If nothing answers, swap A and B; labels are not consistent between makers.

Ground

connect the ground of all devices over long runs, or use isolated modules.

Bias resistors

many modules include pull-up/pull-down bias on A and B; with several modules on one bus, keep bias on only one.

Baud error

check timing at your baud rate with the UART baud error calculator.

06

What you need

Shop this list4 of 5 found in our store · ₹321

  • MAX485 RS-485 to TTL module: the common moduleMAX485 RS-485 to TTL Module₹28
  • MAX485 TTL to RS485 converter module: alternative boardMAX485 TTL to RS485 Converter Module – 5V DC₹209
  • MAX485 RS485 transceiver IC: the bare chip for your own PCBMAX485 RS485 Transceiver IC₹35
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
07

Alternatives and when to choose them

  • ✓RS485 and RS232: how the standards differ.
  • ✓Modbus RTU with Arduino and ESP32: full Modbus walkthrough.
  • ✓CAN bus MCP2515: another robust multi-drop bus, common in vehicles.
08

Try it: Uart baud rate error calculator

Change the values and the diagram and results update as you type.

09

Common mistakes to avoid

  • !Leaving DE/RE floating, so the module never sends or never listens.
  • !Connecting a 5 V RO output straight to an ESP32 pin.
  • !No termination on a long cable.
  • !Assuming A and B labels match on every device.
10

Frequently asked questions

What is RS485 used for?

Long-distance, noise-resistant serial links to industrial sensors, energy meters, PLCs and VFDs, usually with Modbus RTU.

Does MAX485 work with ESP32?

Power it at 5 V and level-shift RO, or use a 3.3 V transceiver such as the MAX3485.

How many devices can share the bus?

Up to 32 standard loads; more with low-load transceivers.

Do I need a termination resistor?

On long or fast buses, yes: 120 Ω at each end.

Why do I get Modbus timeouts?

Wrong baud rate, address, A/B swapped, or DE/RE not switching at the right time.

Can it do full duplex?

No. The MAX485 is half duplex; use a MAX490-style part for full duplex.

Parts for this guide

  • MAX485 RS-485 to TTL Module
    ₹28View
  • MAX485 TTL to RS485 Converter Module – 5V DC
    ₹209View
  • MAX485 RS485 Transceiver IC
    ₹35View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Interface ModulesShop RS485, Modbus & CAN Communication ModulesShop Interface & RF Encoder ICs

Calculators

Uart baud rate error calculatorSerial transfer time calculator

Terms in this guide

ModbusA simple industrial request-and-reply protocol in which a master polls numbered registers on slave devices, usually over RS-485 (Modbus RTU) or Ethernet (Modbus TCP).UARTUniversal asynchronous receiver-transmitter: two-wire serial (TX and RX) used by GPS, Bluetooth modules and debug output.

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Intermediate · 3 hoursRead RS485 Modbus industrial sensors with an ESP32View project
Browse all 1 project

Keep learning

Component guideIntermediateRS-485 and RS-232 ModulesRS-485 and RS-232 carry UART serial data over longer cables than plain TTL.3 min read · IoT & WirelessHow-toAdvancedModbus RTU With Arduino and ESP32Connect industrial Modbus RTU sensors to Arduino or ESP32 with an RS485 module: wiring, termination, slave addresses, baud rate, registers and example code.3 min read · IoT & WirelessConcept explainerBeginnerUART and Serial CommunicationA UART sends data one bit at a time over one wire with no shared clock, so both ends must agree on the speed, called the baud rate (9600 and 115200 are common).4 min read · Electronics FundamentalsHow-toAdvancedSerial Device ServersA serial device server turns an RS485 or RS232 port into a network connection.3 min read · IoT & Wireless

Sources

  • MAX481/MAX483/MAX485 low-power RS-485/RS-422 transceivers datasheet (Analog Devices / Maxim)
  • ModbusMaster Arduino library

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the MAX485 RS485 module isMAX485 RS485 module pinoutWiring the MAX485 RS485 moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide1 item · ₹28

MAX485 RS-485 to TTL Module

Run itChange the inputs and watch the output
Serial monitor9600 baud
Reg 0: 241  Reg 1: 582

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question