Our project is meant to be an interactive toy for children that can be customized to put any child's name on it. The name can blink, light up like a color wave, and loop through each letter individually at a certain pace. We decided to make this project because we thought that children would enjoy colorful lights that spell out their name and light up in a few different patterns to avoid getting bored of it too quickly. This project was also a challenge on the physical building and programming side which made it that much more interesting!
- Set up the shift registers on a breadboard with 1-2 spaces between each, and follow this fritzing diagram to properly daisy chain and connect them to the arduino.
Diagram of daisy chained shift registers
- Add the accelerometer to the end of the breadboard where there is space and follow this hookup guide to wire it up, only wire the four left wires in the diagram because that is all that's needed (Don't forget that this accelerometer can only take 3.3V otherwise it can be damaged):
- Connect the piezo alarm's small lead to a potentiometer that will control the volume and connect the longer lead to digital pin 9 on the arduino.
- Get the second breadboard and use resistors to link each shift register pin for each LED. I recommend taping the breadboards to the bottom side of the enclosure to prevent movement of the resistors.
Result after connecting breadboards with resistors and connecting the accelerometer (top right)
- When you get your cutout for your enclosure, place the LED diodes through the holes with the short lead facing either right or left, but make sure that all the LEDs are put in the same way. Then, bend them about 45 degrees to make soldering easier. Solder the negative lead (short one) to the next closest negative lead and do this for all LEDs, so that they are all connected. Then solder a piece of wire (preferably black) that can reach the arduino's ground pin when inside the finished product.
- Cut wire that is long enough that can reach the breadboard from the LEDs depending on how tall your enclosure is and solder the wire to the longer lead of each LED and repeat until all LEDs have a wire attached. Test by connecting the LEDs to their appropriate pin on the breadboard and connecting the grounding wire to see if they all turn on, if any of them don't turn on then fix the connections that you previously soldered.
Result after wire is soldered to each LED
- Place the buttons/switches into their appropriate sockets/holes and solder wire to them that is long enough to reach the Arduino.
- When you are ready to attach the wires from the LED to the breadboard follow this diagram that shows where each wire should go.
- When complete squish all the components together and use wood glue to close the box and connect a 9V battery to the Arduino as a power supply.