Cảm Biến Khói Quang Học Gp2Y1014Au Kèm Dây Cáp Cho Gp2Y1010Au0F tại Lotte Market
Thương hiệu: | Xem thêm Đèn Thương hiệuMô tả ngắn về Cảm Biến Khói Quang Học Gp2Y1014Au Kèm Dây Cáp Cho Gp2Y1010Au0F tại Lotte Market
The data obtained from the test is compared with the air quality:. 1050-3000 = poor. 150-300 = good. 0-75 = very good. 5 V ~ 5. Base installation. The sensor has very low current consumption (maximum 20mA, 11 mA typical), and the maximum power supply is 7VDC. Use test code:. float dustVal=0;. int delayTime=280;. float offTime=9680;. pinMode(dustPin, INPUT);. // ledPower: Còn hàng
** Quét mã QR bằng Zalo để mua trên điện thoại
Giới thiệu Cảm Biến Khói Quang Học Gp2Y1014Au Kèm Dây Cáp Cho Gp2Y1010Au0F tại Lotte Market
The data obtained from the test is compared with the air quality:3000 + = very poor
1050-3000 = poor
300-1050 = general
150-300 = good
75-150 = very good
0-75 = very good
Sensitivity current-DC forward (If) voltage-output voltage-power supply installation type operating temperature
0.5V/(0.1mg/m3)
10mA
3.4V
4.5 V ~ 5.5 V
Base installation
-10°C ~ 65°C
The sensor has very low current consumption (maximum 20mA, 11 mA typical), and the maximum power supply is 7VDC.
The output of the sensor is an analog voltage proportional to the measured dust density, with a sensitivity of 0.5V/0.1mg/m3.
Use test code:
int dustPin=0;
float dustVal=0;
int ledPower=2;
int delayTime=280;
int delayTime2=40;
float offTime=9680;
void setup(){
Serial.begin(9600);
pinMode(ledPower,OUTPUT);
pinMode(dustPin, INPUT);
}
void loop(){
// ledPower is any digital pin on the arduino connected to Pin 3 on the sensor
digitalWrite(ledPower,LOW);
delayMicroseconds(delayTime);
dustVal=analogRead(dustPin);
delayMicroseconds(delayTime2);
digitalWrite(ledPower,HIGH);
delayMicroseconds(offTime);
delay(1000);
if (dustVal>36.455)
Serial.println((float(dustVal/1024)-0.0356)*120000*0.035);
}