Friday, 28 December 2018

How to simulate gas sensor(MQ5) using arduino uno in proteus ISIS professional? (screenshot step by step)


MQ5 gas sensor:
 MQ5 gas sensor detects natural gas and LPG
Mq sensor used to detect a gas very easy here you can use either analog pins or digital pins
mq sensor are most commonly used ones

MQ series gas sensors:

MQ2 sensor detects Methane, Butane, LPG and  Smoke
MQ3 sensor detects Alcohol, Ethanol and Smoke
MQ4 sensor detects Methane and cng Gas
MQ5 sensor detects Natural gas and LPG
MQ6 sensor detects LPG and butane
MQ7 sensor detects Carbon Monoxide
MQ8 sensor detects Hydrogen Gas
MQ9 sensor detects Carbon Monoxide and flammable gasses
MQ131 sensor detects Ozone
MQ135 sensor detects Air Quality
MQ136 sensor detects Hydrogen Sulphide gas
MQ137 sensor detects Ammonia
MQ138 sensor detects Benzene, Toluene, Alcohol, Propane, Formaldehyde gas and Hydrogen
MQ214 sensor detects Methane and Natural Gas
MQ216 sensor detects Natural gas and coal Gas
MQ303A sensor detects Alcohol, Ethanol and smoke
MQ306A sensor detects LPG and butane
MQ307A sensor detects Carbon Monoxide
MQ309A sensor detects Carbon Monoxide and flammable gas

let's see Step by  step proteus design and and upload arduino code
Step 1:
Open proteus ISIS professional

Step 2:
Add required components


Step 3:
Drag and drop required components

Step4:
Connect all components

Step 5:
Upload your arduino code(.hex)

Step 6:
Upload gas sensor library file(.hex)

Step 7:
Run the project

project successfully completed
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
Arduino code for MQ5 sensor:
#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-5 sensor deducted  Natural gas and LPG
   lcd.display();
   }
   else
   {
    digitalWrite(6,LOW);
    lcd.setCursor (0, 1);
    lcd.print("NO GAS");
    lcd.display();
   }
   delay(1000); 
   lcd.clear(); 
}
------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------
How to simulate gas sensor(MQ5) using arduino uno in proteus ISIS professional?
Step by step video guide


Embedded systems basics -Digital Universe How to simulate GAS sensor using Arduino UNO in proteus ISIS professional: Here I have shown you How to simulate gas sensor(MQ5) using arduino uno in proteus ISIS professional? Click below link for MQ5 gas sensor arduino code https://bit.ly/2zXZYS6 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 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 share with your friends Basics of embedded systems -Digital Universe Thanking you

No comments: