Verify the code in Arduino and select the appropriate board from the tools section of your Arduino IDE as well as make sure to correctly specify the COM port. Connect the Arduino to Pc via USB cable, open up the Arduino IDE and copy-paste the code given below. This change is used to determine the type of gas as well as the concentration of its presence in the atmosphere in ppm (parts per million) from the Analog signal from the sensor (Analog out pin) while Digital values (Digital out pin) from the sensor can be used to detect the presence of these gases.Ĭonnect The MQ2 sensor to Arduino according to the followingĪs mentioned previously we can get both Analog (gas concentration in ppm) or digital (presence or absence of the gas) from the sensor using the A0 and D0 pins from the sensor respectively. Depending on the level of concentration of the gas, the sensor outputs a potential difference, which changes the resistance of the material inside the sensor. The MQ2 sensor is a Metal Oxide Semiconductor (MOS) based sensor which means just like a Light-dependent resistor (LDR), the MQ2 is equipped with a ChemiResistor (stannic oxide) which means the resistance of the sensing material changes when an appropriate gas comes in contact with the same. In this tutorial let us dig deep into understanding how this sensor works and how we can use the same for making such projects. This type of sensor is suitable in making projects like Air Quality monitoring systems, fire alarms, Gas Leakage detection, Alcohol detection-based Ignition system in vehicles, combining the same with IoT, the applications are infinite. MQ2 is a Gas sensor Module that can be used to sense gases like LPG (Cooking Gas), Smoke, Alcohol, Hydrogen, Methane, and Carbon Monoxide concentrations in air. Temperature, Humidity, Pressure, Gas, Environment.3D Filaments - PC, PEI, PEEK, PPSU, OBC.Drag Chains, Heat Shrinks, Cable Protectors.Will you make this project? Let us know in the comments section below. We have tried to cover each aspect of the MQ-2 Gas Sensor and will look for more and try to add those in the next update. If(digitalRead(Gas) = HIGH) delay(500) lcd.clear() Īfter reading this article “Smoke Detection using Arduino and MQ-2 Gas Sensor” you will be able to make this project. LiquidCrystal lcd(12, 11, 5 ,4 ,3 ,2) int Gas = 9 int redLed = 7 int greenLed = 6 The coding of the smoke sensor using Arduino is below The circuit diagram of the Smoke sensor is below Circuit diagramĬoding (Smoke Detection using Arduino and MQ-2 Gas Sensor) You may like to read How to get back your virtual terminal in Proteus Circuit Diagram When the gas will be detected in the atmosphere the red lead will turn otherwise green lead will be on. The higher is the gas the higher will be the voltage the lower is the gas the lower will be the voltage. The output voltage of the sensor is directly proportional to the concentration of smoke. The output voltage of the sensor changes accordingly with smoke or gas levels in the atmosphere. The MQ-2 sensor is sensitive to smoke and different flammable gases like LPG, Methane, Alcohol, Butane, Hydrogen, Butane, and Propane. The resistance of the sensor depends on the type of gas. Inside the smoke sensor, there is a built-in potentiometer that allows adjusting the sensitivity according to how accurate you want to detect gas. Gas Leakage Detection What is an MQ-2 Smoke Sensor? In this tutorial, we will make a smoke detection sensor using Arduino and MQ-2.Ĭlick here to download the Proteus simulation file Smoke detection is very important because it is dangerous and can cause accidents. #co2 sensor, #co2 sensor arduino, #gas detection device, #gas detection using arduino, #gas flow meter, #gas leakage detector, #gas monitoring equipment, #gas sensor, #gas sensor arduino, #h2s sensor, #mq 135 sensor, #mq 2 gas sensor, #mq 2 sensor, #mq gas sensor, #mq sensor, #MQ-2, #mq131, #mq135, #mq135 arduino, #mq135 gas sensor, #mq2 gas sensor, #mq3 sensor, #mq7, #oxygen meter, #Smoke sensor, #smoke sensor using arduino
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |