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. ›Tools & Workshop Skills
  4. ›Waveshare Modbus RTU 8-Channel Digital, Analog Input

Component guide · Intermediate · 4 min read

Waveshare Modbus RTU 8-Channel Digital, Analog Input and Analog Output Modules

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Waveshare Modbus RTU IO module isWaveshare Modbus RTU IO module pinoutWiring the Waveshare Modbus RTU IO moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These DIN rail modules add inputs and outputs to any Modbus master over RS485. The 8-channel DIO module reads switches and drives relays or loads, the analog acquisition modules read 0 to 20 mA or 0 to 10 V sensors, and the analog output module sets 0 to 10 V for VFDs and valves. A PC, PLC, Raspberry Pi or ESP32 reads and writes them with standard Modbus function codes.

Key specs at a glance

Interface
Isolated RS485, Modbus RTU (USR-IO4040: Ethernet, Modbus TCP)
Digital IO
8 optocoupled inputs and 8 outputs
Analog inputs
8 channels, 0 to 20 mA / 4 to 20 mA or 0 to 10 V, 12-bit
Analog outputs
8 channels, 0 to 10 V
Supply
7 to 36 V DC
Mounting
35 mm DIN rail

Models in this guide

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

  • Option 1Waveshare Industrial 8-Ch Digital Input and Output Module, Modbus RTU₹2,550
  • Option 2Waveshare Industrial 8-Channel Analog Acquisition Module 0-20mA RS485₹2,699
  • Option 3Waveshare Industrial 8-Channel Analog Acquisition Module, 0–10V, RS485 Modbus₹2,699
  • Option 4Waveshare Industrial 8-Ch Analog Output Module, Modbus RTU₹2,450
  • Option 5PUSR Remote IO Module (Ethernet / Modbus)₹2,350
01

What the Waveshare Modbus RTU IO module is

Each module has a Modbus address (default 1) and baud rate (default 9600) set by registers. Digital outputs are coils (function 05 and 15), digital inputs are discrete inputs (function 02), analog inputs are input or holding registers (function 03 or 04) and analog outputs are holding registers (function 06 and 16). Waveshare's wiki lists every register.

The USR-IO4040 is an Ethernet remote IO with 4 inputs and 4 relays that speaks Modbus TCP directly.

02

Waveshare Modbus RTU IO module pinout

The pins on the Waveshare Modbus RTU IO module and what each one does.

PinFunction
A+ / B- / GNDRS485 bus
V+ / V-7 to 36 V supply
DI1 to DI8, COMDigital inputs
DO1 to DO8, COMDigital outputs (open drain on DIO module)
AIN1 to AIN8Analog inputs
AO1 to AO8Analog outputs
PinFunction
A+ / B- / GND
RS485 bus
V+ / V-
7 to 36 V supply
DI1 to DI8, COM
Digital inputs
DO1 to DO8, COM
Digital outputs (open drain on DIO module)
AIN1 to AIN8
Analog inputs
AO1 to AO8
Analog outputs
03

Wiring the Waveshare Modbus RTU IO module

Give each module a unique address before putting several on one bus. For two-wire 4 to 20 mA sensors, power the loop from 24 V and return through the input; check the module's input type setting.

Waveshare Modbus RTU IO module pinMaster sideBus continues
A+ / B-USB to RS485 or MAX485 A+ / B-A+ / B- of the next module
V+ / V-12 or 24 V supplySame supply
AIN (4-20 mA)Two-wire sensor between 24 V and AIN-
A+ / B-
Master side:
USB to RS485 or MAX485 A+ / B-
Bus continues:
A+ / B- of the next module
V+ / V-
Master side:
12 or 24 V supply
Bus continues:
Same supply
AIN (4-20 mA)
Master side:
Two-wire sensor between 24 V and AIN
Bus continues:
-
04

Example code

Register numbers and scaling (mA, mV or raw counts) differ by module; check the Waveshare wiki page for your model. Node-RED's Modbus nodes work the same way.

Read 8 analog inputs and switch an output (pymodbus) · MicroPython
from pymodbus.client import ModbusSerialClient

c = ModbusSerialClient(port="/dev/ttyUSB0", baudrate=9600, parity="N", stopbits=1)
c.connect()
ai = c.read_input_registers(0, count=8, slave=1)   # analog module at address 1
print("mA or mV:", ai.registers)
c.write_coil(0, True, slave=2)                      # DIO module at address 2, output 1 on
c.close()
05

Setup and tuning

Change the address

connect one module at a time and write the address register.

Analog mode

set each input channel's range (0 to 20 mA, 4 to 20 mA or 0 to 10 V) by register.

Testing

Waveshare's Modbus Poll setups and screenshots match the wiki register map.

Two wires plus ground

run A, B and a ground or shield wire; A to A and B to B on every device.

Termination

fit 120 ohm resistors only at the two ends of a long bus.

Topology

daisy-chain the devices; avoid stars and long stubs.

Settings

every device on one bus needs the same baud rate and parity and a unique Modbus address.

06

What you need

Shop this list10 of 10 found in our store · ₹95,514

  • Waveshare Industrial 8-Ch Digital Input and Output Module, Modbus RTU: the part this guide coversWaveshare Industrial 8-Ch Digital Input and Output Module, Modbus RTU₹2,550
  • Waveshare Industrial 8-Channel Analog Acquisition Module 0-20mA RS485: another version this guide coversWaveshare Industrial 8-Channel Analog Acquisition Module 0-20mA RS485₹2,699
  • Waveshare Industrial 8-Channel Analog Acquisition Module, 0–10V, RS485 Modbus: another version this guide coversWaveshare Industrial 8-Channel Analog Acquisition Module, 0–10V, RS485 Modbus₹2,699
  • Waveshare Industrial 8-Ch Analog Output Module, Modbus RTU: another version this guide coversWaveshare Industrial 8-Ch Analog Output Module, Modbus RTU₹2,450
  • PUSR Remote IO Module (Ethernet / Modbus): another version this guide coversPUSR Remote IO Module (Ethernet / Modbus)₹2,350
  • 24V 4A switching power supply board: the usual supply for DIN rail devices24V 4A AC-DC Switching Power Supply Board₹411Closest match, check the specs
  • USB to RS485 converter adapter: to test the bus from a PCUSB to RS485 Converter Adapter₹74
  • MAX485 TTL to RS485 converter module: to put an Arduino or ESP32 on the same busKikobot C1 6-Axis Robotic Arm for Education and Research₹70,800
  • DIN rail screw terminal block: to land field wires neatly on the railDIN Rail Screw Terminal Block₹20
  • Raspberry Pi 4 Model B 4GB: a small Modbus master or Node-RED hostRaspberry Pi 4 Model B with 4GB RAM₹11,461Closest match, check the specs
07

Alternatives and when to choose them

  • ✓Wittelb WIN-IO Modbus modules: similar modules with mixed IO and MQTT options.
  • ✓Modbus RTU with Arduino and ESP32: use a microcontroller as the master.
  • ✓4-20 mA signal conditioners: read loop current without Modbus.
08

Common mistakes to avoid

  • !Two modules with the same address.
  • !Reading coils when the data is in registers.
  • !Wrong input range setting for the sensor.
  • !Powering 4 to 20 mA sensors from 5 V.
09

Frequently asked questions

Can an ESP32 be the master?

Yes, with a MAX485 or isolated TTL to RS485 module and a Modbus master library.

How many modules on one bus?

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

Do the outputs drive relays?

Open drain outputs switch relay coils or small loads; use relays for mains.

Is the 0 to 20 mA module isolated?

The RS485 side is isolated; check the wiki for channel isolation.

What is the USR-IO4040?

An Ethernet remote IO with relays, controlled over Modbus TCP.

Parts for this guide

  • Waveshare Industrial 8-Ch Digital Input and Output Module, Modbus RTU
    ₹2,550View
  • Waveshare Industrial 8-Channel Analog Acquisition Module 0-20mA RS485
    ₹2,699View
  • Waveshare Industrial 8-Channel Analog Acquisition Module, 0–10V, RS485 Modbus
    ₹2,699View
  • Waveshare Industrial 8-Ch Analog Output Module, Modbus RTU
    ₹2,450View
  • PUSR Remote IO Module (Ethernet / Modbus)
    ₹2,350View
  • 24V 4A AC-DC Switching Power Supply Board
    ₹411View
  • USB to RS485 Converter Adapter
    ₹74View
  • MAX485 TTL to RS485 Converter Module – 5V DC
    ₹209View
  • DIN Rail Screw Terminal Block
    ₹20View
  • Raspberry Pi 4 Model B with 4GB RAM
    ₹11,461View
Shop Industrial Serial Servers & Gateways (RS485, PoE, Modbus)

Keep learning

How-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 & WirelessComponent guideBeginnerUSB to RS485 ConverterA USB to RS485 converter gives a PC or Raspberry Pi a COM port that talks on an RS485 bus.4 min read · Tools & Workshop SkillsHow-toIntermediate4-20 mA and 0-10 V SignalsA 4-20 mA loop sends a measurement as current, so it works over long, noisy cables and a broken wire shows as 0 mA.3 min read · SensorsComponent guideIntermediateMAX485 RS485 to TTL ModuleThe 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).3 min read · IoT & Wireless

Sources

  • Waveshare Modbus RTU IO and analog module wikis
  • Modbus application protocol specification

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 Waveshare Modbus RTU IO module isWaveshare Modbus RTU IO module pinoutWiring the Waveshare Modbus RTU IO moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon 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 guide5 items · ₹78,170

Waveshare Industrial 8-Ch Digital Input and Output Module, Modbus RTU · Waveshare Industrial 8-Ch Analog Output Module, Modbus RTU · PUSR Remote IO Module (Ethernet / Modbus) · Kikobot C1 6-Axis Robotic Arm for Education and Research · DIN Rail Screw Terminal Block

Run itChange the inputs and watch the output

Units depend on the module's range setting; many report microamps (4000 to 20000 for 4-20 mA). Coil 0 on module 2 switches on.

DIO output 1 ON
Shell
$ python3 io.py
mA or mV: [12000, 0, 0, 0, 0, 0, 0, 0]

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