Introduction: FLAME SENSOR

Flame sensor

is a detector or an electronic circuit which is used to detect the flames of fire. These types of sensor are basically used I places where the work of fire is done. These sensors are attached with different other microcontrollers and components which is used in the case of emergencies.

Nowadays almost all the houses and offices have these types of sensor for the detection of fire. There are more advanced version of these sensors available in the market which are also used. I am using the basic one and easily available one in the market.

Step 1: DESCRIPTION

Flame sensor

is a sensor which is built out of LM393 ic a photo transistor or photo receiver or infrared receiver led a variable resistor to trim the values of range of the value given by the sensor to the micro-controller.

Sensor also has an on board Power led and also a on board Status led which will blink whenever the sensor detects the fire.

Photo receiver is a black color led which receives the light of infrared spectrum that is of wavelength 760nm-1100nm. The sensor has an detection angle of 60 degree and a safe distance of 100cm.

*NOTE:- THIS SENSOR IS EASILY PRONE TO BE DAMAGED SO IT IS ADVISED TO KEEP THE SENSOR AT THE DISTANCE OF 80CM OR MORE.

This sensor gives the output of both type ANALOG and DIGITAL. Difference b/w analog and digital signal is that in the digital signal only high state or low state is given but in the analog signal values b/w 0-1023 is given which is more suitable for condition in the code.

Step 2: SCHEMATIC DIAGRAM

Step 3: FEATURES AND APPLICATIONS

·

Photo-sensitivity is high

· Easy to use

· Detection angle of 60 degrees

· Adjustable value

· Both type of signal out is available

· Low price

NOTE:- The detection of the flame depends upon the intensity of light

· Can be used in offices and buildings

· Fire alarm

· Fire robots

· Gas stations etc

Step 4: SENSOR SPECIFICATIONS

Step 5: COMPONENTS REQUIRED

Any micro-controller preferably Arduino Uno for beginners.

A led

A buzzer

A flame sensor

A breadboard

Jumper wires

1kohm resistor

Step 6: CIRCUIT DIAGRAM

First take the power lines onto the bread board from

micro-controller

VCC/5v-->+ line and GND--> - line.

Then connect the sensor on to the bread board and connect power to the sensor from powerlines using jumper wires.

Now connect A0 PIN OF SENSOR TO MICRO-CONTROLLER ANALOG PIN A0 and D0 PIN OF SENSOR TO DIGITAL(PIN 2) OF THE MICRO-CONTROLLER.

Now connect a buzzer to the breadboard – wire to gnd and + wire to digital pin 3 of the microcontroller also connect a led parallel to the buzzer.

Step 7: CODE AND WORKING

//put this code in the ide of arduino from this line

//note:- this code is for analog value

int sensor=A0; //initializing the analog pin

int buzzer=3; // initializing buzzer pin

int value;

void setup(){

Serial.begin(9600);

pinMode(sensor, INPUT); // assing the pin mode type of the pin as input or output

pinMode(buzzer, OUTPUT);

}

void loop(){

value=analogRead(sensor); //reading the valus from the sensor

value=map(value,0,1023,0,255); // mapping the value from 0 to 1023 b/w 0 to 255

digitalWrite(buzzer, value); // switching the buzzer on or off by the mapped value

}

For digital value

//put this code in the ide of arduino from this line

//note:- this code is for digital value

int sensor_digital=2; // initializing the digital pin

int buzzer=3;

int value;

void setup(){

Serial.begin(9600);

pinMode(sensor_digital, INPUT);

pinMode(buzzer, OUTPUT);

}

void loop(){

value=digitalRead(sensor_digital); // reading the digital dat from the sensor

digitalWrite(buzzer, value); // switching buzzer on or off

}

WORKING:-

As the code starts it initializes the pin to which the sensor sen its dat then the microcontroller waits for the data to be received as soon as the data is received it then check the condition and forwards the value to switch on or off the buzzer.

Infrared light emitted by the flames are received by the photo receiver and is amplified by an op-amp lm393 and is transferred to the A0 and D0 pin of the sensor.

Step 8: PCB DESIGN

Now

we have got the PCB design and it’s time to order the PCB’s. For that, you just have to go to JLCPCB.com, and click on “QUOTE NOW” button.

JLCPCB are also sponsor of this project. JLCPCB (ShenzhenJLC Electronics Co., Ltd.), is the largest PCB prototype enterprise in Chinaand a high-tech manufacturer specializing in quick PCB prototype and small-batch PCB production. You can order a minimum of 5 PCBs for just $2.

To get the PCB manufactured, upload the gerber file you downloaded in the last step. Upload the.zip file or you can also drag and drop the gerber files.

After uploading the zip file, you’ll see a success message at the bottom if the file is successfully uploaded.You can review the PCB in the Gerber viewer to make sure everything is good. You can view both top and bottom of the PCB.

After making sure our PCB looks good, we can now place the order at a reasonable price. You can order 5 PCBs for just $2 but if it’s your first order then you can get 10 PCBs for $2.

To place the order, click on “SAVE TO CART” button.

My PCBs took 2 days to get manufactured and arrived within a week using DHL delivery option. PCBs were well packed and the quality was really good.

*NOTE:- If you need pcb gor this project than contact me or write me in the comment.