Intel Edison - FlameFire Alarm

Introduction: Intel Edison - FlameFire Alarm

Install a fire alarm in the kitchen or anywhere in the house will be an advantage of safety for your home. A small fire/flame can trigger it and the range of it can reach 20CM. This mini fire alarm may avoid some tiny accidents that actually can turn into a big accident.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Components Required

1× Digital Buzzer Module
1× Flame sensor
1× IO Expansion Shield
1× Intel® Edison with Arduino Breakout Kit

Step 2: Connection

Connect the IO Expansion Shield to the Breakout Kit

Digital Buzzer Module --> Digital Pin 8

Flame Sensor --> Analog Pin 0

Step 3: Coding

float sinVal;

int toneVal;

void setup(){


pinMode(8, OUTPUT); //Set the buzzer pin as output


Serial.begin(9600); //Set
the baud to 9600

}

void loop(){


int sensorValue = analogRead(0);//Read the Analog value from Flame
sensor

Serial.println(sensorValue);

delay(1);


if(sensorValue < 1023){ // If
the value is less than 1023, the fire exists and let the buzzer run.

for(int x=0; x<180; x++){

//Change from degree to radian
using sin() function

sinVal = (sin(x*(3.1412/180)));

//Create the frequency for the
buzzer.

toneVal = 2000+(int(sinVal*1000));

//Run the buzzer.

tone(8, toneVal);

delay(2);


}


} else { // If the value is more
than 1023, the fire doesn’t exists and let the buzzer stop.

noTone(8); //Turn off the buzzer


}

}

Epilog Contest VII

Participated in the
Epilog Contest VII

Intel® IoT Invitational

Participated in the
Intel® IoT Invitational

Be the First to Share

    Recommendations

    • Tiny Speed Challenge

      Tiny Speed Challenge
    • Spring Cleaning Challenge

      Spring Cleaning Challenge
    • Trash to Treasure Contest

      Trash to Treasure Contest

    4 Discussions

    0
    MohammadT33
    MohammadT33

    3 years ago

    can you help with code for intel edison ide for this project?

    0
    SlkStephane
    SlkStephane

    Reply 3 years ago

    Yes

    0
    kirksketches
    kirksketches

    3 years ago

    This is very cool project. Great inspiration for my project

    0
    SlkStephane
    SlkStephane

    4 years ago

    Please vote, comment and like it