# HB-UNI-Sen-CO2
### CO2 Sensor for Homematic with STM32 or RP2040 pico
Inspired by the excellent work of [MHSteve](https://github.com/HMSteve/HB-UNI-Sen-CO2/blob/main/README.md) I enhanced his solution by the following features:
- Use of STM32 boards (Blue Pill or Maple Mini) or RP2040 pico board
- Compatibility with standard sensor casing (86x86 mm)
- Use of Winsen MH-Z19 CO2 Sensor instead of SCD30 as option
- Use of touch pad as config button
- Use of RGB LED for traffic light instead of red/green LED
Due to the missing battery support of the STM32 and RP2040 boards and the space restrictions I left out the rechargeable batteries which seems to be bearable for me, since a power supply is needed anyway.
Here you can see some photos how the assembled boards look like
![Top view of assembled PCB with Maple Mini](https://github.com/bestfan/HB-UNI-Sen-CO2-STM32/blob/main/Pictures/maplemini_topview.jpg)
![Perspective view of assembled PCB with Maple Mini](https://github.com/bestfan/HB-UNI-Sen-CO2-STM32/blob/main/Pictures/maplemini_perspective.jpg)
![Perspective view of assembled PCB with Blue Pill](https://github.com/bestfan/HB-UNI-Sen-CO2-STM32/blob/main/Pictures/bluepill_perspective.jpg)
And here how the sensor casing looks at the end
![Perspective view of assembled PCB with Blue Pill](https://github.com/bestfan/HB-UNI-Sen-CO2-STM32/blob/main/Pictures/casing_perspective.jpg)
## Software
### CCU Addon
Please, use the [Addon](https://github.com/HMSteve/SG-HB-Devices-Addon/raw/master/CCU_RM/sg-hb-devices-addon.tgz) of the original project. As stated there, the CO2 sensor ist supported from the version 1.23 onward. Due to the missing battery the voltage values shown in the CCU should be ignored.
### Sketch
In comparison to the original work, where the following libraries have been required
- AskSinPP
- EnableInterrupt
- LowPower
- SparkFun SCD30 Arduino Library
- Adafruit BME280 Library
- GxEPD (replaced by GxEPD2)
- Adafruit GFX
some additional libraries have to be applied
- MH-Z19, version 1.5.4 or newer
- bluepill_ws2812 (STM32)
- Adafruit NeoPixel (RP2040)
- GxEPD2 (STM32 and RP2040)
- OneWire (for use DS18B20 on RP2040 only), use of main version necessary.
If you decide to use a STM32 Blue Pill microcontroller, please, make sure that the STM32 bootloader is installed. It is possible to use the standard serial port to flash the software (or the bootloader), however the display won't work, because some of the connections are attached to debug pins.
## Credits
Special thanks to [MHSteve](https://github.com/HMSteve/HB-UNI-Sen-CO2/blob/main/README.md) for his high sophisticated work on the HB-UNI-Sen-CO2 Sensor. I also have to thank [der-pw](https://github.com/der-pw/hm_stm32_2ch_dimmer) for the very helpful STM32 example.
## Disclaimer
The usage of the published software and information is at your own risk and without any warranty.
## License
**Creative Commons BY-NC-SA**<br>
Give Credit, NonCommercial, ShareAlike
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-nc-sa.eu.svg" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
没有合适的资源?快使用搜索试试~ 我知道了~
基于STM32或RP2040的Asksinpp CO2传感器
共44个文件
h:17个
png:6个
jpg:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 94 浏览量
2024-06-06
19:59:58
上传
评论
收藏 2MB ZIP 举报
温馨提示
用于Homematic的CO2传感器,采用STM32或RP2040 pico 受到MHSteve出色工作的启发,我通过以下功能增强了他的解决方案: 使用 STM32 板(Blue Pill 或 Maple Mini)或 RP2040 微微板 与标准传感器外壳 (86x86 mm) 兼容 可选使用 Winsen MH-Z19 CO2 传感器代替 SCD30 使用触摸板作为配置按钮 使用RGB LED代替红绿灯 由于 STM32 和 RP2040 板缺少电池支持以及空间限制,我省略了可充电电池,这对我来说似乎是可以忍受的,因为无论如何都需要电源。
资源推荐
资源详情
资源评论
收起资源包目录
HB-UNI-Sen-CO2-main.zip (44个子文件)
HB-UNI-Sen-CO2-main
HB-UNI-Sen-CO2_STM32
RgbLed.h 1KB
UserButton.h 3KB
sensors
tmBattery.h 8KB
Sens_SCD30.h 4KB
Sens_BME280.h 3KB
Sens_MHZ19.h 3KB
DuoLed.h 683B
EPDisplay.h 8KB
HB-UNI-Sen-CO2_STM32.ino 20KB
HB-UNI-Sen-CO2_RP2040
RgbLed.h 936B
UserButton.h 3KB
sensors
tmBattery.h 8KB
Sens_SCD30.h 4KB
Sens_DS18X20.h 4KB
Sens_BME280.h 3KB
Sens_MHZ19.h 3KB
DuoLed.h 683B
HB-UNI-Sen-CO2_RP2040.ino 20KB
EPDisplay.h 8KB
Pictures
PCB_BluePill_back.png 35KB
casing_perspective.jpg 272KB
PCB_RP2040_front.png 135KB
PCB_MapleMini_back.png 39KB
PCB_MapleMini_front.png 49KB
maplemini_topview.jpg 355KB
PCB_BluePill_front.png 42KB
PCB_RP2040_back.png 122KB
maplemini_perspective.jpg 357KB
bluepill_perspective.jpg 381KB
PCB
STM32_BluePill
Gerber
CO2_Sensor_STM32_BluePill.zip 48KB
.gitkeep 1B
CO2_Sensor_STM32_BluePill.kicad_pcb 136KB
CO2_Sensor_STM32_BluePill.pro 4KB
RP2040_pico
Gerber
CO2_Sensor_RP2040_pico.zip 49KB
CO2_Sensor_RP2040_pico.kicad_pro 5KB
CO2_Sensor_RP2040_pico.kicad_pcb 192KB
CO2_Sensor_RP2040_pico.kicad_prl 1KB
test.txt 1B
test.txt 1B
STM32_MapleMini
CO2_Sensor_STM32_MapleMini.kicad_pcb 135KB
Gerber
CO2_Sensor_STM32_MapleMini.zip 49KB
CO2_Sensor_STM32_MapleMini.pro 4KB
Stueckliste.xlsx 7KB
README.md 3KB
共 44 条
- 1
资源评论
hakesashou
- 粉丝: 6832
- 资源: 1684
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功