Arduino Test

The FONA library is under heavy development! This page may change over time!

Download Adafruit_FONA

To begin reading sensor data, you will need to download Adafruit_FONA Library from our github repository. You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip
Rename the uncompressed folder Adafruit_FONA and check that the Adafruit_FONA folder contains Adafruit_FONA.cpp and Adafruit_FONA.h

Place the Adafruit_FONA library folder your arduinosketchfolder/libraries/ folder.
You may need to create the libraries subfolder if its your first library. Restart the IDE.

We also have a great tutorial on Arduino library installation at:

FONA 3G Baud Adjustment

If you have a FONA 3G, the first time you use it you may need to run the FONA3G_setBaud example to set the baud rate manually to 4800bps rather than 115200

Load Demo

Open up File->Examples->Adafruit_FONA->FONAtest and upload to your Arduino wired up to the module.

For the FONA 3G, change the constructor used in FONATest to Adafruit_FONA_3G:

// Use this for FONA 800 and 808s
//Adafruit_FONA fona = Adafruit_FONA(FONA_RST);
// Use this one for FONA 3G
Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST);

For Mega, Leonardo, or Micro, change the definition of FONA_TX to the pin you used!

Make sure you have a charged 3.7/4.2V LiPoly or LiIon battery plugged into the JST and an antenna attached
Once uploaded to your Arduino, open up the serial console at 115200 baud speed to begin the tester sketch
Make sure you also have Both NL & CR for the serial command sender option. This means when you send data to the Arduino via the console, it will put a newline/return at the end.

Using the Test Sketch

The test sketch has a menu interface so you can test out just about everything the FONA can do. The menu may change slightly as we add more functionality and update code!

Continue onto the next few sections to see what functionality you can test with the sketch

Last updated on 2016-09-28 at 12.38.59 PM Published on 2014-07-02 at 01.00.25 PM