Final Term Project Hi-Tek Smoke Detektor By: Rohan Sharma
Conceptual Idea A smoke detector that changes LED color from green (indicating everything is OK) to red Buzzer also sounds when enough smoke collects 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 is sent
How to Build Materials List: -Arduino + Breadboard -GoBetwino (free software) -Plexiglass -Laser cutter -Drill Press -Caulk Gun -Solder -Piezzo Buzzer -RGB -Wires + Resistors + Photocell
How to Build Pt. 1: Outer Casing 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. 2: Circuit Diagrams
How to Build Pt. 3: Code 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 }
Problems/Possible Solutions 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