Using the MQ-2 Gas sensor with Arduino

  • calendar_today  Oct, 26 2018
  • visibility  1,548

What is Gas Sensor

A gas sensor is a gadget which distinguishes the nearness of various gases in a zone, particularly those gases which may be destructive to people or animals.

MQ Series

The MQ series of gas sensors utilize a little warmer inside with an electro-chemical sensor. They are touchy for a scope of gasses and are utilized inside at room temperature. The yield is an analog flag and can be perused with an analog input of the Arduino. The list of MQ series is mentioned below.

  1. MQ-2
  2. MQ-3
  3. MQ-4
  4. MQ-5
  5. MQ-6
  6. MQ-7
  7. MQ-8
  8. MQ-9
  9. MQ-131
  10. MQ-135
  11. MQ-136
  12. MQ-137
  13. MQ-138
  14. MQ-214
  15. MQ-216
  16. MQ-303A
  17. MQ-306A
  18. MQ-307A
  19. MQ-309A

What is the MQ-2 Gas Sensor Module?

The MQ-2 Gas Sensor module is helpful for gas spillage distinguishing in home and industry. It can recognize LPG, I-butane, propane, methane, liquor, hydrogen and smoke.

A few modules have a worked in factor resistor to modify the affectability of the sensor. 

Note: The sensor turns out to be extremely hot sooner or later, don't contact it! 

In this article, we will utilize the sequential screen of Code-bender (or Arduino IDE) to perceive how the sensor demonstrations in factor gasses. 

In this way, we should begin!

Tools, We need are:

The tools which we are going to use in this project are:

  1. Breadboard
  2. MQ-2 Gas Sensor
  3. Arduino Uno

Connections, that we will set in this project are: 

  1. Output to Arduino Analog A0 Pin
  2. GNG to Arduino GND Pin
  3. Vcc to Arduino 5V Pin

Warning! Be careful during this process. Kindly do not touch the gas sensor because, after a short time, it will start heating. 

Uploading the code:

Take a stab at downloading the code-bender module and tapping on the Run on Arduino button to program your Arduino with this portray. Also, that is it, you've customized your Arduino board! Press the "Connect" button to begin a sequential connection with your Arduino board.

Well done! At last, you have learned that how to use the MQ-2 Gas Sensor with the Arduino. If you have any query, feel free to ask. We’re here to help you and if you have any info that we can add further in our article, don’t be hesitate. Just suggest us in the comment section.