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. ›Electronics Fundamentals
  4. ›UART and Serial Communication
Step 7 of 16 in Arduino from zeroPart of a learning path.
Next

Concept explainer · Beginner · 4 min read

UART and Serial Communication

TX, RX, Baud Rate and Wiring

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerHow UART worksSerial ports on common boardsSoftwareSerial and when to avoid itVoltage levels: TTL, RS-232 and RS-485Debugging serial linksTry itCommon mistakesFAQsParts and next steps
Short answer

A 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). Connect each device's TX to the other's RX and join the grounds. GPS, Bluetooth, GSM and MP3 modules all use UART. Logic levels must match: 3.3 V boards need a divider or level shifter from 5 V devices.

Key specs at a glance

Wires
TX, RX, GND (cross TX to RX)
Frame
Usually 8N1: start bit, 8 data bits, no parity, 1 stop bit
Common baud rates
9600, 38400, 57600, 115200
Throughput
About baud / 10 bytes per second (9600 baud = 960 bytes/s)
Logic levels
TTL 5 V or 3.3 V; RS-232 uses about ±12 V (never connect directly)
Distance
A few metres at TTL levels; RS-485 for long runs
01

How UART works

The line idles HIGH. To send a byte, the transmitter pulls it LOW for one bit time (the start bit), sends 8 data bits (least significant first), then returns HIGH for the stop bit. The receiver detects the falling edge of the start bit and samples the line in the middle of each bit time, which is why both sides must use the same baud rate: a mismatch produces garbage characters. Each frame of 10 bits carries one byte, so 9600 baud moves about 960 bytes per second.

02

Serial ports on common boards

BoardHardware UARTsPinsNotes
Arduino Uno / Nano1D0 RX, D1 TXShared with USB; disconnect modules while uploading
Arduino Mega 256040/1, 19/18, 17/16, 15/14 (RX/TX)Serial1 to Serial3 are free for modules
ESP323UART0 = USB; Serial2 default GPIO 16 RX / 17 TXPins can be remapped: Serial2.begin(9600, SERIAL_8N1, RX, TX)
ESP82661.5GPIO 3 RX / 1 TX; GPIO 2 TX-onlySerial.swap() moves UART0 to GPIO 13/15
Raspberry Pi Pico2Serial1 GP0 TX / GP1 RX by defaultUSB serial is separate (Serial)
Raspberry Pi1 main (more on Pi 4/5)GPIO 14 TX, 15 RXEnable in raspi-config; disable the login console to use it
Arduino Uno / Nano
Hardware UARTs:
1
Pins:
D0 RX, D1 TX
Notes:
Shared with USB; disconnect modules while uploading
Arduino Mega 2560
Hardware UARTs:
4
Pins:
0/1, 19/18, 17/16, 15/14 (RX/TX)
Notes:
Serial1 to Serial3 are free for modules
ESP32
Hardware UARTs:
3
Pins:
UART0 = USB; Serial2 default GPIO 16 RX / 17 TX
Notes:
Pins can be remapped: Serial2.begin(9600, SERIAL_8N1, RX, TX)
ESP8266
Hardware UARTs:
1.5
Pins:
GPIO 3 RX / 1 TX; GPIO 2 TX-only
Notes:
Serial.swap() moves UART0 to GPIO 13/15
Raspberry Pi Pico
Hardware UARTs:
2
Pins:
Serial1 GP0 TX / GP1 RX by default
Notes:
USB serial is separate (Serial)
Raspberry Pi
Hardware UARTs:
1 main (more on Pi 4/5)
Pins:
GPIO 14 TX, 15 RX
Notes:
Enable in raspi-config; disable the login console to use it
03

SoftwareSerial and when to avoid it

On an Uno, the only hardware UART is shared with USB, so modules often use SoftwareSerial on two other pins. It works at 9600 to 38400 baud, but it can only listen on one port at a time, blocks interrupts while sending, and becomes unreliable at 115200. If you need several serial devices or high speeds, use a Mega, an ESP32 or a Pico, which have spare hardware UARTs.

Pass data between a module and the Serial Monitor · Arduino C++Verify & upload in Electrolark
#include <SoftwareSerial.h>
SoftwareSerial module(10, 11);   // RX, TX

void setup() {
  Serial.begin(115200);   // to the computer
  module.begin(9600);     // to the module (GPS, HC-05, SIM800L...)
}

void loop() {
  if (module.available()) Serial.write(module.read());
  if (Serial.available()) module.write(Serial.read());
}
04

Voltage levels: TTL, RS-232 and RS-485

Microcontroller UARTs use TTL levels: 0 V for LOW and 3.3 V or 5 V for HIGH. A 5 V TX into a 3.3 V RX pin needs a voltage divider (for example 1 kΩ and 2 kΩ) or a level shifter; a 3.3 V TX into a 5 V Arduino RX usually works directly. RS-232 (old PC serial ports, some industrial gear) uses about ±12 V with inverted logic and will destroy a microcontroller pin; use a MAX3232 converter. RS-485 sends the signal differentially over a twisted pair for distances up to about a kilometre and multiple devices; use a MAX485-type module and Modbus for industrial sensors.

05

Debugging serial links

  • ✓Nothing at all: TX and RX not crossed, no common ground, or the module is not powered.
  • ✓Garbage characters: baud rate mismatch, or a wrong line ending setting for AT commands.
  • ✓Works on USB power only: the module draws more current than the supply can give (common with GSM modules).
  • ✓Upload fails on Uno: a module is connected to D0/D1; disconnect it while uploading.
  • ✓A USB to TTL adapter and a terminal program let you talk to a module directly from a computer.
06

Try it: Voltage divider calculator

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

07

Common mistakes to avoid

  • !Connecting TX to TX.
  • !Forgetting the common ground.
  • !Feeding 5 V TX into a 3.3 V RX without a divider.
  • !Connecting RS-232 levels straight to a microcontroller.
  • !Running SoftwareSerial at 115200 baud and blaming the module.
08

Frequently asked questions

What does UART stand for?

Universal Asynchronous Receiver-Transmitter: hardware that sends and receives serial data without a shared clock line.

How do I connect two devices by UART?

TX of one to RX of the other, RX to TX, and ground to ground. Both must use the same baud rate and compatible voltage levels.

What baud rate should I use?

Whatever the device expects: 9600 is the default for many modules (GPS, HC-05, SIM800L); 115200 is common for debugging.

What is the difference between UART and USB serial?

UART is the simple TX/RX signal; USB serial is a converter chip or built-in USB that makes a UART appear as a COM port on a computer.

Can I use more than one serial device on an Arduino Uno?

Yes, with SoftwareSerial, but only one software port can listen at a time. For several devices, use a Mega, ESP32 or Pico.

Parts for this guide

  • XBee USB Adapter (CP2102) for ZigBee Modules
    ₹471View
  • Waveshare USB to UART Debugger Module for Raspberry Pi 5
    ₹439View
  • 4-Channel Logic Level Converter (BSS138)
    ₹20View
  • Handheld Oscilloscope Multimeter
    ₹6,639View
Shop Programmers & AdaptersShop Interface Modules

Calculators

Voltage divider calculator

Terms in this guide

UARTUniversal asynchronous receiver-transmitter: two-wire serial (TX and RX) used by GPS, Bluetooth modules and debug output.Baud rateThe speed of a serial link in bits per second. Both ends must use the same value; 9600 and 115200 are the usual defaults.Logic levelThe voltage that represents a digital high: 5 V on classic Arduinos, 3.3 V on ESP32, Pico and Raspberry Pi.Voltage dividerTwo resistors in series that output a fixed fraction of the input voltage.InterruptA hardware signal that makes the microcontroller pause its program and run a short function immediately, for example when a button pin changes.

Projects that use it

Put this into practice: 8 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hoursGPS speedometer and clockView projectIntermediate · 2–3 hoursGPS route loggerView projectIntermediate · 2 hoursGPS geofence alarm for vehicles and cattleView project
Browse all 8 projects

Keep learning

Component guideIntermediateUSB to TTL Serial AdaptersA USB to TTL adapter turns a computer USB port into a 3.3 V or 5 V serial port, so you can program boards without USB (Pro Mini, ESP-01, ESP32-CAM) or read a debug console.4 min read · Boards & MicrocontrollersConcept explainerIntermediateSPI ExplainedSPI (Serial Peripheral Interface) is a fast four-wire bus: SCK carries the clock, MOSI carries data from the controller, MISO carries data back, and a separate chip-select (CS) line per device chooses who is listening.3 min read · Electronics FundamentalsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsHow-toBeginnerHC-05 Bluetooth ModuleThe HC-05 is a Bluetooth Classic module that acts like a wireless serial cable: whatever you send to its TX/RX pins appears on a paired phone or PC, at 9600 baud by default.3 min read · IoT & WirelessHow-toIntermediateNEO-6M GPS ModuleThe NEO-6M is a GPS receiver that outputs latitude, longitude, altitude, speed and time as NMEA text over a 9600 baud serial link.3 min read · IoT & Wireless

Sources

  • Arduino Serial and SoftwareSerial references
  • Espressif ESP32 UART documentation
  • Texas Instruments application notes on RS-232 and RS-485

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

On this page
Short answerHow UART worksSerial ports on common boardsSoftwareSerial and when to avoid itVoltage levels: TTL, RS-232 and RS-485Debugging serial linksTry 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 guide4 items · ₹7,569

XBee USB Adapter (CP2102) for ZigBee Modules · Waveshare USB to UART Debugger Module for Raspberry Pi 5 · 4-Channel Logic Level Converter (BSS138) · Handheld Oscilloscope Multimeter

Run itChange the inputs and watch the output
Serial monitor115200 baud
 

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