Stronghead
Posts: 2
Joined: Thu Jan 24, 2013 11:55 pm

NFC and LED

Thu Jan 08, 2015 10:30 pm

Hello,

I recently set up my Raspberry Pi B+ to work with the Adafruit pn532 nfc breakout board using libnfc (tutorial: https://learn.adafruit.com/adafruit-nfc ... i/overview). My next goal is to light up an led using the gpio pins on the Raspberry Pi when a certain NFC tag touches the reader. I have no idea where to even look, or even what language I need to program this in. Any help would be appreciated.

Thank you.

Edit: Further research led me to a library by the name of "WiringPi" that apparently makes GPIO access quite easy; does anyone know if it is possible to combine this with libnfc to do what I need?

engrkhawaja
Posts: 3
Joined: Mon Aug 24, 2015 10:03 pm

Re: NFC and LED

Wed Sep 23, 2015 3:01 pm

Hi,

I am looking for solution for same problem.

Can you please let me know if you found some solution?

Khawaja

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: NFC and LED

Wed Sep 23, 2015 4:05 pm

libnfc and wiringpi are both C libraries so yes both can be used together.

The nfc breakout board only uses the uart so there should be alot of free GPIO pins for controlling any LEDs.

Return to “Beginners”