For this project I started by making a simple circuit with alligator clips, a momentary on/off switch, and a potentiometer and hooking them up to the circuit playground express. After figuring out the wiring I soldered the switches to the board using red, white, and black wire about 2.5" in length. Next the wires were bend in so that the switches would line up on the black box and nicer packaging of the entire circuit in the box. A small stainless steel wire was added to brace the board in the packaging.
The sound box works via flipping the on/off switch into the on position allowing for the user to hear sound from the speaker. The potentiometer switch is then rotated left or right to change the pitch and volume of noise being emitted from the speaker. In the code the tone that is being emitted is randomized within a range from 0 to 50. While the on/off switch is in the off position no sound will be emitted.
Some of the code was designed around the tutorials on the Adafruit website, in the Circ
uit playground express analog input section.
Comments