Linkit ONE: Flame Sensor

by Diwask in Circuits > Microcontrollers

1289 Views, 21 Favorites, 0 Comments

Linkit ONE: Flame Sensor

DSC00228.JPG
This instructable will guide you to use a flame sensor with the Mediatek Linkit ONE. A flame sensor is a device that can detect the presence of fire nearby.

A buzzer connected to linkit one beeps when fire is detected by the sensor.

So let's get started...... ☺☺?

Parts Required

DSC00170.JPG
DSC00167.JPG
temp_2095760792.jpg
DSC00171.JPG
DSC00177.JPG
DSC00176.JPG
DSC00238.JPG
The following parts are required for making this project:



• Linkit one
• Flame sensor module
• Buzzer module
• Lithium Battery
• Jumper Wires
• Breadboard


Connect the Battery

temp_-1908023842.jpg
temp_942337840.jpg
temp_1397179004.jpg
temp_-1278825122.jpg
The first or the very basic step is to connect the lithuim ion battery provided with the linkit one to the board. Do so by directly connecting it to it's respective socket.

Connect the Buzzer

DSC00222.JPG
DSC00221.JPG
DSC00220.JPG
Next step is to connect a buzzer which will beep and give you an alert of fire nearby. It can be connected either directly to linkit one which will not be too loud or through a transistor which will be comparatively louder.

For connecting it, you can refer the image given above. The digital pin that I used was pin no. 2 which is connected to the base of the transistor.

Connect the Flame Sensor

DSC00225.JPG
DSC00226.JPG
DSC00228.JPG
Now you have to connect the flame sensor. It can detect flames through a photodiode present in the front. Connect it as per the follwowing:



• Vcc ------------- 5v linkit
• Gnd ------------- Gnd
• D0 ------------- A0


Upload Code

temp_-864262243.jpg
Now the last step is to upload the code to linkit one. You should make sure that the switches are in SPI, USB, UART positions respectively.

\\
void setup()
{
pinMode(2, OUTPUT);
}
void loop()
{
if(analogRead(A0) > 600)
{
digitalWrite(2, HIGH);
}
else
digitalWrite(2, LOW);
delay(100);
}
\\

Test

DSC00228.JPG
After uploading the code, test the device by first switching it to battery mode and then bringing a lighted matchstick near the sensor. The buzzer would now beep indicating the presence of flame near the sensor.

That brings this instructable to an end. Thanks for watcing!!