PIC16F84A Gas Detector using GH-312 sensor
This is a gas detecting circuit capable of sensing many different types of gases.
R1 1K resistor
R2 1K resistor
P1 100K potentiometer
C1 10uF cap
C2 100nF cap
C3 100nF cap
C4 15pF cap
C5 15pF cap
Xtal 8Mhz crystal
Led1 3mm red led
LCD 8X2 LCD
IC1 16F84A microcontroller
VR1 7805 regulator
GH-312 Gas Sensor
The first tests were made with the circuit mounted on a breadboard. After initialization the circuit will enter a normal state where it detects no gas. The display shows “Sensing…No Gas !”.
To test the sensor I used my portable gas soldering iron with the gas coming out pointed to the sensor.
The sensor is able to detect the gas and the microcontroller will trigger a flashing led warning and sound.
The sound is produced by a small piezo and the display show the message “Found Gas”.
When the air is clean again and the sensor does not sense any gas, the circuit will return to it’s normal state turning off both led and piezo sound.
It’s a pretty cheap and easy to assemble circuit.
Does not require too many parts and the microcontroller is very easy to find ( the famous 16F84A from microchip ).
Since it’s used a small lcd ( 8×2 ) this project can be portable.
Also this sensor senses several types of gas and it’s pretty stable.
The source code is provided in hex format: GASDEMO.hex
For more detail: PIC16F84A Gas Detector using GH-312 sensor
Current Project / Post can also be found using:
- proteuse picture on how to connect gas detector to pic microcontroller