hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

TOP » UsersWiki » nao-pon » blog » 2020-12-15 の変更点
1: 2020-12-15 (火) 14:47:12 nao-pon ソース
With "attach" plugin. (Created empty)
現: 2020-12-15 (火) 14:52:11 nao-pon ソース
Line 1: Line 1:
 +#navi
 +RIGHT:&rsslink(../);
 +#boxdate
 +* KS0457 keyestudio CCS811 Carbon Dioxide Air Quality Sensor [#e884041e]
 +RIGHT:&tag(ホームオートメーション,ESP8266,センサー,メモ);
 +
 +** Description [#ob44522e]
 +Keyestudio CCS811 carbon dioxide, air quality sensor mainly uses the CCS811 chip. It is an ultra-low-power miniature digital gas sensor that can detect a wide range of volatile organic compounds (TVOCs), including equivalent carbon dioxide (eCO2) and metal oxide (MOX) levels. Equivalent carbon dioxide (eCO2) is measured in the range of 400 to 29206 ppm (parts per million), and various volatile organic compounds (TVOC) ranges from 0 to 32768ppb(parts per billion). 3mm diameter position hole on sensor contributes to fix on the other device.
 +
 +Keyestudio CCS811 二酸化炭素、大気質センサーは主にCCS811チップを使用します。 これは、二酸化炭素相当値(eCO2)および金属酸化物(MOX)レベルを含む、広範囲の揮発性有機化合物(TVOC)を検出できる超低電力の小型デジタルガスセンサーです。 二酸化炭素相当値(eCO2)は400〜29206 ppm(parts per million)の範囲で測定され、さまざまな揮発性有機化合物(TVOC)は0〜32768ppb(parts per Billion)の範囲です。 センサーの直径3mmの取り付け穴は、他のデバイスへの固定に利用できます。
 +
 +** echnical Parameters [#kf9039e4]
 +- Working voltage: DC 5V
 +- Working current: 30mA
 +- Maximum power: 60mW
 +- eCO2 measurement range: 400-29206 ppm
 +- TVOC measurement range: 0 to 32768ppb
 +- Interface: 7pin (2.54mm pitch)
 +- Positioning hole diameter: 3mm
 +- Dimensions: 30*20mm
 +- Environmental attributes: ROHS
 +
 +
 +-動作電圧:DC 5V
 +-動作電流:30mA
 +-最大電力:60mW
 +-eCO2測定範囲:400-29206 ppm
 +-TVOC測定範囲:0〜32768ppb
 +-インターフェース:7ピン(2.54mmピッチ)
 +-位置決め穴径:3mm
 +-寸法:30 * 20mm
 +-環境属性:ROHS
 +
 +** PINOUTS [#aea02acc]
 +
 +|GND|ground|
 +|VCC|Input power|
 +|SDA|I2C data pin|
 +|SCL|I2C clock pin|
 +|RST|Reset pin: connect to ground, sensor will automatically reset.|
 +|WAKE|WAKE pin should connect to ground to communicate with sensor conveniently.&br;WAKEピンは、センサーと簡単に通信できるようにアースに接続する必要があります。|
 +|INT|This is the interrupt output pin that detects when a new reading is read or the reading becomes too high or too low.&br;これは、新しい読み取り値が読み取られたとき、または読み取り値が高すぎたり低すぎたりしたときに検出する割り込み出力ピンです。|
 +
 +** Connection [#e3305bc1]
 +
 +&ref(800px-0457片3.png,mw:480,mh:360);
 +
 +** Test Code [#t5ce6402]
 +
 +NOTE:
 ++ Place the corresponding file in the libraries folder of Arduino IDE before uploading the code.
 ++ We recommend to use arduino 1.8.7 version , other version may be not compatible.
 +
 +#code(){{
 +#include <CCS811.h>
 +
 +/*
 + * IIC address default 0x5A, the address becomes 0x5B if the ADDR_SEL is soldered.
 + */
 +//CCS811 sensor(&Wire, /*IIC_ADDRESS=*/0x5A);
 +CCS811 sensor;
 +
 +void setup(void)
 +{
 +   Serial.begin(115200);
 +   /*Wait for the chip to be initialized completely, and then exit*/
 +   while(sensor.begin() != 0){
 +       Serial.println("failed to init chip, please check if the chip connection is fine");
 +       delay(1000);
 +   }
 +   /**
 +     * @brief Set measurement cycle
 +     * @param cycle:in typedef enum{
 +     *                  eClosed,      //Idle (Measurements are disabled in this mode)
 +     *                  eCycle_1s,    //Constant power mode, IAQ measurement every second
 +     *                  eCycle_10s,  //Pulse heating mode IAQ measurement every 10 seconds
 +     *                  eCycle_60s,  //Low power pulse heating mode IAQ measurement every 60 seconds
 +     *                  eCycle_250ms  //Constant power mode, sensor measurement every 250ms
 +     *                  }eCycle_t;
 +     */
 +   sensor.setMeasCycle(sensor.eCycle_250ms);
 +}
 +void loop() {
 +  delay(1000);
 +   if(sensor.checkDataReady() == true){
 +       Serial.print("CO2: ");
 +       Serial.print(sensor.getCO2PPM());
 +       Serial.print("ppm, TVOC: ");
 +       Serial.print(sensor.getTVOCPPB());
 +       Serial.println("ppb");
 + 
 +   } else {
 +       Serial.println("Data is not ready!");
 +   }
 +   /*!
 +     * @brief Set baseline
 +     * @param get from getBaseline.ino
 +     */
 +   sensor.writeBaseLine(0x847B);
 +   //delay cannot be less than measurement cycle
 +   //delay(1000);
 +}
 +}}
 +
 +** Resource [#fad0f7ed]
 +
 +Download all the relevant info from the link:
 +- https://fs.keyestudio.com/KS0457
 +-- &ref(KS0457 keyestudio CCS811 Carbon Dioxide Air Quality Sensor.zip);
 +
 +** Link [#d1170858]
 +
 +- [[ESPHome CCS811 CO_2 and Volatile Organic Compound Sensor:https://esphome.io/components/sensor/ccs811.html]]
 +
 +
 +RIGHT:&font(90%){&page_comments;};
 +#navi


トップ   差分 バックアップ 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 1012, today: 1, yesterday: 0
このページのTopへ
メインメニュー
ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録
最近の更新
オンライン状況
769 人のユーザが現在オンラインです。 (19 人のユーザが UsersWiki を参照しています。)

登録ユーザ: 0
ゲスト: 769

もっと...
サイト情報