รหัสสินค้า | AS00091 |
หมวดหมู่ | Gas Sensors แก๊สเซ็นเซอร์ |
ราคา | 60.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
MQ8 Gas Sensor Module เป็นชุดเซ็นเซอร์ตรวจวัดความหนาแน่นของก๊าซไฮโดรเจน(หรือ H) ในอากาศ
Test Procedure:
Function: This version supporting test program
Using the chip: AT89S52
Crystal: 11.0592MHZ
Baud Rate: 9600
Compilation environment: Keil
Disclaimer This program is used only for study and reference, the reference please specify copyright and author information!
************************************************** ******************* /
/ ************************************************* *******************
Description: 1, single-chip IO output low when the measured concentration is greater than the set concentration
************************************************** ******************* /
# Include / / library files
# Define uchar unsigned char / / macro definition unsigned char
Unsigned int # define uint unsigned int / / macro definition.
/ ************************************************* *******************
I / O definition
************************************************** ******************* /
sbit LED = P1 ^ 0; / / definition of SCM P1 port 1 (P1.0) to indicate the end
sbit DOUT = P2 ^ 0; / / definition microcontroller P2 port 1 (P2.0) for the sensor input of
/ ************************************************* *******************
Delay function
************************************************** ******************* /
void delay () / / delay procedure
{
uchar m, n, s;
for (m = 20; m> 0; m -)
for (n = 20; n> 0; n -)
for (s = 248; s> 0; s -);
}
/ ************************************************* *******************
The main function
************************************************** ******************* /
void main ()
{
while (1) / / infinite loop
{
LED = 1; / / extinguish the P1.0 port lights
if (DOUT == 0) / / function when the concentration is higher than the set value, the execution condition
{
delay () ;/ / delay anti-jamming
if (DOUT == 0) / / determine the concentration is higher than the set value, the function of the Executive conditions
{
LED = 0; / / lit P1.0 port lights
}
}
}
}
/ ************************************************* *******************
End
************************************************** *******************
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,375,197 ครั้ง |
ผู้ชมทั้งหมด | 5,878,275 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 5 ก.ย. 2568 |