MicrochipTech / LoRaWAN-Weather-Station-Demo-using-SAMR34

"IoT Made Easy!" - Collecting sensor data from a weather station and sending it over LoRaWAN protocol using SAM R34
6 stars 2 forks source link
atsamr34 cayenne endpoint lora lorawan sensor-data weather-station

LoRaWAN® Weather Station example using SAM R34 Xplained Pro

Introduction

LoRa stands for Long Range. LoRaWAN stands for Long Range Wide Area Networks. LoRaWAN is the network on which LoRa operates. LoRaWAN is a media access control (MAC) layer protocol but mainly is a network layer protocol for managing communication between LPWAN gateways and end-node devices as a routing protocol, maintained by the LoRa Alliance. Some of the applications that can be accomplished using LoRa are Smart parking and vehicle management, Facilities and infrastructure management, Fire detection and management, Waste management, Home automation for IoT enables smart appliances, Smart farming and livestock management, Temperature and moisture monitoring, Water level sensors and irrigation control.

Advantages of using LoRaWAN

Features of demo example

Hardware

Hardware Setup (Important !!!)

  1. Remove the USB adapter from RS485 to USB adapter that comes with the weather station
  2. Solder A and B signals coming from Weather Station to A and B plated holes on the RS485 connector
  3. Short 3-5 V signal on RS485 break out board to B on RS485 break out board - Note: when TeraTerm Emulator is being used to see logs of sensor data, join status being displayed (during development) - step 4 is essential for standalone operation of device and can only be skipped when user wants to see logs of sensor data on a terminal emulator
  4. connect 3-5 V signal to VCC of the SAM R34 Xplained Pro for standalone operation - Note: when TeraTerm Emulator is not being used and device is ready for standalone operation (standalone operation)
  5. Connect "RTS" of the RS485 break out board to GND signal of SAM R34 Xplained Pro
  6. Connect "TX-O" of the RS485 break out board to PA05 of SAM R34 Xplained Pro For refernce picture of the RS485 board denoting signals

  1. Connect the SAM R34 Xplained Pro to PC via EDBG USB port
  2. Power On the Weather Station using 3 AA batteries

Software

LoRaWAN Gateway, End Device Registration and Application Integration

Steps

Weather Station Details

More details on protocol implementation for implementing the serial data etc can be requested to the manufacturer of the weather station Data received explanation: Total 34 data (hex): (example of received hex data as:24 0D 14 62 A4 38 22 05 00 1C 00 03 00 15 18 FF F9

Snapshot of Hardware setup