Before you can start communicating with Fona, you'll need the Fona library for Arduino. You can install it directly from the Arduino app under Sketch -> Include Library -> Manage Libaries (Arduino 1.6 and above).

The older, slower way to install the library is to download it directly from github:

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:

In any Fona sketch you use, change the following variables to better suit Flora's layout:

#define FONA_RX 10
#define FONA_TX 9
#define FONA_RST 6

For testing the different functions of Fona, head to instructions on the main Fona guide! It's tons of fun to experiment with the SMS function using the Arduino Serial Monitor interface (FONAtest).

Other pin configurations are possible, but for simplicity and consistency with the diagram on the next page, we've chosen to set the software serial port to pins 10 and 9, and the Fona reset pin to 6.

Flora is capable of hardware serial communication, and although not yet officially supported in the Fona library, advanced users may wish to try this code modification!

This guide was first published on Nov 18, 2015. It was last updated on Nov 18, 2015.

This page (Code Library & Modifications) was last updated on Nov 17, 2015.

Text editor powered by tinymce.