Monday, November 02, 2015

Gas Leakage Detector Project using Microcontroller and (MQ-9) Gas Sensor



 
LPG Gas Leakage Detector using (MQ-9)  Gas Sensor and pic18f2550 Microcontroller

Gas Sensor (MQ-9) :

  MQ-9 Gas Sensor is one kind of semiconductor which has very lower conductivity in open air. But in Carbon Monoxide, Methane and LPG gas it has good conductivity. By using ADC of pic microcontroller we can measure it. Let's take a look on MQ-9 sensor .
Gas Sensor (MQ-9)


Gas Sensor (MQ-9) pin out
 

Datasheet of  MQ-9


 

Basic Concepts :

The MQ-9 sensor will be connected with a pic microcntroller and a buzzer will also be connected with microcontroller. When LPG gas will be detected in sensor, it will provide voltage into microcontroller's RA1 pin(ADC). It will provide reading more than 590. At this situation microcontroller will turn on the buzzer and LED. That's the basic concept. 

ADC(Analog to Digital Converter ) :

We need a basic knowledge about ADC. Let's  take a look at here :
LPG Gas Leakage Detector using (MQ-9)  Gas Sensor and pic18f2550 Microcontroller
Thief Detector using PIC Microcontroller & PIR Motion Sensor
ADCON1 Register
LPG Gas Leakage Detector using (MQ-9) Gas Sensor and pic Microcontroller


Basically ADC works like as a voltage divider. According to voltage It produce output.

bit 5 : VCFG0: Voltage Reference Configuration bit (VREF- source)
1 = VREF- (AN2)
0 = VSS or 0 volt


bit 4 :VCFG0: Voltage Reference Configuration bit (VREF+ source)
1 = VREF+ (AN3)
0 = VDD or 5volt


We will set  VCFG0[bit 5]=0and VCFG0[bit4]=0. So we will get highest value 5volt[1023] and lowest value 0volt[0].The ADCON1 is a 10 bit register that means  2 to the power 10  is it's highest counting capacity and result is 1024. So this register can count from 0 to 1023. When 0 volt, we get reading at RA1 pin  0. When 5 volt, we get reading at RA1 pin 1023. It means 5volt equivalent to 1023 .

 If  5 volt    equal    reading 1023 .

So 1  volt   equal    reading 1023/5  
[When LPG Gas detect MQ-9 Sensor provide more than 2.93 volt at AO Pin]
So 3 volt equal  reading  (1023/5)*2.93 =599 When we get reading 599 at ADC channel, we understand  that sensor detects LPG. So it makes PORTB.F6 pin high and Buzzer turns on .


 MikroC Source Code :

  




double source=0;   
char txt[15];  
 void main() {  
 ADCON1=0x0D;         // Configure RA1 pin as input  
 CMCON=7;  
 TRISB.F6=0;  
  ADC_Init();            
        
  while(1){  
  source=Adc_Read(1);  
  PORTB.F6=0;  
 if(source>600){   
 delay_ms(500);    
 PORTB.F6=1;  
 }  
 }  
 }  

 

Proteus Circuit :

 

LPG Gas Leakage Detector using (MQ-9)  Gas Sensor and pic18f2550 Microcontroller

LPG Gas Leakage Detector using (MQ-9) Gas Sensor and pic Microcontroller

 

RESULT:

LPG Gas Leakage Detector using (MQ-9) Gas Sensor and pic Microcontroller


PRACTICAL VIDEO  YOUTUBE


Download This Project(google drive)

Thank You!


55 comments:

  1. Replies
    1. Thank you sir. My comment option hasn't been working for a long time. Suddenly I've found it working and I'm making reply, sir.

      Delete
  2. Can you plz mail me the programme used in this programme?
    My mail id is stephenzion96@gmail.com

    ReplyDelete
  3. Sir i use pic16f877a and it has a lot unusual errors...Do pic18 family has same issue ?

    ReplyDelete
    Replies
    1. Although It's a late reply. But you know I have to response. If your aim is to make project for university exam then use same MCU same circuit as I had done. Thank you.

      Delete
  4. I tried to simulate the circuit with the given program in software with mq-9 sensor(I added the sensor in the library) but its not working... I made the hex file burned it in the chip but its not simulating. Any idea where i go wrong?

    ReplyDelete
    Replies
    1. it was supposed to work. While I tried It took some times to work as far as I remember.

      Delete
  5. This comment has been removed by a blog administrator.

    ReplyDelete

  6. The link is broken. Please upload your new one?
    Mail: keremarcaa@gmail.com

    ReplyDelete
  7. That's very good try, reach the best gas company which is located near you to buy quality gas leak detector.

    ReplyDelete
  8. There is no other completing that will hold up to the higher temperatures of a gas stove as effectively as the porcelain will. Best auto ignition gas stove

    ReplyDelete
  9. Around the 1930's, the gas stoves the coal and wood stoves two to one. 3 burner gas stove with glass top

    ReplyDelete
  10. I would like to thank you for the efforts you have made in writing this article. as we provide best lpg prices UK at affordable prices. for more info visit our website.

    ReplyDelete
  11. The two dining establishments beneath the bridge are Snoopy’s and Doc’s. Snoopy’s seems to be the much more remarkably regarded, but we do not comprehend why. Snoopys is just a fried fish-shack. You order at the counter and select up your unique meals served on paper plates. It is money only, and it has no bar just beer. Doc’s has waiters, real plates, and a complete bar. They each have terrific sunset views about the lagoon, but neither appeared to have air-conditioning. Flow Meter LC

    ReplyDelete
  12. Get at all your favourite prodcts at one go. Check the prices and discounts. Grab the best deals and discounts at Flipkart SBI Offer Amazon Cashback Offers 2020Top & Best Gas Stoves in India 2021Flipkart HDFC Offer Indian Hot Deals

    ReplyDelete
  13. That is a very good project idea,I am going to recreate this.
    https://www.smartgasdetection.com/

    ReplyDelete
  14. The main piece of a gas home purchasers report is Wellbeing, you need to be certain that whenever you have moved into your new property you are protected. www.besteenergieleverancier.com/

    ReplyDelete
  15. This sort is for the most part called as blower.air compressor ohio

    ReplyDelete
  16. Thanks for the useful information. I hope you will share some more content. Please keep sharing! gas leak detector

    ReplyDelete
  17. Are you looking for end of lease pest spray services in Melbourne? Pest control is essential after your house lease has ended because it is part of the lease agreement. Hilux Services offer exceptional end of lease fumigation, end of tenancy, and end of lease flea treatment to remove all sorts of pests from your leased home at affordable prices. Residential Pest Control Service Melbourne

    ReplyDelete
  18. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! gas station for sale

    ReplyDelete
  19. It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing. Landfillgasenergy

    ReplyDelete
  20. Beaver says I also have such interest, you can read my profile here: more info

    ReplyDelete
  21. The informative message that you shared in a good way. keep maintain the updates. Thanks for sharing the ideas. Points and Trick

    ReplyDelete
  22. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though best smm panel

    ReplyDelete
  23. Thank you for this article.. Travelers around the world who wish to travel the Kenya need to apply for kenya visa requirements for us citizens through online e visa portal. That offers the fast and secure visa services.

    ReplyDelete
  24. His examination acquainted moral consecrated mathematical speculations with Western ancestral science. mint projekt

    ReplyDelete
  25. Great Blog! This post gives a better idea about gas leak detector. Thanks for the useful information. I hope you will share some more content. Please keep sharing!

    ReplyDelete
  26. Gas leakage problems are best to give to the plumbing technicians. Specialist kitchen plumbing is the most effective to work in this type of scenario. you can give look at here. They are providing their services at an inexpensive rate.

    ReplyDelete

  27. This is a topic that’s near to my heart… Many thanks! Where are your contact details though? Indian tourist visa citizens are eligible to apply for the Indian eVisa. You can apply for an Indian tourist visa registration via mobile phone, computer or desk.

    ReplyDelete
  28. My physics class is something I truly miss. There, we used to perform a lot of electrical experiments, and now that I'm through with school, I'm imprisoned behind the digital bars. Experimenting on my own is getting increasingly tough for me. I need to finish a project, and I'd be grateful if you could supply any Mphil Thesis Structure. After that, I believe I'll be able to complete this experiment. So, what are your opinions on the subject?

    ReplyDelete
  29. Installing the pipes for the gas supply of the house is called a plumber for gas repair. The people who do this job are called gas plumbing. If you wish to rent a gas plumber in your nearest area then you can contact ​gas plumbers near me.

    ReplyDelete
  30. For true fans of this thread I will address is a free online! kündigung

    ReplyDelete
  31. Nice post. I learn something more difficult on diverse blogs everyday. It will always be stimulating to learn content from other writers and practice a little there. I’d opt to apply certain while using content on my blog whether or not you don’t mind. Natually I’ll provide link on the internet weblog. Thank you for sharing. Heatable boiler service

    ReplyDelete
  32. This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: Satta King Online

    ReplyDelete
  33. buy twitch followers Many people and many different game systems will give many different opinions as to what makes a successful Game Master. In the world of pen and dice RPG's Game Masters or GM's at their core are story tellers, referees, and character actors all rolled into one.

    ReplyDelete
  34. https://www.visualaidscentre.com/service/eyes-specialist-delhi/ This article is mainly meant for those who have a passion for video games. If you like playing video games, but think it is just wastage of time, well, I must say that you are totally wrong. There are companies which pay you huge money for playing video games and by that I don't mean any ordinary video games. You will be playing video games which are yet to rock the gaming world. Be the first person to play it and also earn simultaneously.

    ReplyDelete
  35. https://dynamichealthstaff.com/nursing-jobs-in-qatar Web developers often perceive a site's architecture from a completely different perspective than search engine optimization specialists. Developers tend to see an information structure in the context of content management systems and databases. SEO professionals consider a site's architecture from the point of view of the search engine spiders' ability to crawl and index the pages.

    ReplyDelete
  36. https://www.buyyoutubesubscribers.in/2021/11/10/how-much-youtube-pay-for-1-million-views/ Do you want to create and share videos for YouTube? If so then great! You've made an awesome decision!

    ReplyDelete
  37. https://onohosting.com If YouTube keeps buffering on your system, the good news is that you can repair a lot of the potential issues that Windows will have inside, that are preventing this application from running. We've found that one of the biggest problems for YouTube is that it uses a lot of third-party software to help play the movies you wish to see.

    ReplyDelete
  38. Your texts on this subject are correct, see how I wrote this site is really very good. electrum wallet with two factor authentication

    ReplyDelete
  39. Amazing ! Very informative article thanks for sharing please keep it up. Fulfill your Pakistan visa requirements by filling the form online from your laptop and get your pak evisa on your email.

    ReplyDelete
  40. No count number what extra add-ons are delivered to a Laminate floor, its herbal shine can best be attained via restoration and refinishing. Laminate Flooring Nashville

    ReplyDelete
  41. айти нас, выполнив поиск в панели Smm Бангладеш, и мы также доступны в других странах, вот несколько команд, если вы хотите
    smm panel pakistan
    smm panel pakistan
    smm panel pakistan
    smm panel pakistan

    smm panel pakistan
    smm panel pakistan

    ReplyDelete
  42. Emergency propane services are available for unexpected outages or leaks.
    Residential Propane Service

    ReplyDelete
  43. Our skilled professionals are dedicated to delivering top-notch solutions, tackling issues big and small, so you can enjoy peace of mind. Whether it's eliminating pests, fixing your roof, or enhancing your living space, Spark Home Solutions is here to make your home a better place to live. Your satisfaction is our priority handyman in chermside

    ReplyDelete

Ain't getting any visitors!
Please Share and Bookmark posts.

Tags

: (1) 18F2550 (1) 36KHz (3) and (1) arduino (1) Based (1) battery (1) Bipolar (1) Blinking (1) blinks (1) Bluetooth (1) bluetooth device interfacing (1) bluetooth module (1) button (1) circuit (1) clock (1) control (1) crystal oscillator (3) Db9 (1) DC Motor (2) digital (2) Digital Voting Machine (1) digital voting machine using pic (1) display (2) DS1307 (1) electronic (1) embedded c programming tutorial (11) embedded c tutorial (11) experiment kit (4) external interrupt (4) flash (1) flashing (1) Gas Leakage detector (1) HC-06 (1) home (1) how (1) How to (10) i2c tutorial (1) in (1) indicator (1) infrared Connection (3) interface (8) interfacing (3) Interrupt (3) Introduction (1) IR Connection (3) IR Receiver (4) IR Transmitter (4) key pad (1) keyboard (1) keypad (1) lavel (1) Lcd 16x2 (2) lcd 2x16 (2) led (1) lm35 (2) LPG (1) machine (1) make (1) Make bootloader (1) making (1) matrix (1) max232 (1) membrane keyboard (2) meter (2) Micocontroller (1) microchip (4) microchip pic (2) microchips (3) microcontroller (9) microcontroller based (3) microcontroller programming (3) Microcontroller Project (4) Microcontroller Projects (1) microcontroller_project (2) microcontrollers (4) Microprocessor (2) mikroC (5) mikroc code to start and stopstart and stop dc motor (1) mikroc pro for pic (2) Motion detector (1) MQ-9 Gas Sensor (1) musical (1) NEC Protocol (4) pcb (5) PIC (3) pic controller (11) pic microcontroller (11) pic microcontroller tutorial (11) pic programming (1) pic programming in c (12) pic proteus (1) Pic Tutorial (12) pic18 (2) pic18f2550 (11) picmicrocontroller (4) picRFモジュール (1) PIR Motion Sensor (1) printed circuit board (1) proteus (6) pulse width modulation (1) push (1) push button (1) PWM (1) real (1) rf transmitter (3) Rs 232 (1) Rs232 (1) scroll (1) scrolling (1) Serial communication (1) Serial Connection (1) Serial Port (1) serial port rs232 (1) Servo Motembedded c programming tutorial (1) simulation (2) Soil Moisture Meter (1) speed control (1) step by step (7) step bystep (1) Stepper Motor (2) text (2) Thief Detector (1) time (1) timer (4) timer0 (4) tone (1) TSOP38236 Receiver (4) tutorial (2) Unipolar (1) USART Connection (1) USB (1) usb 1.0 (1) USB bootloadere (1) USB HID (1) using (9) voltmeter (1) voting (1) water level indicator (3) with (2) work (1)

Traffic Feed


Live Traffic Feed
Visitor Tracking

Leave Your Message Here

Name

Email *

Message *

Like on Facebook