Software instructions.

Learn to create software for your own sensor board and start collecting sensor information

Setting up the cloud platform

1. Create a "The Things Network" account

Go to thethingsnetwork.org and create your own account.

2. Create your first application

Navigate to the console/applications page and create a new application. Choose your own application ID (name of your project) and write a short description.

3. Register your device in the application

In your new application, go to "Devices" and register a new device. Choose frequency plan Europe 863-870 MHz (SF9 for RX2 - recommended), LoRaWAN version MAC V1.0.3 and regional parameters version PHY V1.0.3 REV A. Generate a new devEUI, fill the JoinEUI with zeros and generate an AppKey. You can leave the end device ID as is.

4. Remember your TTN keys

In your newly created device, three key values will be visible. Remember these keys, they'll be important later on.

5. Adjust the payload format to LPP

To understand what your messages mean, the cloud needs to know what format we follow. Adjust the payload format in your application to "Cayenne LPP".

Setting up the IoT node

1. Install and/or open the Arduino IDE software

Download the latest Arduino IDE and open Arduino on your computer. When downloading Arduino, you'll be prompted to donate. This is not a required.

2. Add additional board manager URL in preferences

Go to File > Preferences. Add the following URL in the "Additional Board Managers URLs" field.

3. Install Dramco Uno Board Support

Go to Tools > Board > Board Manager. Search for "Dramco" and look for the latest Dramco Uno version. Click "Install".

4. Select the Dramco Uno board

Go to Tools > Board > Dramco Uno. Select the "Dramco Uno v3v2v1" board. Select the appropriate COM port as well (often labeled with USB).

5. Open the first IoT example for the Dramco Uno

Go to Files > Examples > Dramco-UNO. Open the SendAllSensors sketch.

6. Copy/paste the Things Network keys in your sketch

Copy and paste the Things Network keys from your device page in the sketch. You can use the clipboard button to copy to the clipboard. Make sure the syntax of your sketch remains valid.

7. Upload to your device

If you have not already done so, select the appropiate serial port (Tools > Port). Press upload to write the example code to your connected device!

8. Check if data is coming in

If you go to the "Live Data" section of your the Things Network application, you should see data coming in every minute!