For this project, we will need:
1 Arduino with serial monitor function
1 Piezo Element (With or without case; they both work)
1 USB Cable
Step 1: Set Everything Up
Pretty simple, connect the piezo element to pin A0 (red wire) and ground (black wire) on Arduino. Tape the piezo element over the smoke detector's buzzer. Fasten the Arduino to the smoke detector (DON'T BLOCK ANY VENTS!!) Once you do this, connect the USB cable to a nearby computer. You are now finished with the setup!
Step 2: Upload the Code
Here is the code. Upload it to your Arduino board.
Step 3: Open the Serial Monitor and Test
With the Arduino plugged into the computer, open the serial monitor. Push the test button on your smoke alarm, and if you see "Alarm!" in the serial monitor, it is working fine. If you do not see alarm, tap your piezo a few times to test it. If it works, play with the placement of the piezo until it works with the alarm. If it does not work when you tap it, the piezo may be faulty, or not sensitive enough. Try using a more sensitive piezo.
Step 4: Finished / Suggestions
Now you are finished! I am currently working on a way to text a phone when the alarm goes off. I also might try to use a Raspberry Pi instead of Arduino, so it is completely wireless. I have wired smoke detectors, but if you have wireless ones, you can get a spare to leave next to the computer with the Arduino attached to it. Please suggest anything to me on how to make this better! Thanks for viewing!