Flame sensor with led and buzzer using ardunio
FLAME SENSOR WITH LED AND BUZZER USING ARDUNIO
INTRO:
Today we gone a seen how flame sensor work with ardunio using buzzer and led.
Things Required:
const int ledpin=12;
const int flamepin=A3;
const int buzzerpin=8;
const int threshold=200;
int flamesensvalue=0;//initilise flamesensor reading
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(ledpin,OUTPUT);
pinMode(flamepin,INPUT);
pinMode(buzzerpin,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
flamesensvalue=analogRead(flamepin);//read analog data from flame sensor
if (flamesensvalue<=threshold)//reading compare from flame sensor with threshold value
{
digitalWrite(ledpin,HIGH);
delay(500);
noTone(buzzerpin);
digitalWrite(ledpin,LOW);
delay(100);
Serial.println("--------ALARM ACTIVATED------");
}
else{
noTone(buzzerpin);
digitalWrite(ledpin,LOW);
Serial.println("ALARM DEACTIVATED");
}
}
here is some detailed about flame sensor........Flame sensor works by detecting the presence of a flame within the furance .the sensor is a short length of a metallic rod that creates a small current electricity in order to confrim there is fire burning within the furnace.This sensor is used in industrial boilers.The main function of this is to give authentication whether the boiler is properly work or not.
Comments
Post a Comment