2025-02-22 01:05:38 +00:00
2025-02-19 15:06:48 +00:00
2025-03-06 17:12:44 +00:00
2025-02-22 01:05:38 +00:00
2025-02-28 19:28:57 +00:00
2025-03-06 17:12:44 +00:00
2025-02-19 15:21:19 +00:00
2025-02-28 19:28:57 +00:00
2025-03-13 17:41:37 +00:00
2025-02-28 19:28:57 +00:00

Pico Environment Sensor

This firmware, written in Rust using embassy-rs, is designed for the Raspberry Pi Pico 2 W platform using the RP2350 microcontroller. Its application is an environment-sensing device which can measure CO2 concentration in the atmosphere, ambient temperature and humidity.

The effects of increased CO2 concentration on cognitive function become increasingly pronounced at CO2 concentrations exceeding 1000 ppm. There's a fantastic YouTube video by Kurtis Baute and Tom Scott which you can watch for a short summary. Open your window right now!

Building

Prerequisites

Environment configuration

This build system assumes the environment variables: PICO_BOARD, PICO_PLATFORM & PICO_SDK_PATH are set. picotool should also be available in the PATH.

The env-vars.sh script sets these values to pico2_w, rp2350-arm-s and my personal Pico SDK path, respectively. The environment variable definitions in this file can be set with source ./scripts/env-vars.sh.

Compiling & running

  • cargo build (or cargo build --release)

If you wish to run the binary on your Pico (connected in BOOTSEL mode):

  • cargo run (or cargo run --release)
Description
Firmware for RPi Pico 2 W environment sensing device (CO2, temperature, humidity, etc.)
Readme MIT 74 KiB
Languages
Rust 99.3%
Shell 0.7%