In this recipe we connect the Adafruit PN532 NFC/RFID Shield to a Raspberry Pi and Reactive Blocks via the I2C bus.

Physical Connection

Connect the NFC shield with the following pins of the Raspberry Pi Connector. (Use a breadboard or a soldered connection.)

NFC Shield       Raspberry Pi
------------------------------
SCL              SCL1 / GPIO 9  
SDA              SDA1 / GPIO 8
5V               5V   
Gnd              GND
Digital I/O 2    GPIO 7

For now, you do not need to connect the last one, Digital I/O 2 and GPIO7. This will be to speed up card detection later.

wiring-i2c-nfc

Make sure to shutdown your Pi and remove all power before cabling.

Enable I2C on the Raspberry Pi

You need to enable I2C first. Start the Raspberry Pi Configuration tool, and enable I2C. Restart the Pi.

raspberry-pi-i2c-enable

Check I2C

Install the I2C tools:

sudo apt-get update
sudo apt-get install -y python-smbus i2c-tools

Use the i2c detect tool to check if the NFC chip is reachable.

sudo i2cdetect -y 1

The resulting table should list at least one device, the NFC sensor.

Connect with Reactive Blocks

Import the library Raspbery Pi Adafruit NFC. It contains a building block that detects the UID of each NFC card.

nfc-reader-test

78 thoughts on “Adafruit RFID/NFC Shield

  1. Pingback: Free Piano
  2. Pingback: essayforme
  3. Pingback: Online cialis
  4. Pingback: Generic for viagra
  5. Pingback: Cialis generique
  6. Pingback: Cheap viagra
  7. Pingback: Online cialis
  8. Pingback: visit the page
  9. Pingback: Cialis 20mg
  10. Pingback: click for details
  11. Pingback: provided link
  12. Pingback: continue
  13. Pingback: click for details
  14. Pingback: click to continue
  15. Pingback: continued here
  16. Pingback: click at this page
  17. Pingback: go
  18. Pingback: Bangalore Escorts
  19. Pingback: Kolkata Escorts
  20. Pingback: Goa Escorts
  21. Pingback: Cialis coupon
  22. Pingback: Cialis coupon
  23. Pingback: Cialis 20mg
  24. Pingback: Cialis 5 mg
  25. Pingback: see more
  26. Pingback: click to see more
  27. Pingback: a source
  28. Pingback: notehub.org
  29. Pingback: notehub.org
  30. Pingback: page address
  31. Pingback: notehub.org
  32. Pingback: go here
  33. Pingback: more on the page
  34. Pingback: go to the page
  35. Pingback: follow the link

Leave a Reply