This Project will use the same code as RFIDuino_helloworld. This time however, we will be sending the data over the computer wirelessly using 2 XBees and a UartSBee.
If you haven't already, make sure to go through the RFIDuino Getting Started Guide to get your libraries and hardware setup.
- RFIDuino Shield and Antenna
- Geekduino or other Arduino compatible microcontroller
- 2x XBee 1mw Communication modules
- UartSbee USB to XBee interface
- USB A Male to Mini B
- 12v Power Supply
- Micro USB cable for your Geekduino or cable for your Arduino compatible board
- A compatible RFID Tag -all tags on this page are compatible with the RFIDuino
- Load the RFIDuino_helloworld3 sketch onto your arduino. You can find this sketch under
File>Examples>RFIDuino>RFIDuino_helloworld3NOTE:You cannot program the Arduino if the XBee is connected. Remove the Xbee or shield when you are programming your Arduino.
- Connect your components as shown here.(see here for 1.1 wiring) R
- Connect the UartSBee to your computer via USB. This device will show up as a serial port in the Arduino IDE. Pick that serial port and open a serial terminal.
- Attach your RFIDuino to an external power supply like a battery or power brick.
- Swipe the 'key' tag across the Rfiduino antenna. The green light will light up and your buzzer will sound. The RFIDuino will also transmit the ID to your computer via the XBee.
- Check your serial terminal on your computer. You should will see the tag IDs just as if you had your RFIDuino plugged into your computer.
Normally the Arduino uses pins 0(RX) and 1(TX) to communicate with the computer. With our new hardware setup, the XBee will take those pins and use them to transmit wirelessly. The second xbee will pick up that communication and relay it to the computer via the Xbee.
This tutorial shows the basics of sending data via xbee. However, there are better ways to format and send data over the XBee chanlle. You can see this page for more information.
RFIDuino Functions used in this example
Next: Library Documentation
PC Control These demos and projects allow the robot to be controlled via a computer.
ArbotiX Commander Control - These demos and projects control the Robot using the ArbotiX Commander, the handheld Arduino based remote control.
Direct Control - These demos and projects control the Robot directly from sensors connected directly to the Robot's control board.
Pose Control - These demos and projects allow you to create and playback a sequence of poses.
Serial Control - These demos and projects control the robot using a serial packet protocol.
Standalone - These demos and projects are deisgned to let your robot function without a computer or additional microcontroller.
Wireless Control - These demos and projects allow you to control the robot wirelessly - usually by replacing the Serial Connection with XBee modules.
Reference - These articles have technical details regarding the control and operation of the robot.
More info here