MQ-2 is an analog gas sensor that can detect smoke and measure its quantity in the air. This sensor is mostly used in Arduino/Avr projects. This video is about interfacing MQ-2 with an atmega8 Avr microcontroller.
Though mq-2 is an analog sensor, the proteus version is a digital sensor. So, the output
generated by the sensor is either 5v or zero volt. Which means it can only be used to detect if there is smoke or not. You can not measure the density in the air.
However, if you implement the code in the physical project, it will work fine. Also, you don't need to use the inductor and capacitor.
The code is available on my telegram channel: https://t.me/ucexplained
Hire me on fiverr for your projects: https://www.fiverr.com/share/Xm02em
Watch video How to use mq gas sensor with atmega8 using ADC | Proteus Simulation online without registration, duration hours minute second in high quality. This video was added by user Microcontrollers Explained 30 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,314 once and liked it 45 people.