1 / 7

Final Term Project

Final Term Project. Hi- Tek Smoke Detektor By: Rohan Sharma. A smoke detector that changes LED color from green (indicating everything is OK) to red Buzzer also sounds when enough smoke collects

Download Presentation

Final Term Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Final Term Project Hi-Tek Smoke Detektor By: Rohan Sharma

  2. A smoke detector that changes LED color from green (indicating everything is OK) to red • Buzzer also sounds when enough smoke collects • E-mail is sent to user with personalized subject and message to alert them that there is a possible fire • Works due to the fact that smoke will inhibit the amount of light reaching photocell; when certain threshold is reached, alarm sounds and email is sent Conceptual Idea

  3. Materials List: -Arduino + Breadboard -GoBetwino (free software) -Plexiglass -Laser cutter -Drill Press -Caulk Gun -Solder -Piezzo Buzzer -RGB -Wires + Resistors + Photocell How to Build

  4. Step 1: Cut Plexiglass into 6 pieces to form a rectangular prism in order to encase Arduino + Breadboard Step 2: Laser cut out square to accommodate USB Cable into one side, drill holes into 3 remaining sides Step 3: Attach all sides together (with Arduino inside) using caulk Step 4: Bend back breadboard using rope in order to allow all components to fit Step 5: Solder Piezzo Buzzer wires to regular wires, then attach to Pin 11 and GND How to Build Pt. 1: Outer Casing

  5. How to Build Pt. 2: Circuit Diagrams

  6. int photosensor = A1; // sets photocell to analog pin 1 int sensorValue = 0; // sets initial sensor value to 0 int greenPin = 10; sets green pin to digital pin 10 int redPin = 13; sets red pin to digital pin 13 int pinSpeaker = 11; sets pin speaker to digital pin 11 void setup() { Serial.begin(9600); pinMode(photosensor, INPUT); // turns photocell into an input pinMode(greenPin, OUTPUT); // sets the green LED as an output pinMode(redPin, OUTPUT); // sets the red LED as an output pinMode(pinSpeaker, OUTPUT); // sets the speaker as an output } void loop() { int brightness = analogRead(photosensor); // defines brightness as a function of the photocell value if (brightness >= 250) { digitalWrite(greenPin, HIGH); digitalWrite(redPin, LOW); digitalWrite(pinSpeaker, LOW); } // if brightness is greater than or equal to 250, turns green LED on, the red LED off, and the buzzer off else if (brightness < 250) { digitalWrite(redPin, HIGH); digitalWrite(greenPin, LOW); digitalWrite(pinSpeaker, HIGH); Serial.println("#S|MAILMAN|[]#"); } // if brightness is less than 250, turns the red LED on, the green LED off, the Buzzer on, and tells the Gobetwino to send a personalized email } How to Build Pt. 3: Code

  7. Smoke not dense enough to trigger change in photocell  Create chamber to collect smoke around photocell • Too many holes drilled in plexiglass, allowed smoke to dissipate too fast  Drill less holes/Tape over some holes Problems/Possible Solutions

More Related