cyclops1982 / RAKTracker

Example code that get's a distance measure and sends it via lora. First implementation. Very basic.
0 stars 0 forks source link

RAK Tracker Thing

This is a simple project which aims to implement a GPS tracker. There's other examples out there and this is just /my/ version of it with some specifics that i needed.

Device

The RAK WisBlock modules used:

We've experimented with the RAK11310, which is the Raspberry PI Pico/RP2040. You might find code related to that. We need to make this device 'low-power' or 'deep-sleep'. So it means we can't do that currently with the RP2040. We're waiting for support of low-power mode in the Arduino BSP.

Goals

The goal of this tracker is to be able to:

Dev Environment

We're using VSCode and have added the .vscode folder as well to make it easy. Also note that the git repo has submodules, so you'll need to do a git submodule init && git submodule update after the clone.

Error notes

The thing will blink a number of times when it fails. The blinks indicate what's wrong:

2 = Initialization of config failed
3 = GPS Initialization failed
4 = powersave failed
5 = Motion sensor failure

BlinkStatus

In some cases, we blink a status code. These are the various status blinks:

2 = Lora Join failed
3 = Lora send failed
4 = GPS fix timeout