longfi-arduino/README.md

3.3 KiB

Gitpod Ready-to-Code

LongFi Arduino

Installing the MCCI LMIC Library

From the Arduino IDE, open the Library Manager (Sketch->Include Library->Manage Libraries). In the search box, type MCCI and select the MCCI LoRaWAN LMIC library should be the first result.

Adafruit GPS Library [Optional]

From the Arduino IDE, open the Library Manager (Sketch->Include Library->Manage Libraries). In the search box, type Adafruit GPS Library.

Board Support

B-L072Z-LRWAN1 - ST STM32L0 Discovery kit

Install board support package, find instructions here.

Arduino IDE:

  1. Select Tools -> Board: -> Discovery
  2. Select Tools -> Board part number: -> Discovery L072Z-LRWAN1

B-L072Z-LRWAN1 Product Page
B-L072Z-LRWAN1 User Manual

Catena 4610 - MCCI

Install board support package, find instructions here.

Arduino IDE:
Select Tools -> Board: -> MCCI Catena 4610.

For the GPS sketch: Select Tools -> Serial Interface -> USB + HW Serial

Catena 4610 Product Page
Catena 4610 Pin Mapping Diagram

Feather M0 RFM95 - Adafruit

  1. Add Adafruit package index, instructions here.
  2. Install both Arduino and Adafruit SAMD board support, instructions here.
  3. (Windows Only) Install drivers, instructions here

Adafruit Feather M0 with RFM95 Product Page
Adafruit Feather M0 with RFM95 Datasheets & Files

Programming (Uploading Method):

B-L072Z-LRWAN1 - ST STM32L0 Discovery kit

STM32CubeProgrammer(SWD)

Will use onboard ST-Link(Flasher/Debugger) to upload sketch.
Download and Install required utility from ST here.

Arduino IDE:
Select Tools -> Upload Method -> STM32CubeProgrammer(SWD)

Catena 4610 - MCCI

DFU

Arduino IDE:
Select Tools -> Upload Method -> DFU

To put the board in DFU mode, hold down the boot button while pressing and releasing the reset button.

Arduino IDE:
Select Tools -> Upload Method -> STLink

Requires an ST-Link debugger connected to SWCLK, SWDIO, Vref, and GND, refer to pin mapping diagram.