longfi-arduino/GPS
Kent Wiliams 36e6132348 switched examples to sub-band 2 2020-05-11 21:36:09 -07:00
..
README.md restructured examples specific to board support 2020-04-13 16:46:29 -07:00
longfi-us915-cargo-gps.ino switched examples to sub-band 2 2020-05-11 21:36:09 -07:00

README.md

LongFi Arduino GPS Example

This example sketch demonstrates sending GPS coordinates, using the Helium network.

Compatible Development Boards

  • Catena 4610 - MCCI + Adafruit Ultimate GPS Featherwing
  • Feather M0 RFM95 - Adafruit + + Adafruit Ultimate GPS Featherwing
  • B-L072Z-LRWAN1 - ST STM32L0 Discovery kit + Adafruit Ultimate GPS Logger Shield

Required Arduino Libraries

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

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.