Skip to content

iamtio/trawm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRAWM - T Rust Air Wireless Monitoring

trawm is the firmware for Pimoroni Badger 2040 W for air quality monitoring using Airthings Wave Plus via Bluetooth LE. It doesn't require any additional settings, just install & run.

It's supposed to be energy efficient and work on AA/AAA batteries for months/years

License

trawm is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)

How it works

sequenceDiagram
    participant B as Badger 2040 W
    participant A as Airthings Wave Plus
    loop Every N minutes
        Note over B: Wake up by RTC alarm
        Note over B: BLE Scan
        opt Device found
            B->>A: BLE Connect
            A->>B: Get air quality values
            Note over B: Display values on E-Ink
        end
        Note over B: Set RTC alarm and deep sleep
    end
Loading

How it looks

trawm

How to flash the Badger 2040 W

  • Clone this repo
  • Install rust + cargo using rustup: https://rustup.rs
  • Install elf2uf2-rs: cargo install elf2uf2-rs
  • Connect Badger 2040 W
  • Switch it to the boot-loader mode (Hold reset + bootsel buttons together, the RPI-RP2 virtual disc should appear)
  • Run cargo build --release && cargo uf2-deploy in project dir