NFC with Raspberry Pi and Arduberry

The Arduberry is a simple and inexpensive way to bring Arduino shields to the Raspberry Pi. The device is a shield that slides over the Raspberry Pi and allows you to stack and use Arduino shields. The Arduberry requires no physical configuration to work with most shields. You can write Arduino sketches (programs) right on your Raspberry Pi.

This example will show how to use a Adafruit NFC shield to read an NFC card using the Arduberry.NFC with Raspberry Pi and Arduberry

Step 1: Hardware Required

  1. Raspberry Pi
  2. Arduberry
  3. Adafruit NFC Shield
  4. NFC Cards

Step 2:

Slide on the Adafruit NFC shield on the Arduberry and power on the Raspberry Pi.

Step 3:

Download the Adafruit NFC shield I2C library on the Raspberry Pi using the Netsurf Browser and save it in /usr/share/Arduino/libraries and extract it there.

Step 4:

Open Arduino, and open the example readMifare from the Adafruit_NFCShield_I2C folder. Change the programmer to Raspberry Pi GPIO and upload the sketch to the Arduberry(use Ctrl+Alt+U).

Step 5:

The data that is coming from the NFC shield is coming at 115200 baud, so we need to configure minicom. Open a terminal and open minicom setup.

Step 6:

Go to Serial Port Setup Menu and press Enter

Step 7:

Press A to select the device and change it to /dev/ttyAMA0 and press enter to save it. Also press F to disable Hardware Flow Control. Press Enter to save the settings.NFC with Raspberry Pi and Arduberry schematic

Step 8:

Select Exit to open minicom.

Step 9:

Now place the NFC card over the Shield to see the data stored in the NFC card.

Have a question? Post it on the forums and we’ll help you out.


For more detail:  NFC with Raspberry Pi and Arduberry

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top