# Sps30 Scd41 Air Monitor

CO2, temperature, humidity and particulate monitor on a TTGO T5 e-paper board, with optional ThingSpeak publishing

2.13 寸墨水屏上并排七个数，用来看该不该开窗：SCD41 走 I²C 给出 CO2、温度和湿度，SPS30 走 UART1（115200）给出 PM1、PM2.5、PM10 和平均粒径。

- id: ashbmstu-sps30-scd41-air-monitor
- author: ashbmstu
- repository: https://github.com/ashbmstu/sps30-scd41-air-monitor
- license: MIT
- shape: epaper
- scenes: tools
- boards: TTGO T5
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/ashbmstu-sps30-scd41-air-monitor/
- html_zh: https://esp32gallery.com/zh/projects/ashbmstu-sps30-scd41-air-monitor/
- json: https://esp32gallery.com/data/catalog/projects/ashbmstu-sps30-scd41-air-monitor.json

## Hardware

Supported hardware: TTGO T5. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：TTGO T5。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
Seven numbers on a 2.13-inch e-paper panel tell you when to open a window: CO2, temperature and humidity from a Sensirion SCD41 over I²C, then PM1, PM2.5, PM10 and average particle size from an SPS30 on UART1 at 115200 baud. Both sensors are sampled once a second and averaged; every thirty seconds the panel redraws, which is why the figure is a mean rather than the latest sample. The LILYGO TTGO T5 V2.3 carries the display, button and charger, so only eight wires are needed. The firmware is MicroPython, copied onto the board as a src folder. Because the SPS30 needs 5 V and the board supplies that only over USB, the particulate rows read SPS OFF (Battery) when unplugged. A ThingSpeak upload is optional and off until a config.py enables it.
```

## 中文

```
2.13 寸墨水屏上并排七个数，用来看该不该开窗：SCD41 走 I²C 给出 CO2、温度和湿度，SPS30 走 UART1（115200）给出 PM1、PM2.5、PM10 和平均粒径。两个传感器每秒采样一次，攒三十秒取平均才重画一屏，因为墨水屏刷新慢、还会闪，花在稳定值上更划算。LILYGO TTGO T5 V2.3 自带屏幕、按键和充电电路，所以总共只接了八根线。固件是 MicroPython，把 src 文件夹整个拷进板子即可。要注意 SPS30 吃 5 V，而板子只有插着 USB 才有 5 V，拔线后三行颗粒物数据会变成 SPS OFF (Battery)，CO2 和温湿度照常。想存曲线可以推到 ThingSpeak，但没有 config.py 时固件根本不联网。
```
