There are two different code files here. One will go onto the Feather M0 Lora inside the controller box and broadcast signals. The other goes onto a Feather M0 LoRa connected to your wearable project, and will receive the signals and run the FastLED code.

Before You Start

You'll need at least two of the same (identical!) packet radio Feather boards (e.g., RFM69HCW to RFM69HCW or LoRa RFM95 to LoRa RFM95, no mixing and matching) set to the same frequency in order to send and receive messages -- one board on its own is very lonely, and semi-useless :( 

If this is your first foray into the world of arduino-based microcontrollers, you'll need to install some software first. Head over to the Feather M0 LoRa guide for a detailed explanation of what you need to do.  

Once you've gone through the guide and have the "blink" sketch working, come back here and continue.

Install Libraries

In Arduino, choose Sketch > Include Library > Manage Libraries. If you are new to using libraries, see this guide for details.

You can search for the various libraries in this window. Find each one and click "Install".  When you have them all installed, restart Arduino.

  • Adafruit_NeoTrellis
  • Adafruit_SSD1306
  • Adafruit_GFX
  • Adafruit_BusIO
  • FastLED
  • Encoder Quad Linear (Encoder Library by Paul Stroffgren)

Install the RadioHead library as shown here and then upload the RadioHead -> feather -> RadioHead69_RawDemo_TX example on one board and RadioHead -> feather -> RadioHead69_RawDemo_RX on the other. Open your serial port on one board and make sure that they're talking to each other properly.

This guide was first published on Jan 30, 2019. It was last updated on Jan 30, 2019.

This page (Code with Arduino) was last updated on Jan 14, 2019.

Text editor powered by tinymce.