FLAME SENSOR
FLAME SENSOR
Applications:
- Nuclear industry, pharmaceuticals, metal fabrication
- Agriculture, mining and power plants.
- Aircraft hangars, clothing dryers and high voltage equipment.
- Andustrial heating and drying systems, and furnaces.
Sample Project With Arduino:
Materials Required:
- ARDUINO UNO Board
- Flame Sensor
- Buzzer
Circuit:
Code:
int Buzzer = 13; //
initializing buzzer in pin 13
int Flamesensor = 2;
// initializing flame sensor in pin 2
int Flame = LOW; //
HIGH when FLAME Exposed
void setup() {
pinMode(Buzzer,
OUTPUT); // Declaring buzzer as output
pinMode(Flamesensor,
INPUT); // Declaring Flame sensor as input
Serial.begin(9600); //Enabling Serial monitor
}
void loop() {
Flame =
digitalRead(Flamesensor); // Reading the value of sensor and storing in a
variable
if (Flame== HIGH)
{ // checking the condition for the presence of flame
Serial.println("HIGH FLAME"); // printing on serial monitor as
HIGH FLAME
digitalWrite(Buzzer, HIGH); // Buzzer is turned HIGH when there is flame
}
else {
Serial.println("NO FLAME"); // if flame is not there,printing
on serial monitor
digitalWrite(Buzzer, LOW); //Buzzer is turned LOW when there is no flame
}
}
Comments
Post a Comment