Friday 14 December 2018

LPG GAS sensor(MQ6) using arduino uno in proteus



Arduino code:

#include <LiquidCrystal.h>
#define gas_Pin 7
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 13, en = 12, d4 = 11, d5 = 10, d6 = 9, d7 = 8;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int gas_value;
void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);  
  pinMode(6,OUTPUT);
}
void loop()
{
  gas_value = digitalRead(gas_Pin); 
  if(gas_value==1)
  {
   digitalWrite(6,HIGH);
   lcd.setCursor (0, 1);
   lcd.print("GAS DEDUCTED");      //MQ-6 sensor deducted LPG, butane
   lcd.display();
   }
   else
   {
    digitalWrite(6,LOW);
    lcd.setCursor (0, 1);
    lcd.print("NO GAS");
    lcd.display();
   }
   delay(1000); 
   lcd.clear(); 
}
--------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------
MQ6 Gas sensor:
                                                      MQ-6 Sensor (LPG and BUTANE)
  • When it comes to detecting a particular Gas the MQ series Gas sensors are the most commonly used ones. 
  • Using an MQ sensor it detects a gas is very easy. You can either use the digital pin or the analog pin to accomplish this.
------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
Embedded systems basics:
Embedded systems step by step video guide
-using PROTEUS ISIS professional and Arduino IDE software
here I am going to show you
How to interfacing MQ6 sensor with arduino uno

Click below link for more embedded systems topics
https://digiuniverselife.blogspot.in

Embedded systems basics -Digital Universe

Click below link for interface Keypad with Arduino UNO
https://youtu.be/cnPb4pObkXc

Click below link for the MQ2 gas sensor
https://youtu.be/ALm-okkKRPY

Click below link for PIR sensor
https://youtu.be/4gRo1ijpMmQ

Click below link for the temperature sensor
https://youtu.be/1GJC_6eF7Xg

Click below link for vibration sensor
https://youtu.be/jiJAhxa687s

Click below link for M shape led blinking
https://youtu.be/S46J4L4KOu4

Subscribe To My Channel and Get More Great Ideas
https://bit.ly/2UlZJcb

Click below link for more embedded topics
https://digiuniverselife.blogspot.in

Contact Us 

Facebook
https://bit.ly/2NAeebK
Twitter
https://bit.ly/2x3R1p1
If you like this Video Please like and Share with your friends...

Basics of embedded systems -Digital Universe
Thanking you

No comments: