Giter Site home page Giter Site logo

samd21-lora-gps's Introduction

SAMD21 LoRa GPS Module

This repo has example code for the SAMD21-based LoRa GPS development board described here. This board can be programmed with Arduino as an Arduino Zero. The board uses a SAMD21E18A microcontroller which has fewer pins than the 'G' variant of this chip used on the Arduino Zero, and the Arduino Zero pins used for SPI are not present in this package. The way to get around this is to either define a new Arduino core for this chip variant, or to define a new SPI interface on pins that we do have. I want to program this chip as an ordinary Arduino Zero, so I defined a new SPI interface called SPI1 according to this Adafruit tutorial.

This required some modifications to certain libraries, described below.

RadioGPSTest

Simple example demonstrating the use of the Quectel L80 GPS module and HopeRF LoRa module. The files RHHardwareSPI1.cpp and RHHardwareSPI1.h extend the RadioHead library so that it can use the SPI1 interface defined in the sketch by this code:

#ifdef USE_SPI1
SPIClass SPI1(&sercom1, 12, 13, 11, SPI_PAD_0_SCK_1, SERCOM_RX_PAD_3);
RH_RF95 rf95(SS, DIO0, hardware_spi1);
#else

Dependencies:

LoRaWANTestABP

LoRaWAN node that uses the ABP method of connecting to a gateway. While considered less secure, this method connects much faster and is more reliable. See the project description here.

Dependencies:

  • arduino-lmic library - LoRaWAN stack for embedded devices. This fork of the library has been modified to support the SPI1 interface used by the SAMD21E.
  • CayenneLPP library - Cayenne low-power payload for efficient packing of GPS data into LoRaWAN packets
  • Adafruit GPS library - Arduino GPS library for NMEA sentence parsing

LoRaWANTestOTAA

LoRaWAN node that uses the over-the-air activation (OTAA) method of connecting to a gateway. See the project description here.

  • arduino-lmic library - LoRaWAN stack for embedded devices. This fork of the library has been modified to support the SPI1 interface used by the SAMD21E.
  • CayenneLPP library - Cayenne low-power payload for efficient packing of GPS data into LoRaWAN packets
  • Adafruit GPS library - Arduino GPS library for NMEA sentence parsing

samd21-lora-gps's People

Contributors

nootropicdesign avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.