ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า

ดูการเชื่อมต่อกับ UNO R3 คลิก
/* Grove - Dust Sensor Demo v1.0
Interface to Shinyei Model PPD42NS Particle Sensor
Program by Christopher Nafis
Written April 2012

http://www.seeedstudio.com/depot/grove-dust-sensor-p-1050.html
http://www.sca-shinyei.com/pdf/PPD42NS.pdf

JST Pin 1 (Black Wire) => Arduino GND
JST Pin 3 (Red wire) => Arduino 5VDC
JST Pin 4 (Yellow wire) => Arduino Digital Pin 8
*/

int pin = 8;
unsigned long duration;
unsigned long starttime;
unsigned long sampletime_ms = 30000;//sampe 30s ;
unsigned long lowpulseoccupancy = 0;
float ratio = 0;
float concentration = 0;

void setup() {
Serial.begin(9600);
pinMode(8,INPUT);
starttime = millis();//get the current time;
}

void loop() {
duration = pulseIn(pin, LOW);
lowpulseoccupancy = lowpulseoccupancy+duration;

if ((millis()-starttime) > sampletime_ms)//if the sampel time == 30s
{
ratio = lowpulseoccupancy/(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("concentration = ");
Serial.print(concentration);
Serial.println(" pcs/0.01cf");
Serial.println("\n");
lowpulseoccupancy = 0;
starttime = millis();
}
}

แกะดูข้างใน คลิก

เซนเซอร์วัดฝุ่น PM 2.5 ยี่ห้อ SAMYONG รุ่น DSM501A
เซนเซอร์วัดฝุ่น PM 2.5 ยี่ห้อ SAMYONG รุ่น DSM501A
เซนเซอร์วัดฝุ่น PM 2.5 ยี่ห้อ SAMYONG รุ่น DSM501A
เงื่อนไขอื่นๆ
Tags

วิธีการชำระเงิน

ธนาคารกรุงศรีอยุธยา จำกัด (มหาชน) สาขาบางอ้อ ออมทรัพย์
รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านlorawan
lorawan
จำหน่ายอุปกรณ์ Internet of Things เน้นอุปกรณ์ด้าน LoRaWan เช่น Node หรืออุปกรณ์สำหรับการนำไปประกอบเป็น Node หรือ Gateway ในลักษณะ DIY จำหน่ายชุด KIT เพื่อใช้ในการศึกษาการทำงาน ของ LoRaWan Node และ LoRaWan Gateway
เบอร์โทร : 062-1982256
อีเมล : m2mlorawan@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม