Skip to content

Riot OS LoraWan Low Power Bastwan soil moisture Sensor project

License

Notifications You must be signed in to change notification settings

h-filzer/samr34-lorawan-smt50

Repository files navigation

RIOT OS on BastWan

Samll example to demonstrate running RIOT OS on a BastWan Board. The example includes:

  • Usage of GPIO
  • Usage of ADC
  • Sleep Mode
  • LoraWan, joining to Chirpstack and sending Messages

UF2 bootloader was removed so you need to connect UART to be able to use Serial communication. Will retest with UF2 later and update RIOT board definition to support flashing and serial over UF2.

Regarding LowPower the Device consumes about 115uA in sleep mode with RAM retention which is quite high but i was not able to measure the mcu power consumption alone so the value is for the whole board (LDO, LiPo Charger, Vbatt voltage devider, Crypto, MCU ..).

Untested:

  • LoraWan receive
  • LoraWan adr
  • I2C
  • Crypto Chip
  • ...

Installing

A PR against RIOT OS to support the BastWan board is in progress. For now you can use the bastwan Branch.

Ressources

My simple sensor setup is using a smt50 for measuring soil humidity and soil temperature. See schematic folder.

rak4260 schematic

samr datasheet

antenna switch

bastwan schematic

bc546

Erasing flash

While developing and experimenting with low lower and sleep modes the device did not wake up again which blocks reflashing.

Luckily RIOT OS comes with edbg tool so someone can erase the flash by running

for _ in {1..1000}; do ./edbg/edbg -b -e -t samr34; done

and pressing the reset button quite often. It will eventually erase the chip. Dirty but working...

About

Riot OS LoraWan Low Power Bastwan soil moisture Sensor project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published