Using NFC Reader with Mini GaussSense

Tutorials - GaussToys Developers

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!

Prerequisite

Hardware Materials Please prepare the following hardware materials:

Amount Item
1NFC Reader for GaussSense connected with 8 jumping wires
1NFC Tag
1Mini GaussSense
1Mini GaussSense Breadboard Adapter
1Arduino Board & USB Cable
1Breadboard
7Jumping Wires
1Pin 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 also download the following 2 files:
- Arduino firmware for NFC Reader
- Processing sketch example for NFC Reader
You will need them to display RFID information later.

Connecting the Mini GaussSense to NFC Shield

Wiring Circuit

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.
Unzip the Mini_GaussSense_1x1_RFID_V1.zip file downloaded in previous steps. You will see 3 files: Mini_GaussSense_1x1_RFID_V1.ino, RFID.cpp, and RFID.h in the folder.

Open the Mini_GaussSense_1x1_RFID_V1.ino file and upload the code to your Arduino board. Make sure MINI_GAUSSSENSE_AMOUNT = 1

See Mini GaussSense and NFC Reader in Action

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!

Unzip 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.
Hooray!

Back to Tutorials