Giter VIP home page Giter VIP logo

ttn-gps-tracker's Introduction

ttn-gps-tracker

An Arduino Sketch for an GPS-Tracker to work with The Things Network. This Sketch uses TinyGPSPlus https://github.com/mikalhart/TinyGPSPlus the Rocketscream Low-Power library https://github.com/rocketscream/Low-Power and the Arduino LMIC-Library by MCCI Catena https://github.com/mcci-catena/arduino-lmic The hardware used is an Afafruit Feather 32u4 Lora with the Ultimate GPS featherwing.

To fit into the memory of the 32U4 with the MCCI Catana LMIC, please add the follwoing lines to your lmic_project_config.h

  #define DISABLE_PING
  #define DISABLE_BEACONS

For the non OTAA version it is also possible to disable JOIN and free up more memory

  #define DISABLE_JOIN

Please keep in mind that you have to delete/uncomment these settings for other projects.

The folder ttn contais the payload decoder for TTN (V2) and TTS (V3).

The folder node-red contains a sample flow adding a geohash and storing data in InfluxDB.

Changes:

  • Added versions for OTAA and LowPower
  • Enable SBAS
  • Added support for TTN Mapper integration from within TTN console (HDOP, Altitude, Payload Decoder with correct syntax)
  • updated to use TinyGPSPlus

ttn-gps-tracker's People

Contributors

bjoerns-tb avatar rzahoransky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ttn-gps-tracker's Issues

Low-power for feather m0?

First of: Thank you very much for your code and tremendous work in your blog. Thanks to you, I got my Feather M0 with LoRa and GPS feather transmitting to ttn in less than a day.

Now my goal is to push this data to APRS.fi for mapping, but that is a different deal.
I tried to get the lowpower version to work, but I encountered two errors:

#include "LowPower.h"

Requires to install the low-power library from rocketscream, correct? I did this, but it won't compile:

ttn_gps_tracker_lowpower.ino:270:16: error: 'class LowPowerClass' has no member named 'powerDown'
       LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);

Furthermore:

ttn_gps_tracker_lowpower.ino:274:11: error: 'cli' was not declared in this scope
       cli();
           ^
ttn_gps_tracker_lowpower.ino:276:11: error: 'sei' was not declared in this scope
       sei();
           ^

I take it this may be due to incompatibility with the M0 chip?

I might have missed your blog entry explaining how you implemented low power with this library.
Cheers

undefined reference to `timer0_overflow_count'

Hello,

I am trying to compile this for the adafruit feather m0 RFM915 (SAMD21) and i am running into this error:
undefined reference to timer0_overflow_count'
from here:

  cli();
      timer0_overflow_count += 8 * 64 * clockCyclesPerMicrosecond();
      sei();

Also, for cli() and sei() i get these errors:

'cli' was not declared in this scope
'sei' was not declared in this scope

Any help would be highly appreciated taking into consideration that your project is what i need for my setup. Thanks

Sketch too big?

First; thanks for the guide at the ttn site and the code.

I just tried to copy your project with a brand-new feather 32u4 lora and a gps featherwing but while compiling it fails for 32u4. “Sketch too big”. According to Arduino IDE I use 29908 bytes / 104% (Max. 28672 bytes).

Common problem or just my setup?

again, thanks!

`Arduino: 1.8.10 (Windows 10), Board: "Adafruit Feather 32u4"

Sketch uses 29908 bytes (104%) of program storage space. Maximum is 28672 bytes.
Global variables use 2112 bytes of dynamic memory.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board Adafruit Feather 32u4.`

Sketch Size Error

I'm using the Adafruit Feather 32u4 Lora with the Ultimate GPS featherwing as described in the documentation but I'm getting the following error compiling to the Feather 32u4.

Sketch uses 30030 bytes (104%) of program storage space. Maximum is 28672 bytes.
Global variables use 1937 bytes of dynamic memory.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board Adafruit Feather 32u4.

Any suggestions?

ttgo t-beam lora issue

I'm getting strange gps readouts
{
"altitude": 167509.12,
"hdop": 0.5,
"latitude": -109.794,
"longitude": 454.1587
}

then some other, then other.. hm. I did everything right

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.