Back to Parent

Outcome


Problem Statement

An electrical fire is a fire involving some type of electrical failure or malfunction. In 2007-2011, home electrical fires represented 13% of total home structure fires, 18% of associated civilian deaths, 11% of associated civilian injuries, and 20% of associated direct property damage. Therefore, this device is designed for monitoring and preventing the electrical fire in apartments. It would be especially useful for users who are often not at home. With the IoT technology, this Apartment Fire Monitor can alert the user and even the local fire department remotely. 

Goal

The device will have the ability to detect flame so that it can distinguish if a fire is happening. It should be connected to the Internet as an IoT device so that it can alert the user and the fire department remotely when it detects a fire. With a buzzer, it can also prevent the fire that happens at night. 

Process

This device is built upon the Particle Photon microcontroller. To start with, it is important to know what the flame sensor outputs. I then composed a simple circuit to test the flame sensor.

Flame sensor test
Show Advanced Options

Then I found out that the output of the flame sensor is a number - normally it is over 300 but drops to less than 190 when it detects a fire nearby. 

After getting clear of how the flame sensor works, it is time to add a buzzer so that the device can notify people nearby that a fire is happening.

Flame and buzzer
Show Advanced Options

Since I hope the buzzer can wake people up and let them check if everything is okay, I need to add a push button to reset the buzzer once everything is checked. Therefore, once triggered, the buzzer will keep alarming until the reset button is pressed.

Add button
Show Advanced Options

The last component to add is a LED which indicates the running status of the device. It will pulse lightly when the device is monitoring but blink when the alarm is on.

Based on the designed functions, it should include:

  • A Particle Photon microcontroller
  • A breadboard to hold the components
  • A LED to indicate the running status
  • A flame sensor to detect fire
  • A buzzer to notify user
  • A small push button for user to check the situation and reset the device
  • A 1kΩ resistor to stabilize the LED light

Besides, to notify the user remotely, IFTTT is used so that user can get a text message when the device detects a fire.

Outcome

The following is the completed final code.

Show Advanced Options

The final circuit diagram is as the following.

Final
Show Advanced Options
Final photo
Show Advanced Options

The parts cost around $29.00 including:

  • A Particle Photon - $19.00
  • A breadboard - $4.95
  • A flame Sensor - $1.99
  • A buzzer - $1.95
  • A push button - $0.50
  • A LED - $0.50
  • A 1kΩ resistor - $0.04
The final result is shown in the video below.
Show Advanced Options

Reflection

This project is a great chance to learn how to design and build an IoT device from the ground up. To prevent messing up with the different functions and components, I designed and built this device iteratively. I learned how to develop a device from simple to complex. This iterative process helps me finally get what I expected and designed.

Drop files here or click to select

You can upload files of up to 20MB using this form.