20-02-2017, 04:32 PM
Analog MQ-3 Alcohol Sensor Interface with AVR ATmega16 Micro-controller and LED display. Here, we will interface an MQ-3 analog alcohol sensor with ATmega16 micro-controller and we will show the value of the MQ-3 analog alcohol sensor in the 1X8 LED array.
Since the output of the MQ-3 Alcohol analog sensor is analog in nature and these analog signals can not be processed directly by the ATmega16 micro-controller. Thus, in the first place this signal needs to be converted to digital value to be processed by the micro-controller. The conversion can be done with the aid of the ADC of the ATRmega16 micro-controller of the AVR. After converting the analog to digital signal, the micro-controller will display the digital value of the Analog MQ-3 Alcohol Sensor in the 1 × 8 LED array. But the LED array can display only 8 bits at a time. Therefore, the 1 × 8 LED array will first display the lower 8 bits and then the upper 2 bits of the 10-bit digital output with a delay of 500 ms.
Now, we are going to place the cotton submerged in Alcohol / Spirit near the Analog MQ-3 Alcohol Sensor and we will see the changes in the output of the Analog MQ-3 Alcohol Sensor in the LED array.