Use Fona with Flora! Combining these two powerful boards can create the wearables projects of your dreams! This quick guide covers the particulars of hooking Fona up to Flora including wiring and code modifications, so you can take most any Fona project and build it with Flora.

Before you begin, make sure to familiarize yourself with the following prerequisite guides:

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:
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use

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!

Wiring connections are as follows:

  • Fona Vio -> Flora 3.3v
  • Fona RX -> Flora D10 (configurable)
  • Fona TX -> Flora D9 (configurable)
  • Fona Key -> Flora GND
  • Fona RST -> Flora D6 (configurable)
  • Fona GND and BAT -> Flora JST port

Flora can only be powered from the JST or USB port, so solder a JST cable to Fona’s Bat and GND connections and plug it into Flora.

This wiring configuration takes advantage of Fona’s onboard USB lipoly battery charger. But it does mean that either a battery or USB power must be connected to Fona even when Flora is plugged into USB for debugging-- Fona can’t be powered from Flora’s USB port.

Solder the other wire connections as described in the circuit diagram.

Open the SIM door and install your SIM card, then replace and latch the SIM door closed (it will only fit one way).

 

Now you're ready to test out the Fona demo sketch (don't forget to update your pin variables to reflect the connections to Flora)!

The SMSsenger bag uses the wiring in this guide, with the addition of a flex NeoPixel matrix to display received SMSs, and is a good example project on which to base your own SMS Fona project!

Geofencing with the FONA 808 & Adafruit IO - Build a geofencing project that will send alerts when it goes out of the perimeter!

Track Your Treats: Halloween Candy GPS Tracker - This GPS logging + marking project could easily be used for any route-tracking wearables!

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