This intro provides all the information necessary to enable your self assembled node reading sensory data, sending it to The Things Network via an existing gateway and making sense of the data you'll see in the TTN console.
- Arduino Uno
- Dragino LoRa Shield + Dragino LoRa Bee
- USB cable
- Updated IDE (Arduino, Atom, ..)
- basic understanding of what Arduino is and does
- Sensors, jumpers and optional breadboard (in this case we're using a proximity sensor, 9v battery)
- Computer running Windows 7 or higher, Mac OS X or Linux
- A running TTN Gateway with full online access to its console
In order to use the sendingecho.ino you'll need the following libraries:
#include <TheThingsNetwork.h> link to ttn lib (communication with ttn)
#include <NewPing.h> link to NewPing lib (using the ultrasound sensor)
#include <lmic.h> link to lmic lib (using LoRaWAN radio communication)
#include <hal/hal.h> link to HAL lib (extends the arduino IDE in order to interfacing with additional hardware)
> On Windows, you might need to [install drivers](https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc2).
It's important to make sure that our setup is actually reading sensory data. For testing purposes you can use the NewPing Library example called NewPingExample and watch what happens in the monitor. Make sure the pin connections match the Example.
follow the next steps in Creating a TTN Node. Please note the following custom steps to make this use cases work.
In order to make sense of the data we recommend changing the Payload Function in ""Decoding" to:
function Decoder(bytes) {
var decodedValue = (bytes[0]<<8) | bytes[1];
return {
value: decodedValue,
};
}
This guide will walk you through setting up a Node.js project that listens to device activations and messages and responds to every 3rd message.
Link to our Node.js backend implementation
Take the data and go crazy! Have a look at our first frontend prototype
We won't stop here. For us this prototype means there is even more cool work ahead of us. We will give talks, host workshops and develop prototypes of real life applications, in order to start discussions of meaning and possibilities of the LoRaWAN Technology. We believe this little boost in the IoT technology sector hides a great potential that can be used by a wide range of people and businesses.
The MIT License
Copyright 2017 Technologiestiftung Berlin
This project is licensed under the MIT License
Matthijs Kooijman (Providing the LMIC Library) https://github.com/matthijskooijman