SlideShare a Scribd company logo
XBee and RFID
XBee in 30 minutes Xbees are small radio modules that communicate with each other over radio using the Zigbee protocol (built on top of the IEEE 802.15.4 standard, if you care). They allow for drop-in, drop-out mesh networking. New devices can be automatically detected, and existing devices can be removed without disrupting the entire system. Each radio can broadcast or can address specific other modules. Today we will set up a very basic XBee network.
What Does an Xbee Network Need? One  coordinator  to manage the overall network. Multiple  endpoints/routers  to receive and pass on information. External sensors or other modules to collect and/or respond to the information that the radios communicated.
What Hardware Do You Have? Arduino XBee Module XBee USB Explorer Arduino Xbee Shield
Loading Firmware You Need: -Xbee Module -Xbee USB Explorer -X-CTU software Digi’s X-CTU software is a program that lets you load firmware onto your XBee module, configure settings, and test the radio’s functionality. It is only available for Windows but can be run in an emulator on an Intel Mac (load Arduino and the  relevant drivers  in Windows ). http://www.digi.com/support/productdetl.jsp?pid=3352&osvid=57&tp=5&s=316
Programming a Router In Windows XP or from inside your emulator: Insert the Xbee module into the USB explorer, connect with the USB cable to your computer Double click on X-CTU, and you will see ==>
Programming a Router There should be a com port  (probably the last) labeled  USB Serial Port . Click on it. Click on  Test / Query .
Programming a Router You should see this ==> Click OK, then click on the  Modem Configuration tab.
Programming a Router You should see something like this ==> You want these settings (highlighted): Modem: XBEE: XB24-B Function Set: ZNET 2.5 ROUTER/END DEVICE AT PAN ID: 234 Node Identifier (enter a name for your radio) Click on  Write
Programming Arduino Remember the button you wired  earlier? Make that circuit again.  In the Arduino IDE, open  “ XBButton.pde” and load it onto your Arduino. You can test that the code is  functioning by starting the serial  monitor in Arduino. Every time you  press the button, the pane should show “Hello world!” (Change the “Hello world!” to say  whatever you want.)
Programming Arduino Unplug your Arduino. Unplug the wire connected to pin 2 from your Arduino. Bend the power and ground wires so they are flat against the Arduino pin sockets. Place the XBee shield on the Arduino. Make sure the jumpers on the shield are on the XBEE (not USB) side. Place the XBee module on the XBee shield. Plug the wire back into pin 2. Connect the Arduino to your computer. Press the button…
What is Happening? The radio is now set up so that: When you send data from the Arduino over the serial port  to your Xbee module The module broadcasts that data over radio to any other radios that are listening When my coordinator receives data  broadcast from any of your radios The coordinator echoes that data  over the serial port to my computer MUCH MORE is possible, but we don’t have time.
RFID in 15 minutes RFID (radiofrequency identification) is a way of storing and communicating small amounts of data. RFID  tags  store data (usually a serial number and a few bytes of changeable information), and RFID  readers  can read, decode, and sometimes change that data. RFID has historically been used in industrial logistics and tracking, but cheaper and more accessible technologies have recently opened it up for hacking and other creative uses. Today we will set up an RFID reader to read the serial numbers of tags.
What Hardware Do You Have? RFID reader RFID antenna Arduino
Connecting the Reader 4 5 5 +5V Ground
4 5 +5V Ground
Upload your Code Load “RFIDReader.pde” onto your Arduino board. Activate the serial debugger pane in Arduino. Touch an RFID card to the antenna.
What is Happening? The RFID reader communicates with Arduino using a  communication protocol called I2C, which Arduino code manages  using the Wiring library, and which uses analog pins 4 and 5. This is one standard way that microcontrollers communicate with more complicated external devices. This Arduino code continually asks the RFID reader to look for  the serial number of any tags near the reader.  The RFID reader does the heavy lifting and returns a number to the Arduino--the serial number if it sees a tag, and a 2 if no tags are present. The Arduino then sends the tag’s serial number over the serial port,  which you are monitoring on your computer.
The Xbee communicates with Arduino over the serial port. The RFID reader communicates with Arduino using I2C and analog pins 4 and 5. Can we combine these? 15 Minutes Left
Putting it All Together 4 5 5 +5V Ground
Xbee (beware of Series 1 vs Series 2 documentation) http://www.arduino.cc/playground/Main/InterfacingWithHardware http://www.humboldt.edu/~cm19/XBee%20setup.pdf http://hcgilje.wordpress.com/resources/xbee_arduino_code/ http://www.faludi.com/projects/zigbee/ RFID http://www.tinker.it/en/Teaching/RFID http://www.tigoe.net/pcomp/code/?s=RFID&searchsubmit=Find Some Resources

More Related Content

PPT
X-CTU Tutorial
ODP
Internet-of-Things with (Arduino+XBee)
PDF
Boards for the IoT-Prototyping
PDF
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
PDF
Basics of Connectors
PPTX
Electronics Microcontrollers for IoT applications
PDF
Android + arduino = love @ Droidcon Bucharest 2012
PDF
Road to Republic of IoT - ESP32 Programming and LoRa
X-CTU Tutorial
Internet-of-Things with (Arduino+XBee)
Boards for the IoT-Prototyping
Global Azure Bootcamp 2019 - Bandung - Microsoft Azure as Complete Solutions ...
Basics of Connectors
Electronics Microcontrollers for IoT applications
Android + arduino = love @ Droidcon Bucharest 2012
Road to Republic of IoT - ESP32 Programming and LoRa

What's hot (17)

PDF
Esp8266 basics
PPTX
Introduction to Internet of Things Hardware
PPTX
Ports and Connectors
PPTX
Arduino Microcontroller
PPTX
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
PPTX
Arduino in TinyML with Edge Impulse
PDF
Chapter 7
PPTX
Class presentation (By Rahul Srivastava)
PPTX
Domotic dojo!
PDF
Esp32 cam arduino-123
PPTX
Arduino camera interfacing OV7670
DOCX
atml-part
PPTX
IoT Devices, Which One Is Right for You to Learn?
PPTX
IoT Devices, Which One is Right for You to Learn
PPTX
Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)
PDF
IoTino - Arduino for Internet of Things
PDF
Solving connectivity for the Internet of Things - Telenor Group Technology Fair
Esp8266 basics
Introduction to Internet of Things Hardware
Ports and Connectors
Arduino Microcontroller
Getting Started with the NodeMCU- NodeMCU Programming (By Akshet Patel)
Arduino in TinyML with Edge Impulse
Chapter 7
Class presentation (By Rahul Srivastava)
Domotic dojo!
Esp32 cam arduino-123
Arduino camera interfacing OV7670
atml-part
IoT Devices, Which One Is Right for You to Learn?
IoT Devices, Which One is Right for You to Learn
Getting Started with the NodeMCU- Access Point and Station (By Akshet Patel)
IoTino - Arduino for Internet of Things
Solving connectivity for the Internet of Things - Telenor Group Technology Fair
Ad

Viewers also liked (20)

PDF
Xbee manual
PDF
ZigBee module
PPTX
Navidad en Grecia 2017 - 18
DOCX
Dan OPRESCU
PDF
Alerts and workflow for sage partner
PDF
195071
PDF
Agt solutions solution_video_surveillance-341
PDF
030 Freiwilligendienste_wem sie nützen und wie der Einstie..pdf
PDF
Ra feb 2010 mr
DOC
CGT Domingo dóna suport a CGT TSC Garraf-Alt Penedès per la vaga indefinida d...
PDF
Guia docente dirección comercial ii ade.15.16
DOC
Mba formulacion, implementacion y evaluacion de la politica pública, de r...
DOCX
Getting Started Appendices may 14_2010
PPTX
Longlife learning - Teaching and Learning from an international perspective
DOC
Más referencias para disfrutar ya del verano cultural de sevilla
PDF
Reunión Semestral de Evaluación de Avances. Comunidad de Práctica Feria de Datos
PPT
Finance Transformation
DOC
Proyecto tic digaroba
PDF
Paliperidone 144598-75-4-api
PDF
Factor RSE en la búsqueda de trabajo
Xbee manual
ZigBee module
Navidad en Grecia 2017 - 18
Dan OPRESCU
Alerts and workflow for sage partner
195071
Agt solutions solution_video_surveillance-341
030 Freiwilligendienste_wem sie nützen und wie der Einstie..pdf
Ra feb 2010 mr
CGT Domingo dóna suport a CGT TSC Garraf-Alt Penedès per la vaga indefinida d...
Guia docente dirección comercial ii ade.15.16
Mba formulacion, implementacion y evaluacion de la politica pública, de r...
Getting Started Appendices may 14_2010
Longlife learning - Teaching and Learning from an international perspective
Más referencias para disfrutar ya del verano cultural de sevilla
Reunión Semestral de Evaluación de Avances. Comunidad de Práctica Feria de Datos
Finance Transformation
Proyecto tic digaroba
Paliperidone 144598-75-4-api
Factor RSE en la búsqueda de trabajo
Ad

Similar to XBee and RFID (20)

DOC
Project
PDF
Connecting Hardware to Flex (360MAX)
PPT
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
PPT
zigbee networks using xbee modules zigbee networks using xbee modules
DOCX
Rf module interfacing without microcontrollers
PPT
IoT with Arduino
PDF
Eb051 30-1
PDF
Automatic Enable and Disable Speed Breaker
PDF
A Practical Guide to Connecting Hardware to the Web
PDF
Harini_Mobile_Robotics
PDF
Make Your Own IoT Device by ZigBee
PPTX
Controlling robots using javascript
PDF
Edge Of The Web
PPTX
Advanced Arduino Programming for Communications.pptx
PDF
FinalThesisdraft
PDF
NodeMCU || Controlling and observing a robotic car with a smartphone through...
PDF
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
PPTX
Basics of open source embedded development board (
PPTX
Basics of open source embedded development board (
PPTX
Zigbee module interface with ARM 7
Project
Connecting Hardware to Flex (360MAX)
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
zigbee networks using xbee modules zigbee networks using xbee modules
Rf module interfacing without microcontrollers
IoT with Arduino
Eb051 30-1
Automatic Enable and Disable Speed Breaker
A Practical Guide to Connecting Hardware to the Web
Harini_Mobile_Robotics
Make Your Own IoT Device by ZigBee
Controlling robots using javascript
Edge Of The Web
Advanced Arduino Programming for Communications.pptx
FinalThesisdraft
NodeMCU || Controlling and observing a robotic car with a smartphone through...
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
Basics of open source embedded development board (
Basics of open source embedded development board (
Zigbee module interface with ARM 7

More from Tinker (7)

PPT
Programming for Artists and Designers: Week 3
PPT
Programming for Artists and Designers: Week 2
PDF
Programming for Artists and Designers: Week1
PPT
Milan Mobile Games
PPT
Arduino and Open Hardware
PPT
Playful
PDF
Ethernet Shield
Programming for Artists and Designers: Week 3
Programming for Artists and Designers: Week 2
Programming for Artists and Designers: Week1
Milan Mobile Games
Arduino and Open Hardware
Playful
Ethernet Shield

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
cuic standard and advanced reporting.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
cuic standard and advanced reporting.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Encapsulation_ Review paper, used for researhc scholars
Advanced methodologies resolving dimensionality complications for autism neur...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

XBee and RFID

  • 2. XBee in 30 minutes Xbees are small radio modules that communicate with each other over radio using the Zigbee protocol (built on top of the IEEE 802.15.4 standard, if you care). They allow for drop-in, drop-out mesh networking. New devices can be automatically detected, and existing devices can be removed without disrupting the entire system. Each radio can broadcast or can address specific other modules. Today we will set up a very basic XBee network.
  • 3. What Does an Xbee Network Need? One coordinator to manage the overall network. Multiple endpoints/routers to receive and pass on information. External sensors or other modules to collect and/or respond to the information that the radios communicated.
  • 4. What Hardware Do You Have? Arduino XBee Module XBee USB Explorer Arduino Xbee Shield
  • 5. Loading Firmware You Need: -Xbee Module -Xbee USB Explorer -X-CTU software Digi’s X-CTU software is a program that lets you load firmware onto your XBee module, configure settings, and test the radio’s functionality. It is only available for Windows but can be run in an emulator on an Intel Mac (load Arduino and the relevant drivers in Windows ). http://www.digi.com/support/productdetl.jsp?pid=3352&osvid=57&tp=5&s=316
  • 6. Programming a Router In Windows XP or from inside your emulator: Insert the Xbee module into the USB explorer, connect with the USB cable to your computer Double click on X-CTU, and you will see ==>
  • 7. Programming a Router There should be a com port (probably the last) labeled USB Serial Port . Click on it. Click on Test / Query .
  • 8. Programming a Router You should see this ==> Click OK, then click on the Modem Configuration tab.
  • 9. Programming a Router You should see something like this ==> You want these settings (highlighted): Modem: XBEE: XB24-B Function Set: ZNET 2.5 ROUTER/END DEVICE AT PAN ID: 234 Node Identifier (enter a name for your radio) Click on Write
  • 10. Programming Arduino Remember the button you wired earlier? Make that circuit again. In the Arduino IDE, open “ XBButton.pde” and load it onto your Arduino. You can test that the code is functioning by starting the serial monitor in Arduino. Every time you press the button, the pane should show “Hello world!” (Change the “Hello world!” to say whatever you want.)
  • 11. Programming Arduino Unplug your Arduino. Unplug the wire connected to pin 2 from your Arduino. Bend the power and ground wires so they are flat against the Arduino pin sockets. Place the XBee shield on the Arduino. Make sure the jumpers on the shield are on the XBEE (not USB) side. Place the XBee module on the XBee shield. Plug the wire back into pin 2. Connect the Arduino to your computer. Press the button…
  • 12. What is Happening? The radio is now set up so that: When you send data from the Arduino over the serial port to your Xbee module The module broadcasts that data over radio to any other radios that are listening When my coordinator receives data broadcast from any of your radios The coordinator echoes that data over the serial port to my computer MUCH MORE is possible, but we don’t have time.
  • 13. RFID in 15 minutes RFID (radiofrequency identification) is a way of storing and communicating small amounts of data. RFID tags store data (usually a serial number and a few bytes of changeable information), and RFID readers can read, decode, and sometimes change that data. RFID has historically been used in industrial logistics and tracking, but cheaper and more accessible technologies have recently opened it up for hacking and other creative uses. Today we will set up an RFID reader to read the serial numbers of tags.
  • 14. What Hardware Do You Have? RFID reader RFID antenna Arduino
  • 15. Connecting the Reader 4 5 5 +5V Ground
  • 16. 4 5 +5V Ground
  • 17. Upload your Code Load “RFIDReader.pde” onto your Arduino board. Activate the serial debugger pane in Arduino. Touch an RFID card to the antenna.
  • 18. What is Happening? The RFID reader communicates with Arduino using a communication protocol called I2C, which Arduino code manages using the Wiring library, and which uses analog pins 4 and 5. This is one standard way that microcontrollers communicate with more complicated external devices. This Arduino code continually asks the RFID reader to look for the serial number of any tags near the reader. The RFID reader does the heavy lifting and returns a number to the Arduino--the serial number if it sees a tag, and a 2 if no tags are present. The Arduino then sends the tag’s serial number over the serial port, which you are monitoring on your computer.
  • 19. The Xbee communicates with Arduino over the serial port. The RFID reader communicates with Arduino using I2C and analog pins 4 and 5. Can we combine these? 15 Minutes Left
  • 20. Putting it All Together 4 5 5 +5V Ground
  • 21. Xbee (beware of Series 1 vs Series 2 documentation) http://www.arduino.cc/playground/Main/InterfacingWithHardware http://www.humboldt.edu/~cm19/XBee%20setup.pdf http://hcgilje.wordpress.com/resources/xbee_arduino_code/ http://www.faludi.com/projects/zigbee/ RFID http://www.tinker.it/en/Teaching/RFID http://www.tigoe.net/pcomp/code/?s=RFID&searchsubmit=Find Some Resources