Skip to content

jonlamb-gh/stm32f4-rtic-renode

Repository files navigation

air-gradient-pro-rs

NOTE: this isn't a real thing yet, just a place for hacking around in renode

The real firmware lives here: https://github.com/jonlamb-gh/air-gradient-pro-rs

TODOs/NOTEs

NOTE: uses my fork of renode with custom peripherals: https://github.com/renode/renode-infrastructure/compare/master...jonlamb-gh:renode-infrastructure:add-sensors

renode-run is the default runner:

cargo install renode-run
sudo ./renode/setup-network.sh

export RENODE_RUN_RENODE_BIN=~/repos/forks/renode/renode

cargo run

# also works
cargo +nightly test

Robot framework driver:

renode-test tests.robot

Example responds with "hello":

echo "hi" | socat -t 2 - udp:192.0.2.29:12345

https://www.st.com/en/evaluation-tools/nucleo-f429zi.html

https://os.mbed.com/platforms/ST-Nucleo-F429ZI/

USART3 is virtual comm, D8-tx, D9-rx

https://www.airgradient.com/open-airgradient/instructions/diy-pro-v37/ https://www.airgradient.com/images/diy/schematicpro37.png https://github.com/airgradienthq/arduino

128x64 display U8G2 SH1106 https://github.com/olikraus/u8g2 https://crates.io/crates/sh1106 https://www.velleman.eu/downloads/29/infosheets/sh1106_datasheet.pdf

SHT31 https://crates.io/crates/sht3x https://www.mouser.com/datasheet/2/682/Sensirion_Humidity_Sensors_SHT3x_Datasheet_digital-971521.pdf https://github.com/renode/renode-infrastructure/blob/master/src/Emulator/Peripherals/Peripherals/I2C/SHT21.cs

senseAir S8 LP CO2 sensor serial modbus https://senseair.com/products/size-counts/s8-lp/ https://rmtplusstoragesenseair.blob.core.windows.net/docs/publicerat/PSP126.pdf https://rmtplusstoragesenseair.blob.core.windows.net/docs/Dev/publicerat/TDE2067.pdf https://github.com/alttch/rmodbus https://github.com/slowtec/modbus-core

PMS5003 https://crates.io/crates/pms-7003 https://crates.io/crates/pms700x

SGP41 TVOC https://crates.io/crates/sgp41 uses https://crates.io/crates/sensirion-i2c https://sensirion.com/products/catalog/SGP41/ https://www.mouser.com/datasheet/2/682/Sensirion_Gas_Sensors_Datasheet_SGP41-2604356.pdf

Peripheral Support

TODO - add table here with hw and renode support columns

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published