Difference between revisions of "BeagleBone Black RFID Adaptor Cape"

From eLinux.org
Jump to: navigation, search
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[File:RFID Cape.jpg|right|350px|BeagleBone Pin Usage]]
 
[[File:RFID Cape.jpg|right|350px|BeagleBone Pin Usage]]
== Description ==
 
The RFID adaptor cape is an interface between the Beaglebone Black (BBB) and Texas Instrument's TRF7970ATB, (Multi-Protocol Fully Integrated 13.56-MHz RFID and NFC Transceiver) It allows users to have fully functional RFID and NFC capabilities on the BBB. The adaptor board also features four additional LEDs and a push button.
 
  
The communication between the BBB and the TB is via SPI. Since SPI pins are not automatically enabled on BBB, a device tree overlay is used to configure the pins properly for SPI use.
+
The RFID adaptor cape is an interface between the Beaglebone Black (BBB) and Texas Instrument's TRF7970ATB, (Multi-Protocol Fully Integrated 13.56-MHz RFID and NFC Transceiver). <br />
 +
 
 +
Our applications of the RFID Adaptor Cape are Cape2Login and Cape2Shop. <br />
 +
-- '''Cape2Login''': Allows you to login your computer without a password using RFID tagged badge. <br />
 +
-- '''Cape2Shop''': Eliminate checkout lanes and personalize shopping using this handheld device which scans RFID tagged items and catalogues your purchases.  
 +
 
 +
'''Features of the RFID Adaptor Cape:'''
 +
* Fully functional RFID and NFC capabilities on the BBB
 +
* Three status LEDs, one power LED, Push button
 +
* Communication via SPI
 +
* Compatible with TRF7960/A and TRF7970/A Target Board (TB)
 +
* TB supports ISO15693, ISO18000-3, ISO14443A/B, and FeliCa
 +
 
 +
'''Source code available to demo:'''
 +
* Item identification
 +
* Live video stream to PC initiated with RFID
 +
 
 +
== Videos/Demonstration ==
 +
{{#evp:youtube|f3jv0FzXaXM| Promo Video |left|500}}
 +
 
 +
{{#evp:youtube|Ywk79DdCk2w| Cape2Login: Login to your computer without a password using your RFID tagged badge ~ Cape2Shop: Eliminate checkout lanes and personalize shopping with RFID tagged items |center|500}}
 +
 
 +
{{#evp:youtube|WD-8vUvm6Sc| Examples of demonstrations include Identification and Video Streaming . For Video Streaming source code, check out [https://github.com/shengzhao91/RFID_Adaptor_Cape/tree/master/RFID_VideoStreaming here] |right|500}}
 +
<br />
  
 
== Schematic ==
 
== Schematic ==
<br/><br/>
 
 
[[File:RFID Cape Schematic.png|300px|RFID Adaptor Cape Schematic]]
 
[[File:RFID Cape Schematic.png|300px|RFID Adaptor Cape Schematic]]
 
[[File:RFID Cape Layout.png|300px|RFID Adaptor Cape Layout]]
 
[[File:RFID Cape Layout.png|300px|RFID Adaptor Cape Layout]]
Line 12: Line 32:
 
<br/><br/>
 
<br/><br/>
 
== Sample Code ==
 
== Sample Code ==
 +
Source code: [https://github.com/shengzhao91/RFID_Adaptor_Cape/tree/master/RFID_Application RFID Application] on GitHub. <br />
 +
This C application will constantly scan for RFID tags within the vicinity of the reader. Once a tag is detected, its UID will be stored in uid.txt file.
  
 
== SPI Device Tree Overlay Setup==
 
== SPI Device Tree Overlay Setup==
The following information is slightly modified from [http://elinux.org/BeagleBone_Black_Enable_SPIDEV BeagleBone Black Enable SPIDEV]
+
Since SPI pins are not automatically enabled on BBB, a device tree overlay is used to configure the pins properly for SPI use.
 +
 
 +
The following information is slightly modified from [http://elinux.org/BeagleBone_Black_Enable_SPIDEV BeagleBone Black Enable SPIDEV] to suit for the cape.
  
 
'''NOTE:''' You MUST disable the HDMI interface to use SPI1 to talk to the adaptor cape.
 
'''NOTE:''' You MUST disable the HDMI interface to use SPI1 to talk to the adaptor cape.
 
<br>
 
<br>
Create a file called BB-SPI1-01-00A0.dts [[
+
Create a file called [https://github.com/shengzhao91/RFID_Adaptor_Cape/blob/master/SPI_devicetree/BB-SPI1-01-00A0.dts BB-SPI1-01-00A0.dts]
 
Compile the dtc:
 
Compile the dtc:
 
  dtc -O dtb -o BB-SPI1-01-00A0.dtbo -b 0 -@ BB-SPI1-01-00A0.dts
 
  dtc -O dtb -o BB-SPI1-01-00A0.dtbo -b 0 -@ BB-SPI1-01-00A0.dts
Line 50: Line 74:
  
 
== Eagle Files ==
 
== Eagle Files ==
 +
[https://github.com/shengzhao91/RFID_Adaptor_Cape/blob/master/BBB_Rev2/BBB_Cape.sch Eagle Schematic] <br />
 +
[https://github.com/shengzhao91/RFID_Adaptor_Cape/blob/master/BBB_Rev2/BBB_Cape.brd Eagle Board Layout] <br />
 +
[https://github.com/shengzhao91/RFID_Adaptor_Cape/tree/master/BBB_Rev2 Gerber Files]
 +
 +
== Team - About Us ==
 +
Members: Sheng Zhao, Amulya Kattimani, Edwin Flores <br />
 +
[[Image:RFIDcapeGroupPicture.jpg|350px|Group Picture. Starting from left Sheng Zhao, Amulya Kattimani, Edwin Flores]]
 +
* [http://www.linkedin.com/pub/edwin-flores/41/6b8/76b Edwin Flores]
 +
* [http://www.linkedin.com/pub/amulya-kattimani/54/b75/466 Amulya Kattimani]
 +
* [http://www.linkedin.com/in/shengzhao91 Sheng Zhao]
  
 
== References ==
 
== References ==

Latest revision as of 11:25, 13 August 2013

BeagleBone Pin Usage

The RFID adaptor cape is an interface between the Beaglebone Black (BBB) and Texas Instrument's TRF7970ATB, (Multi-Protocol Fully Integrated 13.56-MHz RFID and NFC Transceiver).

Our applications of the RFID Adaptor Cape are Cape2Login and Cape2Shop.
-- Cape2Login: Allows you to login your computer without a password using RFID tagged badge.
-- Cape2Shop: Eliminate checkout lanes and personalize shopping using this handheld device which scans RFID tagged items and catalogues your purchases.

Features of the RFID Adaptor Cape:

  • Fully functional RFID and NFC capabilities on the BBB
  • Three status LEDs, one power LED, Push button
  • Communication via SPI
  • Compatible with TRF7960/A and TRF7970/A Target Board (TB)
  • TB supports ISO15693, ISO18000-3, ISO14443A/B, and FeliCa

Source code available to demo:

  • Item identification
  • Live video stream to PC initiated with RFID

Videos/Demonstration

{{#evp:youtube|f3jv0FzXaXM| Promo Video |left|500}}

{{#evp:youtube|Ywk79DdCk2w| Cape2Login: Login to your computer without a password using your RFID tagged badge ~ Cape2Shop: Eliminate checkout lanes and personalize shopping with RFID tagged items |center|500}}

{{#evp:youtube|WD-8vUvm6Sc| Examples of demonstrations include Identification and Video Streaming . For Video Streaming source code, check out here |right|500}}

Schematic

RFID Adaptor Cape Schematic RFID Adaptor Cape Layout BeagleBone Pin Usage

Sample Code

Source code: RFID Application on GitHub.
This C application will constantly scan for RFID tags within the vicinity of the reader. Once a tag is detected, its UID will be stored in uid.txt file.

SPI Device Tree Overlay Setup

Since SPI pins are not automatically enabled on BBB, a device tree overlay is used to configure the pins properly for SPI use.

The following information is slightly modified from BeagleBone Black Enable SPIDEV to suit for the cape.

NOTE: You MUST disable the HDMI interface to use SPI1 to talk to the adaptor cape.
Create a file called BB-SPI1-01-00A0.dts Compile the dtc:

dtc -O dtb -o BB-SPI1-01-00A0.dtbo -b 0 -@ BB-SPI1-01-00A0.dts

Then, copy the file into /lib/firmware/:

cp BB-SPI1-01-00A0.dtbo /lib/firmware/

Then enable the device tree overlay:

echo BB-SPI1-01 > /sys/devices/bone_capemgr.*/slots

Plug in your BBB to a host computer using the mini usb data cable.

Go to My Computer>BeagleBone Getting Started> and open uEnv.txt Copy and paste this command into the .txt file. Make sure to save your changes. (Ctrl+s)

optargs=quiet drm.debug=7 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
capemgr.enable_partno=BB-SPI1-01

Save the changes, reboot Beaglebone Black.
Make sure it is enabled You should now have two spidev-files in the folder /dev/

ls -al /dev/spidev1.0

If you don't see it, you can type the following to manually enable the device tree overlay.

echo BB-SPI1-01 > /sys/devices/bone_capemgr.*/slots

Eagle Files

Eagle Schematic
Eagle Board Layout
Gerber Files

Team - About Us

Members: Sheng Zhao, Amulya Kattimani, Edwin Flores
Group Picture. Starting from left Sheng Zhao, Amulya Kattimani, Edwin Flores

References