NFC Reader can reliably identify an NFC tag, so you can attach the NFC tag to what you want to identified. Now we have made it very easy to use with your Mini GaussSense! In this tutorial, you will learn how to set up the NFC Reader for GaussSense, to bring the ID capability to your project. Let’s get started!
Hardware Materials Please prepare the following hardware materials:
|1||NFC Reader for GaussSense connected with 8 jumping wires|
|1||Mini GaussSense Breadboard Adapter|
|1||Arduino Board & USB Cable|
|1||Pin for Jumping Wire|
Setting up Programming Environment
Also, please setup the following environments:
- Setup the Arduino Software (If you have Arduino installed already, you can skip this step.)
- Setup the Processing IDE (If you have Processing IDE installed already, you can skip this step.)
- Setup the GaussSense SDK for Processing
Please refer to the Head First Mini GaussSense: Wiring Circuit section and connect your Mini GaussSense to Arduino board.
Before connecting the NFC Reader, make sure that all 8 jumping wires are well connected. Also, remember to attach the pin to the other end of the red wire.
Then, connect the wires to the Arduino board following the colors below.
Note that the blue wire should be left unconnected.
Finally, place the NFC Reader on the top of Mini GaussSense and connect the Arduino board to your computer. Well done!
Uploading Arduino Firmware
Other than the Arduino firmware used in other tutorials, you would need one that supports reading the RFID tag.
Mini_GaussSense_1x1_RFID_V1.zip file downloaded in previous steps.
You will see 3 files:
RFID.h in the folder.
Mini_GaussSense_1x1_RFID_V1.ino file and upload the code to your Arduino board. Make sure
MINI_GAUSSSENSE_AMOUNT = 1
Make sure to Install GaussSense SDK in Processing.
Now it's time to head for Processing again to see Mini GaussSense and NFC Reader working in action!
x7_NFCReader.zip and open
x7_NFCReader.pde file in the Processing IDE.
Set the correct constructor for GaussSense:
// Initialize the GaussSense gs = new GaussSense(this, GaussSense.GSType.GAUSSSENSE_MINI, 1, 1, Serial.list()[Serial.list().length - 1], 115200);
Run the sketch. Place an NFC Tag on the NFC Reader for GaussSense.
You can now see the tag information and the bipolar midpoint on the screen.