User:Manpsek/sandbox

Smoke/Fire Detection System

The smoke/fire detection system is created using hardware components such as an MQ-135 Sensor, a Flame Alarm Sensor, two LEDS, and two Buzzers. These components were placed on a breadboard then connected to an Arduino Uno board and programmed using Java with the use of the firmata libraries. Another library that is very important to the system is the Twilio library which allows for alerts to be sent to users phone warning them of possible danger in their homes. The main use of this system is to warn users whether they are at home or away from home of potential danger such as a fire in their house to prevent unnecessary deaths from fire breakouts and the loss of valuables. This project was done with the engineering grand challenge of "Restore and Improve Urban Infrastructure" in mind.

The Smoke/Fire Detection System works in this way: If the MQ-135 Sensor detects increasing levels of CO2, it will alarm the user of this by sounding a buzzer, turning on a Red LED and sending the user a phone alert. The Flame Alarm Sensor connected to the system detects for Infrared light produced from a fire. If the sensors detects infrared light then a fire is nearby so a buzzer alarm is sounded, the Red LED turns on, and the user is notified that is fire is nearby via phone alerts if they are not home. When the system picks up normal levels of CO2 and no Infrared light, a green LED stays on with the buzzers being off and no alerts being sent to the users phone. The system was also created so that you could manually press the button on the Arduino board to sound a buzzer.

How the system was programmed: The system was programmed using the programming language Java. Specifically it made use of OOP Concepts such as constructors, a timer task, a try/catch with multiple methods, classes and an Array list.