4
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

UIFlow(M5Stack)でSCD30(CO2センサー)を使う

Last updated at Posted at 2021-05-23

UI Flowで使えるSCD30(CO2センサ)のカスタムブロックを作りました。
M5Stackの標準Port(PortA)で使えます。 Grove SCD30や水田かなめさんのCO2モニターキット( https://www.switch-science.com/catalog/6923/ )でも使えると思います。
ダウンロード先
https://nwws.jpn.org/M5StackUIFlow/UIFLOW_SCD30_R3.zip

導入方法

1.ダウンロードしたファイルを展開します。
2.CUSTOMをクリックし、Open *.m5b ファイルを開き、SCD30_I2C.m5bを開きます。
image.png
3.CUSTOMにSCD30_I2Cが増えます。
image.png

サンプルファイル

展開したファイルにサンプルがあるので参考にしてください。CO2Monitor.m5f
image.png

説明

Measure & Readの返却値
0 --- 正常
-1 ---- データが無い
-2 ---- 通信エラー(I2CBUSエラー)
-11,-12,-13 ---- 通信エラー(CRCが合わない)

4
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?