Category Archives: Arduiono

First LoRaWAN message

I now finally got the first LoRa message send from my node through my gateway and visible at The Things Network.

My node device is the Adafruit Feather 32u4. It allows software switching between 915 and 868 MHz. The pinout of the Adafruit Feather M0 version is different and more common in the TTN forum discussions.

However, here is a summary of my config.

Arduino source is the tnn-abp (Activation-by-personalisation) created by Matthijs Kooijman (credits :-).

Add this:
#define CFG_eu868 1

Change this:
const lmic_inmap lmic_pins = {
.nss = 8,
.rst = 4,
.dio = {7, 6, LMIC_UNUSED_PIN},

and of cource you have to update network and application session keys and the end-device address based on the application created at the TTN console.

And a wire like this:


ToF sensor test

This is a test of the VL-6180X with a range of 0-100 mm.

Here I have it mounted on an Arduino Uno board.

Aruino – VL
5V – VIN
Gnd – Gnd
A5 – SCL
A4 – SDA

Time of flight sensor connected to an Arduino Uno

Time of flight sensor connected to an Arduino Uno