Nowy czujnik gazu MQ-5 (gas sensor MQ5) pasujący do Arduino, AVR, PIC, ARM, DSP, 8051 i innych.
Moduł jest nowy, sprawdzony, w 100% sprawny.
Można wykorzystać jako czujnik ulatniającego się gazu ziemnego, LPG, innych np. oparów rozpuszczalników itp.
Dokumentacja pdf
Przykładowy program do Arduino:
int sensorPin = 0; // select the input pin for the sensor int ledPin = 13; // select the pin for the LED int val = 0; // variable to store the value coming from the sensor void setup() { pinMode(ledPin, OUTPUT); // declare the ledPin as an OUTPUT Serial.begin(9600); // initialize serial communication with computer } void loop() { val = analogRead(sensorPin); // read the value from the sensor Serial.println(val); // send it to the computer (as ASCII digits) digitalWrite(ledPin, HIGH); // turn the ledPin on delay(100); // stop the program for some time digitalWrite(ledPin, LOW); // turn the ledPin off delay(100); // stop the program for some time }
Tylko 2 sztuki - najniższa cena na allegro!