Using NFC Reader with 2x2 Mini GaussSense

Tutorials - GaussToys Developers

NFC Reader can reliably identify an NFC tags, so you can attach the NFC tag to what you want and identify it. 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:

Amount Item
1NFC Reader for GaussSense connected with 8 jumping wires
1NFC Tag
4Mini GaussSense
12x2 Mini GaussSense Arduino Shield
1Arduino Board & USB Cable
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

First, install the 2x2 Mini GaussSense Arduino Shield on your Arduino board and carefully put all 4 Mini GaussSense on the top of it.

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

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

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 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, 2, 2, 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.

Back to Tutorials