二酸化炭素濃度(CO2)センサー VSON WP6003(安心宝)のデータをBLEで読み出す(3) – ESP32(M5atom)編

電子工作・ガジェット

換気チェックのために購入した二酸化炭素濃度(CO2)センサー VSON WP6003(安心宝)のデータをESP32(M5atom lite)から読めるようにしました。

既に Macbook(+Python3)の環境では読み込めているのですが、常用するには別の手段が必要です。今回は、手元にあったM5atomを使ってみました。BLEが読める Raspberry Pi があれば、Pythonで読めるので楽なのですが、BLE使えるPiが手元になかった。

使っている機器の説明や、いままでに解析した部分については前回記事を参照ください。


作ったプログラム

データ読み出し部分を githubのレポジトリに置いておきます。 うまく接続できなかったり接続が切れてしまうことがあるので、対処が必要ですがそこは省略。

常用するには接続状態をLEDで表示したり、データを別サーバーに投げたりする処理も必要だと思います。


リンク

コメント

  1. Andi Luma より:

    Hi , someone else added a piece of software, based on you information .
    https://saso5.github.io/WP6003-air-box
    Are you shure about the measurement of CO2 ?? , from several informations in the internet , the average value is about 410 – outdoor . In your information it is about 540 , in the product picture it is 547 , my sensor shows (outdoor) between 535.. 550 , Do you have more information about the calibration ?, Are you able to cross check the value with a different type of sensor ?

    • ず@沖縄 より:

      Hi, Andi. Thank you for reading my blog.

      My data was measured indoors. The CO2 values of the other products are similar, so I don’t think there will be a big difference (1-2 significant digits).

      I use the CO2 sensor for ventilation for anti SARS-COV-2, so I don’t really care about the exact value.

      The method of calibrating the CO2 concentration is no idea. saso5 has some suggestions at https://github.com/zu2/wp6003/issues

  2. Sašo より:

    Hi zu2,
    tnx for all the hard work. I also bouht this sensor and will try to integrate it with ESPHome and send the data to Home Assistant.

    • ず@沖縄 より:

      Hi, Sašo. Thanks for your comment.

      That’s good news. I used munin for graphize, but some people use MQTT. What do you work with?

      Thank you for reading the blog.

タイトルとURLをコピーしました