Giter Site home page Giter Site logo

samr34-lorawan-smt50's Introduction

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...

samr34-lorawan-smt50's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.