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
PPT
XBee and RFID
PPTX
Attendance system using MYSQL with Raspberry pi and RFID-RC522
PPTX
Attendance System using ESP8266(Wi-Fi) with MySQL
PPTX
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
PPTX
Internet of Things - An Introdution
PPTX
Introduction to arduino
PPT
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM
X-CTU Tutorial
XBee and RFID
Attendance system using MYSQL with Raspberry pi and RFID-RC522
Attendance System using ESP8266(Wi-Fi) with MySQL
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Internet of Things - An Introdution
Introduction to arduino
Arduino and Internet of Thinks: ShareIT TM: march 2010, TM

What's hot (20)

PPTX
Arduino uno
PPTX
PPT ON Arduino
PDF
Android + arduino = love @ Droidcon Bucharest 2012
PPT
Arduino presentation by_warishusain
PPT
IoT with Arduino
PPTX
Basics of arduino uno
PPTX
Introduction to arduino!
PPTX
Microcontroller arduino uno board
PDF
Introducing... Arduino
PPTX
Basics of open source embedded development board (
PDF
Report on arduino
PPT
Arduino Introduction by coopermaa
PPT
arduino-ppt
PPS
Arduino Uno Pin Description
PPTX
What are the different types of arduino boards
PPTX
Lcd with arduino uno
PPTX
Different Arduino Boards
PPTX
Introduction to Arduino
PPT
Arduino technical session 1
PPTX
1.Arduino Ecosystem.pptx
Arduino uno
PPT ON Arduino
Android + arduino = love @ Droidcon Bucharest 2012
Arduino presentation by_warishusain
IoT with Arduino
Basics of arduino uno
Introduction to arduino!
Microcontroller arduino uno board
Introducing... Arduino
Basics of open source embedded development board (
Report on arduino
Arduino Introduction by coopermaa
arduino-ppt
Arduino Uno Pin Description
What are the different types of arduino boards
Lcd with arduino uno
Different Arduino Boards
Introduction to Arduino
Arduino technical session 1
1.Arduino Ecosystem.pptx
Ad

Similar to XBee and RFID (20)

PDF
ESP32 WiFi & Bluetooth Module - Getting Started Guide
PDF
Mypptinslideshare 180508104046 (1)
PPTX
RFID based smart shopping cart and billing system
PPTX
Basics of open source embedded development board (
PPTX
Arduino Interface with MySQL for Storing RFID Access Details
PDF
Digital home automation with arduino bluetooth
PPTX
Taller IoT en la Actualidad
PPTX
Wi-Fi Esp8266 nodemcu
PDF
Advanced view arduino projects list use arduino for projects 2
PPT
PDF
What is arduino
PDF
Android project
PDF
Advanced View Arduino Projects List - Use Arduino for Projects (4).pdf
PDF
Internet of things aktu lab file
ODP
Multipilot pres-ufficiale alpago 2011
DOCX
PPTX
Tech Talk IOT
PPTX
ESP8266 Wifi Nodemcu
PDF
Smart Home Automation using Wi-Fi
ODP
Multipilot pres-ufficiale last 2
ESP32 WiFi & Bluetooth Module - Getting Started Guide
Mypptinslideshare 180508104046 (1)
RFID based smart shopping cart and billing system
Basics of open source embedded development board (
Arduino Interface with MySQL for Storing RFID Access Details
Digital home automation with arduino bluetooth
Taller IoT en la Actualidad
Wi-Fi Esp8266 nodemcu
Advanced view arduino projects list use arduino for projects 2
What is arduino
Android project
Advanced View Arduino Projects List - Use Arduino for Projects (4).pdf
Internet of things aktu lab file
Multipilot pres-ufficiale alpago 2011
Tech Talk IOT
ESP8266 Wifi Nodemcu
Smart Home Automation using Wi-Fi
Multipilot pres-ufficiale last 2
Ad

More from Tinker London (9)

PPT
Homesense @ La Cantine
PDF
Arduino Power
PPT
Programming for Artists and Designers: Week 3
PPT
Programming for Artists and Designers: Week 2
PDF
Programming for Artists and Designers: Week 1
PPT
Playful
PPT
Mobile Games and Hardware Hacking
PPT
Arduino and Open Hardware
PDF
Ethernet Shield
Homesense @ La Cantine
Arduino Power
Programming for Artists and Designers: Week 3
Programming for Artists and Designers: Week 2
Programming for Artists and Designers: Week 1
Playful
Mobile Games and Hardware Hacking
Arduino and Open Hardware
Ethernet Shield

Recently uploaded (20)

PDF
Mushroom cultivation and it's methods.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Hybrid model detection and classification of lung cancer
PPTX
Tartificialntelligence_presentation.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Mushroom cultivation and it's methods.pdf
Getting Started with Data Integration: FME Form 101
Heart disease approach using modified random forest and particle swarm optimi...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
NewMind AI Weekly Chronicles - August'25-Week II
Group 1 Presentation -Planning and Decision Making .pptx
Programs and apps: productivity, graphics, security and other tools
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Encapsulation_ Review paper, used for researhc scholars
Zenith AI: Advanced Artificial Intelligence
Chapter 5: Probability Theory and Statistics
OMC Textile Division Presentation 2021.pptx
Enhancing emotion recognition model for a student engagement use case through...
Hybrid model detection and classification of lung cancer
Tartificialntelligence_presentation.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
cloud_computing_Infrastucture_as_cloud_p
1 - Historical Antecedents, Social Consideration.pdf
Digital-Transformation-Roadmap-for-Companies.pptx

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