Skip to content

LoRa Asset Tracker TX Guide

Mustafa Tan edited this page Oct 9, 2021 · 3 revisions

If you don't (or can't) want to use LoRaWAN networks, you can use your device as a LoRa Tracker, but you need at least two device. You should upload "lora-asset-tracker-tx.ino" sketch file to one of your devices (it'll work as transmitter) and upload "lora-asset-tracker-rx.ino" to other device (it'll work as receiver)

image

But before uploading "lora-asset-tracker-tx.ino" sketch file to your device, you should check following parameters and update if necessary.

For example if you live in US, you might want to change:

  • Tracker is Airborne? (default is false)
  • Measurement System (default is Metric)
  • LoRa Frequency (default is for Europe)
  • LoRa Output Power (default is for Europe)

Also if you change any parameters regarding LoRa (frequency, bandwidth, spreading factor, etc.) in this "lora-asset-tracker-tx.ino" sketch file, you should change these parameters in "lora-asset-tracker-rx.ino" sketch file too. Otherwise they can not communicate.

image

If you connect your receiver module to your computer with as USB cable, you can display received data on Arduino Serial Console. Also if you attach an OLED display to transmitter (TX) or receiver (RX), you can display data on your both devices.

image

This sketch file is optimized for Adafruit_SSD1306 compatible 0.96 (128x64) Inch OLED Display Modules. So if you attach another Arduino compatible displays, you should install their libraries and modify the code accordingly.

Also check out the I2C pin order of the 0.96" Oled Display Modules before purchasing. Pin should be in VCC, GND, SCL and SDA order as follows. Should no start with GND.

image