For the first project I make on Hackster, I wanted to start out with something simple in terms of both design and code. I started by thinking of an object that everyone uses in there day to day life that is easy to program and the first idea that came to mine was an alarm. Made out of cardboard and tape, this alarm has two basic inputs, a toggle switch for turning the alarm on or off and a potentiometer for adjusting pitch and volume. The playground express, alligator clips, potentiometer, toggle switch, and lithium battery are all taped together at the bottom of the cardboard as to not be shown. The lithium battery is not necessary as it can be connected to a power source but for simplicity and portability, I used the battery.
The coding for this project is very simple. The switch is set automatically to the off position but once the toggle switch has been flipped, the LED's turn red and the alarm sound is played. The potentiometer is set to adjust volume and pitch to allow anyone to change how the alarm sounds by simply turning the knob of the potentiometer.
Comments
Please log in or sign up to comment.