Introduction: Connect Your Adafruit Feather 32u4 FONA to Ubidots

About: Community manager @Ubidots, a startup empowering makers and hardware engineers to create applications for the Internet of Things #IoT

The Adafruit Feather 32u4 FONA - our take on an 'all-in-one' Arduino-compatible + audio/sms/data capable cellular board with built in USB and battery charging. For a complete list of device features and specs, check out the Feather product page

In the following tutorial, Ubidots will demonstrate how to setup and program the Adafruit Feather 32u4 FONA using the Arduino IDE to display data in your Ubidots account.

Step 1: Requirements

Step 2: Feather FONA Setup Using the Arduino IDE

1. Download the latest release of the Arduino IDE if you not already have it.
2. Open the Arduino IDE, select Files -> Preferences and enter the URL below into the Additional Board Manager URLs field. You can add multiple URLs by separating them with commas:

https://adafruit.github.io/arduino-board-index/pac...

3. Open Boards Manager from Tools -> Board -> Boards Manager and install the Adafruit AVR Boards. To simply find the correct device, select contributed from the type option and search Adafruit AVR Boards within the search bar. Next, select the most recent version and press install.

4. Close and reboot the Arduino IDE it to ensure that all the boards are properly installed.
5. Plug the Feather board into your computer and select the Adafruit Feather 32u4 from dropdown menus beginning with Tools > Board.

NOTE: If you are working with Windows, you will likely need to follow these additional steps to install the correct driver.

6. To ensure the right functionality of the Arduino IDE setup with the Adafruit Feather boards, upload the Blink example provided from Files > Examples > Basic > Blink. Once the board is properly setup, please continue with this guide.

NOTE: If you have any issues uploading the sample sketch into the board, this guide will help you boot the board manually. Also, if you are working Ubuntu or Linux, please visit this guide for additional troubleshooting resources.

7. Go to the Adafruit library repository to download the Adafruit FONA library. To download this library, click the green button called "Clone or download" and select "Download ZIP".

8. Now back in the Arduino IDE, click on Sketch -> Include Library -> Add .ZIP Library and select the .ZIP file of Adafruit_FONA-master.zip and then “Accept” or “Choose”. Once the library is successfully included you will receive the message "Library added to your libraries".

Step 3: Hardware Setup

1. Battery + USB Power: Whereas
other Feathers boards can run direct from 3.3V USB or battery, the Feather FONA manages the battery and USB power differently. With this board you must have a Lipoly/Lilon battery plugged in at all times. For more specific technical information see check out this help section.

2. Insert a micro SIM, attach a GSM antenna, and connect battery and micro USB.

3. Plug the board into to your computer.

Step 4: Programming & Ubidots Account Setup

With the following example you will be able to publish ANALOG readings taken from the A0 pin of the Feather 32u4 FONA to Ubidots.

1. To post your first value to Ubidots, open the Arduino IDE and paste this code. Once you have pasted the code, you will need to assign the APN (Access Point Name) of your operator, the USER and PASSWORD if are required for your operator, plus your individual, unique Ubidots TOKEN.

2. Verify your code within the Arduino IDE. To do this, in the top left corner of our Arduino IDE you will see the "Check Mark" icon press it to verify your code.
3. Upload the code into your Feather 32u4 FONA. To do this, choose the "right-arrow" icon beside the "check mark" icon.

4. To verify the connectivity of the device and the data sent, open the serial monitor by selecting the "magnifying glass" icon in the top right corner of the Arduino IDE.

5. Confirm your data in Ubidots. Now you should see the published data in your Ubidots account, locate the device called "adafruit" and visualize your data.

Step 5: Result

With this simple tutorial we are able to POST data to Ubidots with the ease of the Arduino IDE and a Feather 32u4 FONA. If your desire send more than one variable to Ubidots, reference Ubidots REST API to learn how to build the request properly. :)

Now its time to create Ubidots Dashboards to visualize your data and deploy your internet connected monitoring solution! Happy Hacking! :)