/forest-lora

Forest-wide LoRa Sensor Network

Primary LanguageJavaScriptMIT LicenseMIT

forest-lora

A little sensor network for the forest, built with LoRA radios.

Hardware

Clients

Gateway

Controller

  • Tessel 2, connected to gateway over SDA/SCL — Tessel treats the attached gateway as an I2C slave.

Firmware and Software

Firmware

Arduino-compatible firmware is run by the (M0) Clients and the (Uno) Gateway. The clients are each flashed with client.ino and the gateway with server.ino. A shared header file is used for constants.

  • The arduino/libraries/LyzaLORA folder needs to be put in your Arduino libraries folder to be seen by the Arduino IDE

Sofware

To run the front end on a provisioned Tessel 2, t2 run index.js

Note: npm install is not necessary to run the software on Tessel (it'll do that for you).

Note: To run locally, set LOCAL_DEBUG true in config.js — that will keep the modules from trying to include tessel, which is only available on-board the Tessel itself.

Webserver will run on port 3000 (console will provide Tessel's IP if you're running on a Tessel).

Web assets are in app. Viewing index.html will show charted temperature and pressure data from the clients.