Capteur Gaz MQ135
50.00 د.م.
- Le capteur Gaz MQ135 est excellent pour détecter les gaz dangereux et mesurer la qualité de l’air.
- Il peut détecter l’ammoniac, les composés aromatiques, le soufre, la vapeur de benzène, la fumée et d’autres gaz gazeux nocifs.
- Ce capteur de gaz a une sensibilité allant de 10 à 1000.
Rupture de stock
Description
Tutorial: Initialisation Capteur Gaz MQ135 avec Arduino Uno (English)
In this tutorial we will learn how to interface MQ-135 Gas Sensor with Arduino Board? We will explore what is Gas Sensor? How it works? What is its pin configuration and how to interface it with Arduino? Our today’s tutorial consists of following sections:
- What is MQ-135 and how does it work?
- Pin Configuration.
- Required Components.
- Wiring Connections.
- Testing the Circuit.
- Code for Arduino.
What is MQ-135 gas sensor and how does it work?
The gas sensor module consists of a steel exoskeleton under which a sensing element is housed. This sensing element is subjected to current through connecting leads. This current is known as heating current through it, the gases coming close to the sensing element get ionized and are absorbed by the sensing element. This changes the resistance of the sensing element which alters the value of the current going out of it.
Pin Configuration MQ-135 gas sensor
From left to right first pins are as follows:
A0 Analog output
D0 Digital output
GND Ground
Vcc Supply (5V)
Specifications of MQ-135 gas sensor (Capteur Gaz MQ135)
- Wide detecting scope
- Fast response and High sensitivity
- Stable and long life Simple drive circuit
- Used in air quality control equipment for buildings/offices, is suitable for detecting
of NH3, NOx, alcohol, Benzene, smoke, CO2, etc. - Size: 35mm x 22mm x 23mm (length x width x height)
- Working voltage: DC 5 V
- Signal output instruction.
- Dual signal output (analog output, and high/low digital output)
- 0 ~ 4.2V analog output voltage, the higher the concentration the higher the voltage.
Required Components:
Following Components are required for this project:
- Arduino UNO
- Breadboard
- MQ-135 Gas sensor module
interfacing of MQ-135 gas sensor with Arduino (Capteur Gaz MQ135)
Wire the circuit as follows:
Arunio A0 pin with Sensor A0
Aruino D0 pin with Sensor D0
Arduino 5Vpin with Sensor Vcc
Arduino GND pin with Sensor GND
When no gas digital output is 1 and analog output gives 1023 max value. When gas is present digital output is 0 and analogue output is much less than 1023. Using potentiometer on chip we can control the turning OFF point of digital pin at some value of analog pin. The sensor needs a load-resistor at the output to ground. Its value could be from 2kOhm to 47kOhm. The lower the value, the less sensitive is the sensor. The higher the value, the less accurate is sensor for higher concentrations of gas. If only one specific gas is measured, the load-resistor can be calibrated by applying a known concentration of that gas. If the sensor is used to measure any gas (like in a air quality detector) the load-resistor could be set for a value of about 1V output with clean air. Choosing a good value for the load-resistor is only valid after the burn-in time
NOTE: Don’t touch the sensor, it will be very hot.
Testing the Circuit:
- After hardware connection, insert the sample sketch into the Arduino IDE.
- Using a USB cable, connect the ports from the Arduino to the computer.
- Upload the program.
- See the results in the serial monitor.
Code for interfacing of MQ-135 gas sensor with Arduino (Capteur Gaz MQ135).
int sensorValue; int digitalValue; void setup() { Serial.begin(9600); // sets the serial port to 9600 pinMode(13, OUTPUT); pinMode( 3, INPUT); } void loop() { sensorValue = analogRead(0); // read analog input pin 0 digitalValue = digitalRead(2); if(sensorValue>400) { digitalWrite(13, HIGH); } else digitalWrite(13, LOW); Serial.println(sensorValue, DEC); // prints the value read Serial.println(digitalValue, DEC); delay(1000); // wait 100ms for next reading }
Result:
On serial monitor you can see values of analog pin being detected. Currently in my case they are around about 150 which indicate normal air.
- Normal air returns approximately 100-150
- Alcohol returns approximately 700
- Lighter gas returns approximately 750
Plus d’information visite notre page Facebook.
Avis
Il n’y a pas encore d’avis.