Play tunes by coding with BoomBot!
First, build the robot exterior! Using Pritt stick, glue two googly eyes onto the front of the robot. Then, cut a hole in the front-bottom for the speaker.
Next, you will need to wire the speaker. I used a Snap Circuits speaker but you don't have to. Run one jumper wire from digital pin 9 and one from GND. Then, on the loose ends, attach a crocodile clip and clip them onto either end of the speaker.
Now, hot glue the speaker inside the box at the hole you cut earlier. Move your Arduino inside as well for convenience.
Then, remove your Arduino for further wiring. Next, add the breadboard and snap-to-pin wires. Connect one snap-to-pin wire on either side of the Snap Circuits slide switch. Connect the wire on the left side to the second pin down in the breadboard negative column (blue). Disconnect the speaker's GND wire from the GND pin and place it above the switch wire. Then, connect the wire on the other side of the switch to GND.
Cut a small rectangular hole on the side of the box and hold the switch to it to make sure it is big enough for the switch to move. Remove the sticky back cover on the back of the breadboard and stick the breadboard inside the box. Then, hot glue the slide switch in its hole. I recommend having the ON side at the top.
Then, hot glue the Arduino to the back of the box.
It's coding time! You can either program your own tune using tone(), noTone() and delay() or try the example provided!
Have fun!
Comments
Please log in or sign up to comment.