รหัสสินค้า | AS00355 |
หมวดหมู่ | Gas Sensors แก๊สเซ็นเซอร์ |
ราคา | 1,985.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
MCU | STM32F030 |
---|---|
Interface | 0x55 |
I2C address | 3.3V~5V |
Onboard Gas Sensors | GM-102B; GM-302B; GM-502B; GM-702B |
Storage time | Recommended warm-up time |
---|---|
Less than 1 month | No less than 24 hrs |
1-6 months | No less than 48 hrs |
Over 6 months | No less than 72 hrs |
Step 1 Connect Grove - Multichannel Gas Sensor V2 to port I2C of Grove-Base Shield.
Step 2 Plug Grove - Base Shield into Wio Terminal.
Step 3 Connect Wio Terminal to PC via a USB cable.
Step 4 Download the Grove_Multichannel_Gas_Sensor_v2 Library from Github.
Step 5 Refer How to install library to install library for Arduino.
Step 6 Copy the code into Wio Terminal and upload. If you do not know how to upload the code, please check how to upload code.
Step 7 Refer How to TFT LCD Library to install TFT LCD Library.
Step 8 Upload code from the Software Code below and the data has to be displayed successfully.
#include
#include
#include
GAS_GMXXX<TwoWire> gas;
TFT_eSPI tft;
// Stock font and GFXFF reference handle
TFT_eSprite spr = TFT_eSprite(&tft); // Sprite
void setup() {
// put your setup code here, to run once:
tft.begin();
tft.setRotation(3);
spr.createSprite(tft.width(),tft.height());
gas.begin(Wire, 0x08); // use the hardware I2C
}
void loop() {
// put your main code here, to run repeatedly:
int val;
spr.fillSprite(TFT_BLACK);
spr.setFreeFont(&FreeSansBoldOblique18pt7b);
spr.setTextColor(TFT_BLUE);
spr.drawString("Gas Terminal", 60 - 15, 10 , 1);// Print the test text in the custom font
for(int8_t line_index = 0;line_index < 5 ; line_index++)
{
spr.drawLine(0, 50 + line_index, tft.width(), 50 + line_index, TFT_GREEN);
}
spr.setFreeFont(&FreeSansBoldOblique9pt7b); // Select the font
// GM102B NO2 sensor
val = gas.getGM102B();
if (val > 999) val = 999;
spr.setTextColor(TFT_WHITE);
spr.drawString("NO2:", 60 - 24, 100 -24 , 1);// Print the test text in the custom font
spr.drawRoundRect(60 - 24,100,80,40,5,TFT_WHITE);
spr.setTextColor(TFT_WHITE);
spr.drawNumber(val,60 - 20,100+10,1);
spr.setTextColor(TFT_GREEN);
spr.drawString("ppm", 60 + 12, 100+8, 1);
// GM302B C2H5CH sensor
val = gas.getGM302B();
if (val > 999) val = 999;
spr.setTextColor(TFT_WHITE);
spr.drawString("C2H5CH:", 230 -24 , 100 - 24 , 1);// Print the test text in the custom font
spr.drawRoundRect(230 - 24,100,80,40,5,TFT_WHITE);
spr.setTextColor(TFT_WHITE);
spr.drawNumber(val,230 - 20,100+10,1);
spr.setTextColor(TFT_GREEN);
spr.drawString("ppm", 230 + 12, 100+8, 1);
// GM502B VOC sensor
val = gas.getGM502B();
if (val > 999) val = 999;
spr.setTextColor(TFT_WHITE);
spr.drawString("VOC:", 60 - 24, 180 -24 , 1);// Print the test text in the custom font
spr.drawRoundRect(60 - 24,180,80,40,5,TFT_WHITE);
spr.setTextColor(TFT_WHITE);
spr.drawNumber(val,60 - 20,180+10,1);
spr.setTextColor(TFT_GREEN);
spr.drawString("ppm", 60 + 12, 180+8, 1);
// GM702B CO sensor
val = gas.getGM702B();
if (val > 999) val = 999;
spr.setTextColor(TFT_WHITE);
spr.drawString("CO:", 230 -24 , 180 - 24, 1);// Print the test text in the custom font
spr.drawRoundRect(230 - 24 ,180,80,40,5,TFT_WHITE);
spr.setTextColor(TFT_WHITE);
spr.drawNumber(val ,230 - 20 ,180+10,1);
spr.setTextColor(TFT_GREEN);
spr.drawString("ppm", 230 + 12, 180+8, 1);
spr.pushSprite(0, 0);
delay(100);
}
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,378,454 ครั้ง |
ผู้ชมทั้งหมด | 5,881,532 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 8 ก.ย. 2568 |