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
Смотрите видео How to use mq gas sensor with atmega8 using ADC | Proteus Simulation онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Microcontrollers Explained 30 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 5,314 раз и оно понравилось 45 людям.