Part 3 of the series. In part one we explained the overall architecture, in part two we configured the gateway. Today we are explaining how to set up a device.
Here you can find the guide we are following to set up the solution.
Arduino IDE
Install Arduino IDE and set up Additional Board:
https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_index.json https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless.com_rui_index.json


Add board in board manager:


Clone this code to a local directory and open iit in Arduino IDE:

Click on the links in he include section in order to install needed libraries:

After libraries setup select the board:

Verify that the program compiles:

SETUP THE DEVICE
Connect sensor modules to the board:


DON’T FORGET TO CONNECT THE ANTENNAS BEFORE POWERING THE DDEVICE!!!!

Put the device in a box if you will and connect to your laptop:

Go to TTN console, open the device you set up in the last step of the part two post and copy the hexadecimal codes for the activation information via OTA (over the air):

Put the ID’s in the code editor:

Select the port in whicch the board is pluggedd in:

Upload the code to the device:

If everything goes well you’ll have the device prrogrammed already:

Open the serial monitor:

You should start watching data in the serial monitor:

Now goto TTN console, open Application and click on Live Data, you should start watching device data:

That’s all for the 3rd part, in the next post we’ll configure an integration to send data to an Oracle Cloud streaming topic vian MQTT.
2 Comments