SlideShare a Scribd company logo
Make	Your	own	IoT	Device	by	ZigBee
Okis	Chuang
Di
ffi
culty Scale
IEEE 802.15.4 Concept
ZigBee Concept
Arduino/XBee
Our World is Changing
It’s all about Connectivity.
–ZIGBEE ALLIANCE
“ZigBee is the wireless language that everyday devices use to
connect to one another”
ZigBee Characteristics
5
MAC
PHY
ZigBee
Ad-hoc
Networkin
g
IEEE
802.15.4
Low
Power
Low Rate
Security
Why ZigBee has these characteristics?


Why we mentioned IEEE 802.15.4?
IEEE 802.15.4
• Designed for low power, low data rate, low cost networks


• LR-WPAN Low-Rate Wireless Personal Area Network
• Physical layer & Media Access Control layer


• Channel access via CSMA-CA


• Frequency bands


• 2.4 GHz, 915 MHz, 868 MHz
7
So What the things ZigBee have to do with IEEE 802.15.4?
ZigBee on IEEE 802.15.4
9
PHY


868MHz / 915MHz / 2.4GHz
MAC
Network


Star / Mesh / Tree
API
Application
Security


128-bit Encryption
IEEE 802.15.4
ZigBee Alliance
Customized
How they interact with each other in the network?
IEEE 802.15.4 Nodes
11
IEEE 802.15.4


Device Roles
PAN Coordinator (FFD)
Coordinator (FFD)
End Device (RFD or FFD)
FFD: Full Function Device


It can relay messages.


RFD: Reduced Function Device


It can’t relay messages.


It can only talk to FFD
ZigBee Nodes
12
ZigBee


Device Roles
ZigBee Coordinator (FFD)
ZigBee Router (FFD)
ZigBee End Device (RFD)
ZC
ZR
ZD
What’s the network topology looks like?
ZigBee Networks
14
ZC
ZR
ZR
ZR
ZD
ZR
Mesh
Internet
ZD
ZD
Information Flow
ZC
ZR
ZD
ZigBee Coordinator
ZigBee Router
ZigBee End Device
ZigBee Network Topology
15
Star
Mesh
Tree
ZC
ZR
ZD
ZigBee Coordinator
ZigBee Router
ZigBee End Device
What’s the process of forming a network?
Network Activities - Creating a Network
17
ZC
ZR
ZR
ZR
ZD
ZR
ZD
ZD
777
PAN ID 8080
Network Activities - Joining an Existing Network
18
?
Hey, can I join anyone of you?
Nice to meet you, my PAN ID is 700
Active Scan
You are not allowed to join us.
Hey, my PAN ID is 8080, welcome


to join. Single hop broadcast


Active scan:
1. scanning node sends
request to local ZR/ZC


2. responding nodes send
indication about network


Network Activities - Joining a Network
19
?
Sending join request….
Network Activities - Joining a Network
20
ZigBee
ZR-8080-1010 accepted your request. 

You network address: 2021. Now you has joined PAN 8080.
PAN ID 8080
Can we start to make IoT device now?
65%
XBee Basic Concept XBee Buying Guide?
• RF module designed by Digi


• Built based on IEEE 802.15.4/ZigBee


• It’s a ZigBee alike radio frequency module


• Can work with Arduino
What is XBee?
23
X
B
e
e
S
2
XBee RF Modules
24
XBee Chip
Antenna
XBee
Integrated
Wire Antenna
XBee Trace
Antenna
XBee RPSMA
Antenna
XBee u.FL
Antenna
https://www.sparkfun.com/pages/xbee_guide
Series What?
Series
1
X
B
e
e
S
1
I’m also called XBee 802.15.4.


I’m easy to work with, no need to be
con
fi
gured.


I can form a point-to-point
communication.
Oh…By the way,


I don’t speak to Series 2.


Never.


We’re not going to talk.


Nope..STOP thinking about it..!
Series
2
X
B
e
e
S
2
I must be con
fi
gured before using me.


I can run in AT/API mode. But it all depends on
what
fi
rmware installed on.


Not only p2p I can run but mesh network is also
con
fi
gurable. So basically I’m a ZigBee XBee.
Oh…By the way,


I don’t speak to Series 1.


Never.


We’re not going to talk.


Nope..I don’t even know him..!
XBee Operating Modes
28
xbee --mode AT
XBee:~$
It’s Application Transparent.
* In AT command mode, everything got in Rx of
XBee will be sent out via antenna.
* The incoming data from antenna will go to Tx
xbee --mode API
XBee:~$
It’s Application Programming Interface
This requires that communication with the module
be done through a structured interface; in other
words, data is communicated in API frames.
XBee API Frames
29
0x7E LSB
MSB API-speci
fi
c Structure 1 Byte
Start Delimiter


Byte 1
Length


Bytes 2~3
Frame Data


Bytes 4~n
Checksum


Bytes n+1
Let us start making a SIMPLE-ZigBee-like-IoT-device
Smart Home Thermostat
My Way to be a MAKER
Cost me almost $5000 TWD so far…
31
DIY Smart Home Thermostat
32
Coordinator Router
Analog
* Every 10mv = 1 degree C
IoTXBeeGateway IoTXBeeSensor
IoT Server
Mobile device
HTTP /POST
X
B
e
e
S
2
X
B
e
e
S
2
Coordinator Router
XBee Con
fi
gurations of thermostat
33
Set to API mode Set to AT mode
PAN ID: 777


PAN ID: 777


JV=1


D3=2


IR=1388
README.md
1. Using X-CTU software to set up XBee


• con
fi
gure coordinator and router with same PAN ID


• Set coordinator as API mode, router as AT mode


• Set Channel Veri
fi
cation to 1 [Enabled] for router


• Set D3 in I/O setting as ADC for analog input for router


• Set I/O sampling Rate as 1388 in hex (5000ms) in I/O sampling setting for router


2. Writing Arduino code and upload to coordinator and router. github


3. Following my Wiring layout and put things together


4. Connect to internet for your Ethernet shield


5. node server.js


6. Open DHT data monitoring page
34
Things are worth to be mentioned…
Similar wireless standard
Can I hack ZigBee product like Philips Hue bulb?
What’s going on if put it under diamond?
Basic Series 2 XBee Chat
X
B
e
e
X
B
e
e
Let’s talk!
X
B
e
e
S
2
X
B
e
e
S
2
Coordinator Router
Basic Series 2 XBee Chat
38
Set to AT mode Set to AT mode
Q & A ?
References
• http://community.silabs.com/t5/Lectures/ZigBee-networking-concepts/m-p/142185


• https://www.sparkfun.com/datasheets/Wireless/Zigbee/XBee-Manual.pdf


• http://www.science.smith.edu/~jcardell/Courses/EGR328/Readings/XBeeCookbook.pdf


• http://ftp1.digi.com/support/documentation/html/90001399/90001399_A/Files/XBee-
concepts.html#_Toc384719512


• http://fenyo.net/newweb/xbee-and-hue-2.html


• http://www.slideshare.net/simenli/zigbee-zig-bee-architecture?qid=5b1d781c-899e-4e0b-8be5-
ec2cb31ce553&v=qf1&b=&from_search=1


• https://en.wikipedia.org/wiki/IEEE_802.15.4


• https://en.wikipedia.org/wiki/ZigBee
40
41
XBee Series 1 XBee Series 2
Indoor/Urban range up to 100 ft. (30m) up to 133 ft. (40m)
Outdoor RF line-of-sight range up to 300 ft. (100m) up to 400 ft. (120m)
Transmit Power Output 1 mW (0dbm) 2 mW (+3dbm)
RF Data Rate 250 Kbps 250 Kbps
Receiver Sensitivity -92dbm (1% PER) -98dbm (1% PER)
Supply Voltage 2.8 - 3.4 V 2.8 - 3.6 V
Transmit Current (typical) 45 mA (@ 3.3 V) 40 mA (@ 3.3 V)
Idle/Receive Current (typical) 50 mA (@ 3.3 V) 40 mA (@ 3.3 V)
Power-down Current 10 uA 1 uA
Frequency ISM 2.4 GHz ISM 2.4 GHz
Dimensions 0.0960" x 1.087" 0.0960" x 1.087"
Operating Temperature -40 to 85 C -40 to 85 C
Antenna Options PCB, Integrated Whip, U.FL, RPSMA PCB, Integrated Whip, U.FL, RPSMA
Network Topologies Point to point, Star, Mesh (with DigiMesh firmware) Point to point, Star, Mesh
Number of Channels 16 Direct Sequence Channels 16 Direct Sequence Channels
Filtration Options PAN ID, Channel & Source/Destination PAN ID, Channel & Source/Destination
42

More Related Content

PPT
PPT
Zig bee
PPTX
Zigbee ppt
PPTX
Zigbee network
PPTX
Zigbee ppt
PPT
zigbee
PPT
Overview zigbee-2012-03-26
Zig bee
Zigbee ppt
Zigbee network
Zigbee ppt
zigbee
Overview zigbee-2012-03-26

What's hot (20)

PDF
Connected home - market evolution & protocol wars
PPT
Zig Bee
PPTX
Introduction to Ti wireless solution: ZigBee
PPTX
COMPARISON OF SHORT RANGE WIRELESS NETWORKS (PAN’ s)
PPTX
Zigbee with home automation
PPT
zigbee technology
PPTX
Tech sem on zig 1
PPT
Zigbee intro
PPTX
zigbee communication
PPTX
Introduction to zigbee
DOC
Bluetooth Vs Zigbee
PPTX
Zig bee
PPTX
Zigbee technology ppt edited
PPTX
Voice over zigbee networks with environmental monitoring
PPTX
The Differences Between Bluetooth, ZigBee and WiFi
PPTX
Wireless standards
PPTX
Voice communication using zigbee
PPTX
Embedded systems projects using zigbee and micro controllers
Connected home - market evolution & protocol wars
Zig Bee
Introduction to Ti wireless solution: ZigBee
COMPARISON OF SHORT RANGE WIRELESS NETWORKS (PAN’ s)
Zigbee with home automation
zigbee technology
Tech sem on zig 1
Zigbee intro
zigbee communication
Introduction to zigbee
Bluetooth Vs Zigbee
Zig bee
Zigbee technology ppt edited
Voice over zigbee networks with environmental monitoring
The Differences Between Bluetooth, ZigBee and WiFi
Wireless standards
Voice communication using zigbee
Embedded systems projects using zigbee and micro controllers
Ad

Similar to Make Your Own IoT Device by ZigBee (20)

PPT
zigbee networks using xbee modules zigbee networks using xbee modules
PDF
ZigBee module
PPTX
Lecture 7 - Connectivity Technologies – Part I - IOT.pptx
PPTX
Zigbee technology [autosaved]
PPTX
Zigbee
PPTX
Zigbee- The Future of Data Communications
PPTX
ZigBee technology.pptx
PDF
A SURVEY OF THE S TATE OF THE A RT IN Z IG B EE
PPTX
Communication Technologies in IOT.pptx
PPT
Zigbee technology2
PPTX
Dccn ppt
PPTX
WPAN According To ZIGBEE
PPTX
Dccn ppt
PPTX
ZIGBEE.pptx
PDF
ZigBee Technology PPT 2.pdf
PPTX
Zigbee technology for cs students and engineering
PPTX
IoT Control Units and Communication Models
PPTX
PPTX
ZIGBEE. a wireless communication device .pptx
PPT
053744r00 Zb Mwg 2005 09 11 Zig Bee Alliance Tutorial
zigbee networks using xbee modules zigbee networks using xbee modules
ZigBee module
Lecture 7 - Connectivity Technologies – Part I - IOT.pptx
Zigbee technology [autosaved]
Zigbee
Zigbee- The Future of Data Communications
ZigBee technology.pptx
A SURVEY OF THE S TATE OF THE A RT IN Z IG B EE
Communication Technologies in IOT.pptx
Zigbee technology2
Dccn ppt
WPAN According To ZIGBEE
Dccn ppt
ZIGBEE.pptx
ZigBee Technology PPT 2.pdf
Zigbee technology for cs students and engineering
IoT Control Units and Communication Models
ZIGBEE. a wireless communication device .pptx
053744r00 Zb Mwg 2005 09 11 Zig Bee Alliance Tutorial
Ad

More from Okis Chuang (7)

PPTX
Introduction to HTTP/2
PPTX
Connected vehicle in_serverless_architecture
PPTX
Let's Talk About Serverless - Focusing on AWS Lambda
PPTX
Neural Network Basics
PPTX
Microservice - Data Management
PPTX
Oh K8s Is Swag - Kubernetes Basics
PPTX
Experiences sharing about Lambda, Kinesis, and Postgresql
Introduction to HTTP/2
Connected vehicle in_serverless_architecture
Let's Talk About Serverless - Focusing on AWS Lambda
Neural Network Basics
Microservice - Data Management
Oh K8s Is Swag - Kubernetes Basics
Experiences sharing about Lambda, Kinesis, and Postgresql

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Assigned Numbers - 2025 - Bluetooth® Document
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
A comparative analysis of optical character recognition models for extracting...
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Assigned Numbers - 2025 - Bluetooth® Document
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks

Make Your Own IoT Device by ZigBee

  • 2. Our World is Changing
  • 3. It’s all about Connectivity.
  • 4. –ZIGBEE ALLIANCE “ZigBee is the wireless language that everyday devices use to connect to one another”
  • 6. Why ZigBee has these characteristics? 
 Why we mentioned IEEE 802.15.4?
  • 7. IEEE 802.15.4 • Designed for low power, low data rate, low cost networks • LR-WPAN Low-Rate Wireless Personal Area Network • Physical layer & Media Access Control layer • Channel access via CSMA-CA • Frequency bands • 2.4 GHz, 915 MHz, 868 MHz 7
  • 8. So What the things ZigBee have to do with IEEE 802.15.4?
  • 9. ZigBee on IEEE 802.15.4 9 PHY 868MHz / 915MHz / 2.4GHz MAC Network 
 Star / Mesh / Tree API Application Security 
 128-bit Encryption IEEE 802.15.4 ZigBee Alliance Customized
  • 10. How they interact with each other in the network?
  • 11. IEEE 802.15.4 Nodes 11 IEEE 802.15.4 Device Roles PAN Coordinator (FFD) Coordinator (FFD) End Device (RFD or FFD) FFD: Full Function Device 
 It can relay messages. RFD: Reduced Function Device It can’t relay messages. It can only talk to FFD
  • 12. ZigBee Nodes 12 ZigBee Device Roles ZigBee Coordinator (FFD) ZigBee Router (FFD) ZigBee End Device (RFD) ZC ZR ZD
  • 13. What’s the network topology looks like?
  • 15. ZigBee Network Topology 15 Star Mesh Tree ZC ZR ZD ZigBee Coordinator ZigBee Router ZigBee End Device
  • 16. What’s the process of forming a network?
  • 17. Network Activities - Creating a Network 17 ZC ZR ZR ZR ZD ZR ZD ZD 777 PAN ID 8080
  • 18. Network Activities - Joining an Existing Network 18 ? Hey, can I join anyone of you? Nice to meet you, my PAN ID is 700 Active Scan You are not allowed to join us. Hey, my PAN ID is 8080, welcome to join. Single hop broadcast 
 Active scan: 1. scanning node sends request to local ZR/ZC 2. responding nodes send indication about network 

  • 19. Network Activities - Joining a Network 19 ? Sending join request….
  • 20. Network Activities - Joining a Network 20 ZigBee ZR-8080-1010 accepted your request. 
 You network address: 2021. Now you has joined PAN 8080. PAN ID 8080
  • 21. Can we start to make IoT device now? 65%
  • 22. XBee Basic Concept XBee Buying Guide?
  • 23. • RF module designed by Digi • Built based on IEEE 802.15.4/ZigBee • It’s a ZigBee alike radio frequency module • Can work with Arduino What is XBee? 23 X B e e S 2
  • 24. XBee RF Modules 24 XBee Chip Antenna XBee Integrated Wire Antenna XBee Trace Antenna XBee RPSMA Antenna XBee u.FL Antenna https://www.sparkfun.com/pages/xbee_guide
  • 26. Series 1 X B e e S 1 I’m also called XBee 802.15.4. I’m easy to work with, no need to be con fi gured. I can form a point-to-point communication. Oh…By the way, I don’t speak to Series 2. Never. We’re not going to talk. Nope..STOP thinking about it..!
  • 27. Series 2 X B e e S 2 I must be con fi gured before using me. I can run in AT/API mode. But it all depends on what fi rmware installed on. Not only p2p I can run but mesh network is also con fi gurable. So basically I’m a ZigBee XBee. Oh…By the way, I don’t speak to Series 1. Never. We’re not going to talk. Nope..I don’t even know him..!
  • 28. XBee Operating Modes 28 xbee --mode AT XBee:~$ It’s Application Transparent. * In AT command mode, everything got in Rx of XBee will be sent out via antenna. * The incoming data from antenna will go to Tx xbee --mode API XBee:~$ It’s Application Programming Interface This requires that communication with the module be done through a structured interface; in other words, data is communicated in API frames.
  • 29. XBee API Frames 29 0x7E LSB MSB API-speci fi c Structure 1 Byte Start Delimiter Byte 1 Length Bytes 2~3 Frame Data Bytes 4~n Checksum Bytes n+1
  • 30. Let us start making a SIMPLE-ZigBee-like-IoT-device Smart Home Thermostat
  • 31. My Way to be a MAKER Cost me almost $5000 TWD so far… 31
  • 32. DIY Smart Home Thermostat 32 Coordinator Router Analog * Every 10mv = 1 degree C IoTXBeeGateway IoTXBeeSensor IoT Server Mobile device HTTP /POST
  • 33. X B e e S 2 X B e e S 2 Coordinator Router XBee Con fi gurations of thermostat 33 Set to API mode Set to AT mode PAN ID: 777 PAN ID: 777 JV=1 D3=2 IR=1388
  • 34. README.md 1. Using X-CTU software to set up XBee • con fi gure coordinator and router with same PAN ID • Set coordinator as API mode, router as AT mode • Set Channel Veri fi cation to 1 [Enabled] for router • Set D3 in I/O setting as ADC for analog input for router • Set I/O sampling Rate as 1388 in hex (5000ms) in I/O sampling setting for router 2. Writing Arduino code and upload to coordinator and router. github 3. Following my Wiring layout and put things together 4. Connect to internet for your Ethernet shield 5. node server.js 6. Open DHT data monitoring page 34
  • 35. Things are worth to be mentioned…
  • 36. Similar wireless standard Can I hack ZigBee product like Philips Hue bulb? What’s going on if put it under diamond?
  • 37. Basic Series 2 XBee Chat X B e e X B e e Let’s talk!
  • 38. X B e e S 2 X B e e S 2 Coordinator Router Basic Series 2 XBee Chat 38 Set to AT mode Set to AT mode
  • 39. Q & A ?
  • 40. References • http://community.silabs.com/t5/Lectures/ZigBee-networking-concepts/m-p/142185 • https://www.sparkfun.com/datasheets/Wireless/Zigbee/XBee-Manual.pdf • http://www.science.smith.edu/~jcardell/Courses/EGR328/Readings/XBeeCookbook.pdf • http://ftp1.digi.com/support/documentation/html/90001399/90001399_A/Files/XBee- concepts.html#_Toc384719512 • http://fenyo.net/newweb/xbee-and-hue-2.html • http://www.slideshare.net/simenli/zigbee-zig-bee-architecture?qid=5b1d781c-899e-4e0b-8be5- ec2cb31ce553&v=qf1&b=&from_search=1 • https://en.wikipedia.org/wiki/IEEE_802.15.4 • https://en.wikipedia.org/wiki/ZigBee 40
  • 41. 41 XBee Series 1 XBee Series 2 Indoor/Urban range up to 100 ft. (30m) up to 133 ft. (40m) Outdoor RF line-of-sight range up to 300 ft. (100m) up to 400 ft. (120m) Transmit Power Output 1 mW (0dbm) 2 mW (+3dbm) RF Data Rate 250 Kbps 250 Kbps Receiver Sensitivity -92dbm (1% PER) -98dbm (1% PER) Supply Voltage 2.8 - 3.4 V 2.8 - 3.6 V Transmit Current (typical) 45 mA (@ 3.3 V) 40 mA (@ 3.3 V) Idle/Receive Current (typical) 50 mA (@ 3.3 V) 40 mA (@ 3.3 V) Power-down Current 10 uA 1 uA Frequency ISM 2.4 GHz ISM 2.4 GHz Dimensions 0.0960" x 1.087" 0.0960" x 1.087" Operating Temperature -40 to 85 C -40 to 85 C Antenna Options PCB, Integrated Whip, U.FL, RPSMA PCB, Integrated Whip, U.FL, RPSMA Network Topologies Point to point, Star, Mesh (with DigiMesh firmware) Point to point, Star, Mesh Number of Channels 16 Direct Sequence Channels 16 Direct Sequence Channels Filtration Options PAN ID, Channel & Source/Destination PAN ID, Channel & Source/Destination
  • 42. 42