Pages: [1] 2   Go Down
Author Topic: Arduino & NFC  (Read 11359 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes indeed. Any experience with this board?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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  smiley-confuse
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




Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Earth
Offline Offline
Edison Member
*
Karma: 52
Posts: 1735
My browser no longer is binding static IP, Floating is the way to go.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!



« Last Edit: March 01, 2013, 05:21:28 pm by sonnyyu » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Earth
Offline Offline
Edison Member
*
Karma: 52
Posts: 1735
My browser no longer is binding static IP, Floating is the way to go.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1] 2   Go Up
Jump to: