Component guide · Intermediate · 3 min read
Zigbee and XBee Modules

Mesh Networks Explained
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
Zigbee is a low-power 2.4 GHz mesh network used by smart-home sensors and industrial devices. XBee is Digi's family of ready-made radio modules, including Zigbee versions, with a simple UART interface. In a Zigbee network one coordinator forms the network, mains-powered routers relay messages, and battery end devices sleep most of the time. Configure XBee modules with Digi's XCTU software before connecting them to a microcontroller.
Key specs at a glance
- Frequency
- 2.4 GHz (IEEE 802.15.4)
- Data rate
- 250 kbit/s over the air
- Range
- Tens of metres indoors per hop; mesh extends coverage
- Roles
- Coordinator, router, end device
- XBee interface
- UART at 3.3 V, 2 mm pin spacing (needs an adapter for breadboards)
- Modes
- Transparent (serial cable replacement) or API (framed packets)
How a Zigbee mesh works
Each network has one coordinator that starts it and holds security keys. Routers, usually mains-powered devices, pass messages along, so a signal can hop around walls. End devices such as battery door sensors talk only to a parent router and sleep most of the time, which is how they last for years on a coin cell.
Smart-home hubs such as Home Assistant (with a Zigbee USB stick) act as coordinators for commercial Zigbee sensors and bulbs, so you can mix your own XBee or CC2530 devices with off-the-shelf ones if you follow the Zigbee profiles.
Setting up XBee modules
- 1Plug each module into a USB adapter and open Digi's free XCTU software.
- 2Load the right firmware: one module as coordinator, others as routers or end devices.
- 3Set the same PAN ID on all modules and, for transparent mode, set each module's destination address.
- 4On the microcontroller, connect XBee DOUT to RX and DIN to TX at 3.3 V logic, with a breakout or shield that has a regulator and level shifting for 5 V boards.
In transparent mode, anything sent into one XBee comes out of the other like a serial cable. API mode adds framing with addresses and checksums, which is better for networks with many nodes; use a library such as XBee-Arduino.
Zigbee vs other radios
- Wi-Fi gives internet access but draws much more power.
- ESP-NOW is simpler and free between ESP boards, but is not a standard mesh.
- LoRa reaches kilometres at very low data rates.
- nRF24L01 is cheap and fast but needs your own networking code.
- Zigbee suits many low-power sensors in one building that should work with smart-home hubs. See choose a wireless module.
Try it: Frequency wavelength calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Two coordinators or mismatched PAN IDs.
- Using 5 V logic on a 3.3 V XBee.
- Plugging XBee modules straight into a breadboard (2 mm pitch).
- Making battery devices routers, so they never sleep.
- Mixing XBee 802.15.4 and Zigbee firmware in one network.
Frequently asked questions
Is XBee the same as Zigbee?
No. XBee is a module brand; some XBee models run Zigbee, others run 802.15.4, DigiMesh or other protocols.
What range does Zigbee have?
Tens of metres indoors per hop, extended by routers relaying messages.
Can I connect XBee to Arduino Uno?
Yes, using an XBee shield or adapter with a regulator and level shifter.
Do I need XCTU?
It is the easiest way to set firmware, roles, PAN IDs and addresses.
Can Home Assistant talk to my Zigbee project?
Yes, through a Zigbee coordinator stick, if your device follows standard Zigbee clusters.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- Connectivity Standards Alliance Zigbee specification overview
- Digi XBee 3 Zigbee user guide
- TI CC2530 datasheet
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




