Hello friends, hope you all are fine and having fun with your lives. Today, I am going to share a new Gas Sensor Library for Proteus. I hope you guys are gonna enjoy this one. We are all well aware of Gas Sensors which are used for detection of different gasses in the atmosphere. These sensors are not available in Proteus so that's why I have designed a library using which now you can use these different gas sensors quite easily in Proteus software. You can interface this Gas Sensor with any Microcontroller, for example: Arduino, PIC Microcontroller or 8051 Microcontroller etc.
In this Gas Sensor Library for Proteus, I have added eight different Gas Sensors, which are used for detection of different gases. As we all know that Proteus is a simulating software so it won't be able to detect the gas in real in Proteus. So, that's why I have placed a Test Pin in each of these sensors so when you make this pin HIGH, then it means the gas is present and if this Test Pin goes LOW then it means there's no gas available and sensors will give LOW output. We will have a look at How to use these sensors below. You should also have a look at the project LPG Gas Leak Detector using Arduino in which I have used this Gas Sensor MQ-2 with Arduino. So, here's the list of all eight gas sensors, I have added in this library:
- MQ-2 Gas Sensor
- MQ-3 Gas Sensor
- MQ-4 Gas Sensor
- MQ-5 Gas Sensor
- MQ-6 Gas Sensor
- MQ-7 Gas Sensor
- MQ-8 Gas Sensor
- MQ-9 Gas Sensor
Gas Sensor Library for Proteus
- First of all, download the Gas Sensor Library for Proteus by clicking the below button:
[dt_button link="https://www.theengineeringprojects.com/Downloads/downloads.php" target_blank="false" button_alignment="default" animation="fadeIn" size="medium" style="default" bg_color_style="default" bg_hover_color_style="default" text_color_style="default" text_hover_color_style="default" icon="fa fa-chevron-circle-right" icon_align="left"]Download Gas Sensor Library[/dt_button]
- Once you download the file, you will get a rar file so unrar it and you will find three files in it, named as:
- Place all these three files in the Library folder of your Proteus software.
- Now open your Proteus software or restart it, if its already open.
- In the components section, make a search for Gas sensors as shown in below figure:
- Now place all of them in your work space and they will look something as shown in below figure:
- So, these are all the Gas Sensors available in this Gas Sensor Library for Proteus.
- You can see all of these sensors has four pins on them.
- Two of these pins are Vcc and GND while third is OUT Pin.
- Test Pin is used for simulation purposes, when you have HIGH on Test Pin then it means that you have Gas in the atmosphere and your sensor will give HIGH as well on the OUT Pin.
- So, let's check it out how to use these gas sensors. So, take any of these sensors and design a small circuit as shown in below figure:
- Now before running your simulation, one thing you need to do is to double click this gas sensor and open the Properties.
- In Properties, you will find a Program file section. In this section browse for the GasSensorTEP.HEX file, which we just downloaded above and placed in the library folder of our Proteus software.
- Now run your simulation, and when you turn logic state HIGH then you will see the OUT Pin will also go HIGH as shown in below figure.
- You can plug this OUT Pin of your Gas Sensor in your Microcontroller e.g. Arduino, PIC Microcontroller etc.
- So, that's how you can quite easily simulate this Gas Sensor in Proteus ISIS.
- Here's the video in which I have demonstrated this library in detail: