Tuesday 20 March 2018

How to simulate GAS sensor using arduino uno in proteus ISIS professional



Embedded systems basics -Digital Universe
How to simulate GAS sensor using arduino uno in proteus ISIS professional: Here I have show you how to use gas sensor in proteus ISIS professional
COMPONENTS:
  • Arduino uno
  • LED any color
  • Gas sensor
  • Resistor
  • Virtual termina

We use two conditions for gas sensor using arduino uno in proteus ISIS

Conditions for gas sensor:
  1. Gas value HIGH - Blinking Green LED
  2. Gas value LOW - Not Blinking
We use digital gas sensor with proteus ISIS



MQ2 Gas sensor Used in gas leakage like smoke methane
-It will show output value in virtual terminal
CODING FOR GAS SENSOR:


#define gas_Pin 12
int gas_value;
void setup() {
  Serial.begin(9600); // Initializing Serial Port
  pinMode(2,OUTPUT);
}
void loop() {
  // put your main code here, to run repeatedly:
   gas_value = digitalRead(gas_Pin); 
   Serial.print(gas_value);
   if(gas_value==1){
      digitalWrite(2,HIGH);
      Serial.print(gas_value);
      Serial.print(" HIGH VALUE");
   }
   else{
      digitalWrite(2,LOW);
      Serial.print(" LOW VALUE");
   }
   delay(1000);      
}
------------------------------------------------------------------------------------------------------------------------------------------ To buy gas sensor click below link
http://amzn.to/2peRIqN
Click below link for PIR sensor https://youtu.be/4gRo1ijpMmQ Click below link for 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

If you like this Video Please like and Share to your friends... Basics of embedded systems -Digital Universe Thanking you..

No comments: