Arduino Setup

Before proceeding with this guide, make sure your board is correctly set-up by following the Using the Arduino IDE  page of the setup guide for the Feather M0 LoRa.

We're going to use MCCI's arduino-lmic library with this guide to communicate with The Things Network. Open the Arduino Library Manager (Sketch->Include Library->Manage Libraries). In the search box, type MCCIthe MCCI LoRaWAN LMIC library should be the first result. Click Install.

We've included the code for this guide inside the arduino-lmic library. To open it, from the Arduino IDE click File->Examples->MCCI LoRaWAN LMIC library->ttn-otaa-feather-us915-dht22

The code for the Feather M0 Weather Node should pop up.

Now that our code is set up, let's learn how to send data from our Feather to TTN and decode it!

This guide was first published on Sep 21, 2018. It was last updated on Sep 21, 2018. This page (Arduino Setup) was last updated on Jun 25, 2019.