Go Down

Topic: Arduino & NFC (Read 12990 times) previous topic - next topic

chrbakke

Hi,
Im doing a project where I use the PN532 NFC controller from adafruit.com and the arduino. My goal is to be able to send simple data from a Nexus S android phone to the arduino via the NFC controller. Is there anyone out there who have done any android to arduino interfacing with NFC? I am able to read different kinds of passive NFC tags, but im kind of stuck when it comes to the android communication.

rena

do you use the PN532 NFC/RFID controller breakout board http://www.adafruit.com/blog/2011/05/13/new-product-pn532-nfcrfid-controller-breakout-board-v1-0/

chrbakke

Yes indeed. Any experience with this board?

rena

not with the adafruit board. i bought the nfc shield from seeedstudio http://www.seeedstudio.com/depot/nfc-shield-p-916.html which is especially for arduino.
i'm trying to use it with libnfc http://libnfc.googlecode.com/

chrbakke

I see. But using the LIBNFC will require that you have a linux-based computer connected at alle time right?

rena

the pn532 code that comes with the adafruit/seeedstudio board is poor/very simple read/write mifare - that's all :-(

i 'm trying the same as you: i want the arduino board to communicate with the nexus s.
but at the moment i dont have enought know-how to implement that code therefore and i'm trying it in 2 steps:
1st step: understand the pn532/libnfc by implementing an pn532-driver that forwards the communication from libnfc/pc to the pn532 and play with the examples.
2nd step: write code for the arduino that will work without libnfc/pc


Training

Hi Guys,

Adafruit has run out of PN532 NFC/RFID components.  Should I wait until they are back in or order the NFC Sheild (http://www.seeedstudio.com/depot/nfc-shield-p-916.html) from Seeed Studio?  I need the simplest possible components to work with as I have no experience in electronics (or computers to be honest). I notice that Adafruit charge more but this is OK if the product is more suited to someone with no expereince/tools. 

Best regards

Áine

artto

I use nfc shield from seeeduino http://www.seeedstudio.com/depot/nfc-shield-p-916.html with arduino uno board.
Can it receive data from nexus s ? I want my nexus s to transmit student id to the shield, and record it to the computer.

jimutraa

Hi artto
I'm working on this too, but don't have all the simple answers. Its quite tricky. Android NFC implementation is a bit googley  :~
If you format the message from the NEXUS in the compatible way the NFC board may read it. E.g NDEF message in a Mifare emulated tag.

I've been testing it more the other way. Try to emulate a tag dynamically from the 'Duino and then read it on the Nexus.
Switched to Felica (NFC-F) from Mifare (NFC-A) temporarily cos of frustration.

Testing out ideas, with libNFC on a Linux/Mac/Win box and a USB/UART connected board seems a good way to try stuff out and has clear examples,
for instance the one called 'nfc-emulate-forum-tag2' does what you wanted to do.
Doesn't solve the Arduino coding, but will show a proof of concept.

cheers,

Jim





rena

do you use your seeedstudio connected via arduino? or do you modified it and connected it directly to serial port (@pc) ?

shailensobhee

Is anyone actually trying the NFC Shield from SeeedStudio + Arduino + Google Nexus S in card emulation mode?

That requires hacking the phone since Card Emulation is not enabled by default. I am in the process of hacking my phone. If anyone tried it, please post your results!

inagy

Hi!

I've just bought an I2C external board with the same PN352 IC and i'm facing with the same problem. I like to communicate with my Note2. Basic NFC Mifare reading example is working but i don't know yet how to move on.
The very simple P2PTransmit example which came with my boards Arduino library senses the phone when NFC is turned on but no communication occurs.

sonnyyu

#12
Mar 01, 2013, 11:12 pm Last Edit: Mar 01, 2013, 11:21 pm by sonnyyu Reason: 1
The reader IC PN532 support Card emulation;-

ISO/IEC 14443A mifare 1K/4K Card emulation
ISO/IEC 14443C (no prove yet) FeliCa Card emulation

no ISO/IEC 14443B support!

if  Reader OEM open the API, all u need 2 readers, one for Card emulation, one for reader.

nxp document

Quote
Is anyone actually trying the NFC Shield from SeeedStudio + Arduino + Google Nexus S in card emulation mode?


I don't do Android code lately, last time I did on first gen google phone Android 1.0 for fun.  As I recall there is API call to turn on Card emulation. don't count that on me!




Yihui

Seeed Studio releases a new library to exchange data between NFC Shield + Arduino and Android. Here is it:
https://github.com/Seeed-Shield/NFC_Shield_DEV

sonnyyu


Seeed Studio releases a new library to exchange data between NFC Shield + Arduino and Android. Here is it:
https://github.com/Seeed-Shield/NFC_Shield_DEV

Does Seeed Studio Shield support Card emulation? I mean 2 Arduino + 2 Shield, one is reader, the other one is Card emulation.

Go Up