Skip to content

The device uses LoRaWAN to uplink temperature, humidity and precipitation sensor data through calculation.

Notifications You must be signed in to change notification settings

XuanMinh201/RainGauge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RainGauge

The device uses LoRaWAN to uplink temperature, humidity and precipitation sensor data through calculation. Data will be sent every 30 ninutes, if there is rain, the sending time will be 5 minutes Support sensors:

Getting Started

Hardware

  • USB to UART Converter
  • RainGauge board

Sortware

Additional Libraries

  • Adafruit_SHTC3.h

Installation

Hardware connection:

image

On the RainGauge board

image

In STM32CubeProgammer:

  • Hold the B_RAK (boot) button and press R_RAK (reset) button and release the B_RAK (boot) button to enter bootmode.
  • Select UART, Baudrate 115200 and press Connect.
  • Open RAK3172-E_latest_final.hex
  • Select the address as in following image if needed
  • Press Download to upload firmwave
  • After download success, press R_RAK (reset) button to exit the bootmode

In Arduino IDE:

https://raw.githubusercontent.com/RAKWireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless.com_rui_index.json
  • Go to Tool -> Board -> Boards Manager, search & install RAKwireless RUI STM32 Boards
  • Open ATC_Command_RF210.ino sketch, seletc WisDou RAK3172-T Board from Tool menu
  • Plug in your board and upload
  • Select Tool -> Board -> RAKwireless RUI STM32 Modules -> WisDuo RAK3172 Evaluation Board

The Things Network

  • Depends on your country region and how you set up your gateway. Please create the correct application with it to be able to receive data
  • In Danang, Vietnam we use the AS923_2 band and eu1.cloud.thethings.network
  • You need to create application for RainGauge Board

image

  • Select end device -> Register end device to create your device

image

image

  • After creating the device, now you just need to copy Device address, NwkSKey, AppSKey and paste it into your code.

image

  • The data sent will be in the default format

image

  • You can change the format of the data to be able to observe changes

image

image

image

Energy consumption

  • The average energy consumption when the device is operating (sending data to the server) is 8.36mA for ~15s.

  • image

  • When the device is inactive, it will be in sleep mode. Power consumption is 6.81 uA

image

If you have any question or discussion points, please let me know via the Issues & Disscussions

About

The device uses LoRaWAN to uplink temperature, humidity and precipitation sensor data through calculation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages