# FLORA + FONA

## Overview

https://www.youtube.com/watch?v=cUDo4xzv70E

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:

- [Getting Started with FLORA](../../../../getting-started-with-flora)
- [Adafruit Fona](../../../../adafruit-fona-mini-gsm-gprs-cellular-phone-module)

![](https://cdn-learn.adafruit.com/assets/assets/000/028/663/medium800thumb/flora_fona-smssengerbag-09.jpg?1448324146)

# FLORA + FONA

## Code Library & Modifications

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

![](https://cdn-learn.adafruit.com/assets/assets/000/028/629/medium800thumb/adafruit_products_flora_fona-04-smaller.jpg?1448324105)

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

[Download the Adafruit_FONA Library](https://github.com/adafruit/Adafruit_FONA_Library/archive/master.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:  
[http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use](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:

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

For testing the different functions of Fona, head&nbsp;to&nbsp;[instructions on the main Fona guide](../../../../adafruit-fona-mini-gsm-gprs-cellular-phone-module)! 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&nbsp;wish to try&nbsp;this code modification!

# FLORA + FONA

## Circuit Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/028/649/medium800/adafruit_products_diagram-fona-flora.jpg?1447887026)

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.

![](https://cdn-learn.adafruit.com/assets/assets/000/028/616/medium800/adafruit_products_flora_fona-01.jpg?1447888472)

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

![](https://cdn-learn.adafruit.com/assets/assets/000/028/615/medium800/adafruit_products_flora_fona-00.jpg?1447888490)

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

&nbsp;

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)!

![adafruit_products_flora_fona-02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/028/623/medium640/adafruit_products_flora_fona-02.jpg?1447888251)

![adafruit_products_flora_fona-03.jpg](https://cdn-learn.adafruit.com/assets/assets/000/028/625/medium640/adafruit_products_flora_fona-03.jpg?1447888169)

# FLORA + FONA

## Projects

![](https://cdn-learn.adafruit.com/assets/assets/000/028/614/medium800/flora_adafruit_products_fona-smssengerbag-00.jpg?1447888503)

The [SMSsenger bag](../../../../smssenger-bag)&nbsp;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](../../../../geofencing-with-the-fona-808-and-adafruit-io)&nbsp;-&nbsp;Build a geofencing project that will send alerts when it goes out of the perimeter!

[Track Your Treats: Halloween Candy GPS Tracker](../../../../track-your-treats-halloween-candy-gps-tracker)&nbsp;- This GPS logging + marking project could easily be used for any route-tracking wearables!


## Featured Products

### FLORA - Wearable electronic platform: Arduino-compatible

[FLORA - Wearable electronic platform: Arduino-compatible](https://www.adafruit.com/product/659)
FLORA is Adafruit's fully-featured wearable electronics platform. It's a round, sewable, Arduino-compatible microcontroller designed to empower amazing wearables projects.FLORA comes with Adafruit's support, [tutorials and...](http://learn.adafruit.com/category/flora)

In Stock
[Buy Now](https://www.adafruit.com/product/659)
[Related Guides to the Product](https://learn.adafruit.com/products/659/guides)
### Adafruit FONA - Mini Cellular GSM Breakout uFL Version

[Adafruit FONA - Mini Cellular GSM Breakout uFL Version](https://www.adafruit.com/product/1946)
Ring, Ring! Who's that callin'? It's your breadboard! Introducing Adafruit FONA MiniGSM, an adorable all-in-one cellular phone module that lets you add voice, text, SMS and data to your project in an adorable little package.

**Please note: The T-Mobile GSM network is...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1946)
[Related Guides to the Product](https://learn.adafruit.com/products/1946/guides)
### Adafruit FONA - Mini Cellular GSM Breakout - SMA Version

[Adafruit FONA - Mini Cellular GSM Breakout - SMA Version](https://www.adafruit.com/product/1963)
Ring, Ring! Who's that callin'? It's your breadboard! Introducing Adafruit FONA MiniGSM, an adorable all-in-one cellular phone module that lets you add voice, text, SMS and data to your project in an adorable little package.  
  
This module measures only...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1963)
[Related Guides to the Product](https://learn.adafruit.com/products/1963/guides)
### Adafruit FONA 808 - Mini Cellular GSM + GPS Breakout

[Adafruit FONA 808 - Mini Cellular GSM + GPS Breakout](https://www.adafruit.com/product/2542)
Cellular + GPS tracking, all in one? Oh yes! Introducing Adafruit FONA 808 MiniGSM + GPS, an all-in-one cellular phone module with that lets you add location-tracking, voice, text, SMS and data to your project in an adorable little package. (<a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2542)
[Related Guides to the Product](https://learn.adafruit.com/products/2542/guides)
### GSM SIM Card from Ting & Adafruit - Data/Voice/Text

[GSM SIM Card from Ting & Adafruit - Data/Voice/Text](https://www.adafruit.com/product/2505)
Adafruit is&nbsp;now a phone company :)&nbsp; Or, well, we've sold [DIY cell phones](https://www.adafruit.com/categories/281) for awhile now but you've never been able to buy your [FONA](https://www.adafruit.com/fona) and a SIM Card all in one place. &nbsp;Now,...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2505)
[Related Guides to the Product](https://learn.adafruit.com/products/2505/guides)
### Silicone Cover Stranded-Core Wire - 26AWG in Various Colors

[Silicone Cover Stranded-Core Wire - 26AWG in Various Colors](https://www.adafruit.com/product/1970)
Silicone-sheathing wire is super-flexible and soft, and it's also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1970)
[Related Guides to the Product](https://learn.adafruit.com/products/1970/guides)
### Silicone Cover Stranded-Core Wire - 2m 26AWG Black

[Silicone Cover Stranded-Core Wire - 2m 26AWG Black](https://www.adafruit.com/product/1881)
Silicone-sheathing wire is super-flexible and soft, and its also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness has to...

In Stock
[Buy Now](https://www.adafruit.com/product/1881)
[Related Guides to the Product](https://learn.adafruit.com/products/1881/guides)
### Silicone Cover Stranded-Core Wire - 25ft 26AWG - Black

[Silicone Cover Stranded-Core Wire - 25ft 26AWG - Black](https://www.adafruit.com/product/2517)
Silicone-sheathing wire is super-flexible and soft, and its also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness has to...

In Stock
[Buy Now](https://www.adafruit.com/product/2517)
[Related Guides to the Product](https://learn.adafruit.com/products/2517/guides)

## Related Guides

- [Flora Brake Light Backpack](https://learn.adafruit.com/flora-brakelight-backpack.md)
- [Sunscreen Reminder Hat](https://learn.adafruit.com/sunscreen-reminder-hat.md)
- [Washing Wearable Electronics](https://learn.adafruit.com/washing-wearable-electronics.md)
- [3D Printed Wireless MIDI Controller Guitar](https://learn.adafruit.com/ez-key-wireless-midi-controller-guitar.md)
- [Zipper Switch](https://learn.adafruit.com/zipper-switch.md)
- [Adding Third Party Boards to the Arduino v1.6.4+ IDE](https://learn.adafruit.com/add-boards-arduino-v164.md)
- [3D Printed Flora Band](https://learn.adafruit.com/3d-printed-flora-band.md)
- [FLORAbrella](https://learn.adafruit.com/florabrella.md)
- [Simple and Beautiful NeoPixel Holiday Lights](https://learn.adafruit.com/simple-beautiful-color-changing-light-strand.md)
- [Glowing Skullcandy Headphones Mod](https://learn.adafruit.com/glowing-skullcandy-headphones-mod.md)
- [PianoGlove](https://learn.adafruit.com/pianoglove.md)
- [Heart Rate Badge](https://learn.adafruit.com/heart-rate-badge.md)
- [Conductive Thread](https://learn.adafruit.com/conductive-thread.md)
- [LED Stego Flex Spike Hoodie](https://learn.adafruit.com/led-stego-flex-spike-hoodie.md)
- [Firewalker LED Sneakers](https://learn.adafruit.com/firewalker-led-sneakers.md)
