Flame detection using Flame IR Sensor

Flame Detection using Flame IR Sensor

Just Arduino Things | TW TechieTube

Detect a Fire, Flame or Heat near surroundings and Make an Alarm system.





Principle:

This sensor has a receiver like electromagnetic radiation. It uses the Flame Flash Method, which allows the sensor even through a coating of oil, water droplet, ice or dust etc.
In general, IR is also used to check Temperatures too.

Components Required:


  • Arduino UNO                 (1)                        
  • Flame IR Sensor             (1)
  • Breadboard                     (As per Requirement)
  • Jumper Cables                (As per Requirement)
  • Arduino Bus Cable         (1)

Construction:

A Simple project to detect Human or Animal Interaction using the Passive IR Sensor.


Now connect the Sensors pins with the order given,

Vcc  - Arduino 5v/3.3v Pin
Gnd  - Arduino Gnd Pin
Data - Any Digital Pins except D1/D2 on UNO.
Incl.  an LED in D13 and Gnd for external value. 

As explained in the Video, the Code is written as Follows.

Code:

(Analog Value Code)
//Arduino Flame Sensor
#include<SoftwareSerial.h>
int sensorPin = A0; // select the input pin for the LDR
int sensorValue = 0; // variable to store the value coming from the sensor
int buzzer = 13; // Output pin for Buzzer
void setup() {
// declare the ledPin and buzzer as an OUTPUT:
pinMode(buzzer,OUTPUT);
Serial.begin(9600);
}
void loop()
{
Serial.println("TechnoWizards TechieTube - Fire Detector");
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
if (sensorValue < 100)
{
Serial.println("Fire Detected");
digitalWrite(buzzer,HIGH);
delay(250);
}
digitalWrite(buzzer,LOW);
delay(sensorValue);
}

(Digital Value Code)

//Arduino Flame Sensor
const int buzzerPin = 13;
const int flamePin = 11;
int Flame = HIGH;void setup() 
{
  pinMode(buzzerPin, OUTPUT);  pinMode(flamePin, INPUT);  Serial.begin(9600);
}

void loop() 
{
  Flame = digitalRead(flamePin);
  if (Flame== LOW)    digitalWrite(buzzerPin, HIGH);  else    digitalWrite(buzzerPin, LOW);}

Do make the Project, Take a Snap and Tag us @techwiz_india



Comments

Popular posts from this blog

Buzzer Alarm using Touch Sensor

Obstacle Detection using IR Sensor

Human Detection using PIR Sensor