Introduction: Arduino NFC WiFi Client
Last week I did a 10 day long pressure cooker, for that cooker we needed a NFC Wifi Client module for a check-in system. But when I started there was a problem, the wifi shield and NFC module where not compatible :(
So after a 2 days struggle we found a solution :)
Needed:
- Arduino MEGA
- WiFi shield CC3000
- NFC mini breakout board PN532
- And some dupont cables
Step 1: Soldering the PN532
Because the wifi shield also uses some ports, and the SPI communication protocol for the SD card.
I've used the I2C protocol for the PN532 mini breakout board.
It depends on your PN532 board, but on the back side of the board there is a JUMP SELECT legenda for the I2C communication. On the board I got there was some soldering needed to switch the pins, other boards can have switching pins or just jumpers.
Step 2: Legenda and Soldering
PN532 mini breakoutboard I2C soldering:
SO - 1
S1 - 0
Step 3: Wiring
After soldering we can wire all the connections:
I2C wiring -> explanation.
attachInterrupt() ports -> explanation
Arduino Mega - PN532
Pin 18 - IRQ
Pin 19 - RST
Pin 20 (SDA) - SDA
Pin 21 (SCL) - SCL
Step 4: Example Code
Cick here for the example code: https://bitbucket.org/snippets/nickdekale/g66r7