GIỚI THIỆU
Cảm biến bụi quang Sharp (GP2Y1010AU0F) đặc biệt hiệu quả trong việc phát hiện các hạt rất mịn như khói thuốc lá, và được sử dụng phổ biến trong các hệ thống lọc không khí.
Đây là cảm biến bạn sẽ cần nếu muốn đo các hạt không khí, xây dựng hệ thống lọc không khí hoặc phát hiện một số hạt nhất định. Bao gồm một cáp đặc biệt để kết nối với các ứng dụng khác.
ỨNG DỤNG
- Máy lọc không khí. Lọc nếu phát hiện lượng hạt cao.
- Hệ thống máy lạnh.
- Theo dõi không khí, công bố chất lượng không khí môi trường lên internet.
ĐẶC ĐIỂM
- Điện áp cung cấp: 5-7V
- Nhiệt độ hoạt động: -10-65 độ C
- Dòng tiêu thụ: tối đa 20mA, điển hình 11mA
- Đầu ra của cảm biến là điện áp tương tự tỷ lệ với mật độ bụi đo được, với độ nhạy 0,5V / 0,1mg / m3.
Sơ đồ kết nối cảm biến với arduino UNO
sample code:
/* Standalone Sketch to use with a Arduino UNO and a Sharp Optical Dust Sensor GP2Y1010AU0F */ int measurePin = 0; //Connect dust sensor to Arduino A0 pin int ledPower = 2; //Connect 3 led driver pins of dust sensor to Arduino D2 int samplingTime = 280; int deltaTime = 40; int sleepTime = 9680; float voMeasured = 0; float calcVoltage = 0; float dustDensity = 0; void setup(){ Serial.begin(9600); pinMode(ledPower,OUTPUT); } void loop(){ digitalWrite(ledPower,LOW); // power on the LED delayMicroseconds(samplingTime); voMeasured = analogRead(measurePin); // read the dust value delayMicroseconds(deltaTime); digitalWrite(ledPower,HIGH); // turn the LED off delayMicroseconds(sleepTime); // 0 - 5V mapped to 0 - 1023 integer values // recover voltage calcVoltage = voMeasured * (5.0 / 1024.0); // linear eqaution taken from http://www.howmuchsnow.com/arduino/airquality/ // Chris Nafis (c) 2012 dustDensity = 0.17 * calcVoltage - 0.1; Serial.print("Raw Signal Value (0-1023): "); Serial.print(voMeasured); Serial.print(" - Voltage: "); Serial.print(calcVoltage); Serial.print(" - Dust Density: "); Serial.println(dustDensity); // unit: mg/m3 delay(1000); }
CÁC TÀI LIỆU
Quý khách hàng mua hàng tại MLAB vui lòng liên hệ sdt: 0862628846(zalo) để được tư vấn và hỗ trợ đặt hàng.