Presented By: Kris Magri Stamps In Class Instructor


Published on

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • the EM Microelectronics-Marin SA EM4100-family of passive read-only transponder tags .
  • Depending on which kit you have, you’ll either have a BASIC Stamp 2 and Board of Education or a BASIC Stamp 2 HomeWork board with a built-in BASIC Stamp 2. For the next activity, you’ll also need a battery, a strip of four rubber feet, and a serial cable.
  • Introduce Frequency and Sound chapter as having a simple circuit, but the most complex of the programming techniques.
  • Presented By: Kris Magri Stamps In Class Instructor

    1. 1. Presented By: Kris Magri Stamps In Class Instructor [email_address] 599 Menlo Drive Suite 100 Rocklin, CA 95765 (916) 624 - 8333 Build and Program Your Own RFID Reader
    2. 4. Radio Frequency Identification (RFID) <ul><li>Generic term for non-contacting technologies that use radio waves to automatically identify people or objects * </li></ul><ul><li>An RFID system consists of a reader and one or more tags </li></ul><ul><li>There really is no such thing as a &quot;typical&quot; RFID tag </li></ul><ul><li>Different frequencies, types, styles… </li></ul>* Material in this section is based on information provided by the RFID Journal (
    3. 5. RFID Applications <ul><li>Access Control - Card access for doors </li></ul><ul><li>Payment Systems - Toll-bridge passes such as EZ-Pass and FasTrak </li></ul><ul><li>Asset tracking - Tagging pallets or products in a warehouses and stores </li></ul><ul><li>Package tracking – DHL and UPS </li></ul><ul><ul><li>Tag thermal printable labels </li></ul></ul><ul><li>Implanting chips in pets for identification </li></ul><ul><li>Tagging livestock or wildlife for identification and tracking </li></ul><ul><li>Doggie door </li></ul><ul><li>Automobile key </li></ul><ul><li>Robot inventory for classroom </li></ul><ul><li>Smart shelves </li></ul>
    4. 6. The Reader <ul><li>Reader - Reads the data from the tag </li></ul><ul><li>The reader can then send the data to a microcontroller, such as the BASIC Stamp </li></ul><ul><li>Reader’s antenna transmits RF energy </li></ul><ul><li>The tag responds with its unique ID number </li></ul>
    5. 7. The Tag <ul><li>Combined microchip and antenna </li></ul><ul><li>Stores a unique serial number </li></ul><ul><li>Passive </li></ul><ul><ul><li>Does not contain power source or transmitter </li></ul></ul><ul><ul><li>Converts radio wave energy from the reader into electricity that powers the tag. </li></ul></ul><ul><ul><li>Tag sends back information by reflecting the electromagnetic waves </li></ul></ul><ul><li>Active </li></ul><ul><ul><li>Have their own power source and transmitter </li></ul></ul>
    6. 8. Parallax / Grand Idea Studios RFID Reader/Tags <ul><li>Reader designed specifically for these tags </li></ul><ul><li>Tags passive, read-only </li></ul><ul><li>Each tag contains a unique 10-character ID </li></ul><ul><li>1,099,511,627,776 possible combinations </li></ul><ul><li>2400 baud serial interface </li></ul><ul><li>5.0 V, 10 – 90 mA </li></ul>
    7. 9. Today’s Workshop <ul><li>Connect Homework Board and battery </li></ul><ul><li>Run a test program </li></ul><ul><li>Talk about the BASIC Stamp and the Homework Board </li></ul><ul><li>Wire up the RFID Reader </li></ul><ul><li>Program 1 - Read IDs from the tags, and display on your laptop </li></ul><ul><li>Wire up a speaker and LED </li></ul><ul><li>Program 2 – Access control with beeper and LED indicator </li></ul>
    8. 10. BASIC Stamp HomeWork Board Quick-Start Parts You’ll also need:
    9. 11. Quick-Start Write a PBASIC program then download it to the BASIC Stamp Connect serial cable and battery to HomeWork Board Connect serial cable to computer COM port. Attach adhesive rubber feet to the underside of your board
    10. 12. Test Program 1. Run the BASIC Stamp Editor Software 5. Click the ‘Run’ button 3. Click the PBASIC 2.5 button 2. Click the BASIC Stamp 2 Button 4. Enter this program
    11. 13. Running the Program The command: Causes the BASIC Stamp to send a message to the Computer Click the ‘Run’ button The Debug Terminal appears with a message sent by the BASIC Stamp Press/release Reset button to run the program again.
    12. 14. BASIC Stamp Microcontroller HomeWork Board Embedded BASIC Stamp 2 <ul><li>BASIC Stamp 2 (BS2) </li></ul><ul><li>16 I/O Pins </li></ul>
    13. 15. Prototyping Area with Breadboard <ul><li>V dd = + 5 Volts </li></ul><ul><li>V ss = GND = 0 Volts </li></ul><ul><li>V in = Battery Volts = 9 V </li></ul><ul><li>16 I/O Pins </li></ul><ul><ul><li>Labelled P0..P15 </li></ul></ul><ul><li>5 Horizontal squares are connected in rows </li></ul><ul><li>No connection across channel </li></ul><ul><li>No connection from black headers to white breadboard </li></ul>
    14. 16. RFID Reader Connections RFID Reader BASIC Stamp 2 GND Vss SOUT I/O Pin #14 P14 /ENABLE I/O Pin #15 P15 Vcc Vdd
    15. 17. Disconnect Your Battery! <ul><li>Before you build a circuit </li></ul><ul><li>Before you make changes to a circuit </li></ul><ul><li>Before you leave your board unattended </li></ul>
    16. 18. Wire up the RFID Reader Check your wiring carefully before going on!
    17. 19. Control the Reader with the BASIC Stamp program <ul><li>First, define the I/O pins in your code </li></ul><ul><li>Insert these lines above your DEBUG command </li></ul><ul><li>Save your file – you will be adding to it </li></ul>
    18. 20. RFID Data Format <ul><li>How should we store the data coming from the RFID reader? </li></ul><ul><li>The unique ID will be transmitted as a 12-byte ASCII string in the following format: </li></ul><ul><li>We’ll store the 10 unique characters and throw away the start and stop byte </li></ul>
    19. 21. Define a place to hold the data Define the baud rate
    20. 22. Controlling the Reader <ul><li>Step 1 </li></ul><ul><li>Set Enable Low to send a start signal </li></ul><ul><li>Step 2 </li></ul><ul><li>Receive serial data into RX pin </li></ul><ul><li>The BASIC Stamp receives 10 bytes of data. </li></ul><ul><li>Step 3 </li></ul><ul><li>Set Enable High to end the communication. </li></ul>
    21. 23. Add main code to control reader
    22. 24. Display the data and repeat Save, then run your program
    23. 25. Program 2 – Access Control System Add Speaker and LED BASIC Stamp output to LED <ul><li>LED Test Circuit Parts </li></ul><ul><li>LED – Green </li></ul><ul><li>Resistor – 470  </li></ul><ul><li>(yellow-violet-brown) </li></ul>
    24. 26. LED Schematic and Wiring Diagram
    25. 27. Add speaker and test '{$STAMP BS2} '{$PBASIC 2.5} DEBUG “Test speaker...&quot;, CR FREQOUT 9, 1500, 2000 DEBUG “Done.&quot; f = 2000 Hz duration = 1500 ms = 1.5 s I/O pin = P9
    26. 28. Program 2 – Access Control System <ul><li>“ RFID SecuritySystem.bs2” </li></ul><ul><li>Replace Tag1 & Tag3 DATA with your IDs </li></ul><ul><li>(We don’t have any Tag2 oval tags) </li></ul><ul><li>Try your tags on your reader and your neighbor’s reader </li></ul><ul><li>Customize your program using different sounds or devices </li></ul>' -----[ EEPROM Data ]---------------------------- Tag1 DATA &quot;0F0296C557&quot; Tag3 DATA &quot;04158DBCF8&quot;
    27. 29. Remember Your Basic Stamp HomeWork Board Parallax CD RFID Reader and Tags Bags of electronic parts Please Leave Behind Batteries Programming Cables The Laptops Have fun!!!