PC and Analog MQ-8 Hydrogen Gas Sensor based Hydrogen Gas Monitoring and Alarm System with ATmega32 and LCD Display
In this project, we will learn How to make a PC and Analog MQ-8 Hydrogen Gas Sensor based Hydrogen Gas Monitoring and Alarm System with AVR ATmega32 Microcontroller and LCD Display. Here, we display and monitor the concentration of Hydrogen Gas using Analog MQ-8 Hydrogen Gas Sensor from a PC/Laptop and 16X2 Alphanumeric LCD Display. Also, we will compare the concentration of Hydrogen Gas with a threshold value continuously and when the concentration of Hydrogen Gas is greater than the threshold value, alert signal is sent to buzzer and PC.
Since, the output of the Analog MQ-8 Hydrogen Gas Sensor is analog in nature and these analog signals cannot be processed directly by the ATmega32 microcontroller. So, first this signal needs to be converted to digital value to be processed by the microcontroller. The conversion can be done with the help of ADC of the AVR ATmega32 microcontroller. After converting the analog signal to digital, the microcontroller will send the digital value of Analog MQ-8 Hydrogen Gas Sensor to the PC/Laptop through its serial port using its USART communication protocol. But current generation PCs and Laptops do not have serial port in them, so we will use one USB to Serial converter cable which will create a virtual serial port in the PC /Laptop. Again, the output of USB to Serial cable can not be connected to microcontroller directly as the output voltage of USB to Serial Cable corresponds to RS-232 level. But the ATmega32 microcontroller needs TTL/CMOS voltage levels. For this, we will use MAX-232 voltage converter which will convert RS-232 voltage level to TTL one and vice-versa. The PC/Laptop receives the digital value of the Analog MQ-8 Hydrogen Gas Sensor and displays it in RealTerm Software for monitoring. Apart from PC/Laptop, microcontroller will display the Analog MQ-8 Hydrogen Gas Sensor value in an alphanumeric LCD. In this way, concentration of Hydrogen Gas is monitored from the PC/Loptop and alphanumeric LCD. Also, the ATmega32 microcontroller will compare the output of Analog MQ-8 Hydrogen Gas Sensor value with a threshold value(here the threshold value is 700) continuously and when the Analog MQ-8 Hydrogen Gas Sensor output value is greater than the threshold value, at that time the ATmega32 microcontroller will send alert signal to buzzer and PC. After getting the alert signal, buzzer starts beeping and PC displays the alert signal in the RealTerm Software.
Now, we will use some source of Hydrogen Gas near Analog MQ-8 Hydrogen Gas Sensor and we will see the change in concentration of Hydrogen Gas in the PC, alphanumeric LCD and Buzzer.
Softwares Required
- Atmel Studio 6 Software
- SinaProg Hex Downloader Software
- USBasp Driver
- RealTerm Terminal Software
- USB to Serial Driver
Post a Comment