รหัสสินค้า | SG00155 |
หมวดหมู่ | วัดสภาพแวดล้อมและแก๊ส Environmental / Gas |
ราคา | 195.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
Gas Dust Sensor Module ตัวนี้เป็น Sensor Module สำหรับใช้วัดปริมาณฝุ่นละอองในอากาศ เพื่อตรวจคุณภาพอากาศในสภาพแวดล้อมที่มีหมอกควัน ฝุ่นละออง ต่อใช้งานร่วมกับบอร์ดคอนโทรลเลอร์ผ่านทาง PWM Interface
ตัวอย่าง Arduino Sketches:
1) Example Code 1 - Arduino (Wiki)
2) Example Code 2:
Wiring Diagram:
#3 Vcc - 5V
#4 Vout1 - Pin 8
#5 GND - GND
ตัวอย่าง Arduino Sketch:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# include
byte buff[ 2 ]; int pin = 8 ; //DSM501A input D8 unsigned long duration; unsigned long starttime; unsigned long endtime; unsigned long sampletime_ms = 30000 ; unsigned long lowpulseoccupancy = 0 ; float ratio = 0 ; float concentration = 0 ; int i= 0 ; void setup() { Serial.begin( 9600 ); pinMode( 8 ,INPUT); starttime = millis(); } void loop() { duration = pulseIn(pin, LOW); lowpulseoccupancy += duration; endtime = millis(); if ((endtime-starttime) > sampletime_ms) { ratio = (lowpulseoccupancy-endtime+starttime + sampletime_ms)/(sampletime_ms* 10.0 ); // Integer percentage 0=>100 concentration = 1.1 *pow(ratio, 3 )- 3.8 *pow(ratio, 2 )+ 520 *ratio+ 0.62 ; // using spec sheet curve Serial.print( "lowpulseoccupancy:" ); Serial.print(lowpulseoccupancy); Serial.print( "\n" ); Serial.print( "ratio:" ); Serial.print( "\n" ); Serial.print(ratio); Serial.print( "DSM501A:" ); Serial.println(concentration); Serial.print( ";\n\n" ); lowpulseoccupancy = 0 ; starttime = millis(); } } |
Description:
Dust sensor (DSM501) can generate the perception of tobacco smoke and pollen, house dust, heating automatic intake device, adjustable resistance settings detect the size of dust. Using the same principle as the basis Calculator particle detected absolute number of particles per unit volume.
Summary:
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,426,150 ครั้ง |
ผู้ชมทั้งหมด | 5,929,228 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 9 ต.ค. 2568 |