This instructable shows how to make a 'Stopwatch'. Using a Arduino, Display and a smoke detector. The Stopwatch it's smoke detector will detect and register if you light a cigarette and smoke one. The display will show you how many hours you've wasted.
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Parts
For this project you need the following items:
- 1x Arduino UNO
- 1x Breadboard
- 20x Wires
- 4x resistors
- 1x LCD Display
- 1x Smoke Detector
- 1x Potentiometer
- 1x Soldering Iron & Wire
- 3x buttons
- (Optional) 1x Powerbank
- (Optional) 1x Pack of cigarettes and a lighter
- (Optional) Socks for customization
Step 2: Solder Pins to the Sensor
With the screen we bought it was important to attach the pins to the screen. So it can be easily attached to the breadboard.
Solder the pins of the display to the following connectors ( Don't use too much tin since it can cause problems with using it later on. )
Important: You want to solder them facing down. Not facing up.
Step 3: Connecting to the Arduino
For the following step you need your breadboard and the wires. The other objects (Smoke detector, Display and Potentiometer are also needed. You need 3 buttons that are going to be scripted to control the Display.
Look at the fritzing (the image above) and connect all the objects.
Step 4: Uploading the Code to the Arduino
With the following link you can download the code for the arduino. Then upload it to the Arduino UNO. If you followed step 3 correctly the code will work and the display will start up.
The link to the following code:
Step 5: Finishing Up
Plug the arduino into the computer or hook it up to a powerbank. Then it should all be working! Make sure you have all cables connected correctly. Use longer cables where needed!