This tutorial provides you an example of using Cosmic LoRa Aurora to send data to The Things Network.
- 1 pc Cosmic LoRa Aurora
- 1 pc USB Type C Cable for Aurora V2 or 1x Micro USB Type B Cable for Aurora V1
- 1 pc LoRaWAN Gateway RAK 7268
- Arduino IDE
- Having an The Things Network account
- Connect the LoRaWAN Gateway RAK 7268 to the Things Network, you can follow this tutorial.
- Install CH340 Driver
- Install LoRaWAN Library
- Download Library
- Unzip the Library into one Folder
- Copy the one folder into your Arduino -> libraries
- Confirm whether the library is properly installed by opening the Arduino IDE. Check if File -> Examples -> Antares LoRaWAN is exist.
make sure you use the appropiate code. please double check your cosmic board version.
- Login to your TTN account.
- Create an Application in the TTN.
- Register End Device. This step is to register your LoRa Aurora to TTN.
- Plug the Cosmic LoRa Aurora boards to your Laptop.
- COM Port should be activated. (If not activated? Install CH340 driver).
- Setup in Arduino IDE : Pick the appropriate board : Tools → Board → ESP32 (If not listed? Install ESP32 Board)
- Load LoRaWAN code to Arduino IDE.
- Modify the code using your registered TTN parameters of Device Address, Application Session Key & Network Session Key.
- Click Verify then Click Upload to Board. (Error compile? Make sure do the Prerequisites)
- Open Serial Monitor of Arduino IDE. Set the Baud Rate as stated in Serial.begin of the code. Some debug info should be appeared stated it transmits some data to TTN.
- Check your TTN Console. Some data must be shown. YEEAAYY Congrattzz!! You are successfully sending LoRaWAN to TTN.