LED Pacman Ghosts

by NextFab in Circuits > LEDs

6724 Views, 100 Favorites, 0 Comments

LED Pacman Ghosts

biyir.gif
bizqj.gif
IMG_4240.jpg
IMG_4248.jpg

Make your own LED Pacman Ghosts! Feel free to customize your own with colors or add more LEDs. Works well as a desk toy or even a nightlight!

Setup

What you'll need:

Tools:

  1. Laser cutter
  2. Hot glue gun
  3. Soldering iron
  4. Computer
  5. Wire cutters
  6. Wire strippers

Components

  1. Acrylic (color of your ghost)
  2. Arduino Uno
  3. (16) 10mm LEDs (color of your ghost)
  4. (4) 10mm white LEDs
  5. (4) 180 Ohm resistors

Laser-cut Ghost

IMG_4205.jpg

Download our designed Pacman ghost cutouts or make your own! The Adobe Illustrator files are available here for download.

Downloads

Place in LEDs

IMG_4206.jpg

The easiest way to do this is to clamp your acrylic in a vice and drop in your LEDs from the back while you continue the build.

Hot Glue

IMG_4211.JPG
IMG_4208.jpg
IMG_4209.jpg
IMG_4210.JPG
IMG_4207.jpg

After placing the LEDs in the holes, it is necessary to hot glue the side of each LED to the back of the acrylic so the stay in permanently.

Solder

IMG_4216.jpg
IMG_4217.jpg
IMG_4215.jpg
IMG_4229.jpg

For this part, we are going to solder some common anodes. After some testing with the Arduino, I found that the most a digital pin can power without losing much brightness is 8 10mm LEDs in parallel. Since we have 16 red LEDs here, I soldered a common anode (the longer lead) for the 8 LEDs on the left side and then a common anode for the 8 on the right side. For the white LEDs, I soldered together the anodes of the first and third LEDs and the anodes of the second and fourth LEDs. The cathodes of each LED can be left pointing outward. Solder a jumper wire to each set of connected LEDs (there should be 4 total) anywhere along the common anode for each set (see picture 4)

Note: Look at the fourth picture to see the proper soldering for the white LEDs, the other pictures show an attempt that do not work with this code! The first and third white LEDs should be sharing a common anode and the second and fourth should share one. The originals show one and two sharing an anode and three and four sharing an anode - this will not work!

Hot Glue Again

IMG_4219.jpg
IMG_4224.jpg
IMG_4225.jpg

Hope you didn't put away your glue gun just yet! After soldering the anodes of the LEDs, hit the base of each LED with a glob of glue just to ensure the anode and cathode stay separated and don't short!

Breadboard

IMG_4230.jpg
IMG_4232.jpg
IMG_4231.jpg

The wiring for this project is quite simple and can be done fairly easily with some analog circuitry - but with the Arudino you can easily go back and change the functionality and make this project even cooler, so why not use one?

  1. Grab your 20 wire ribbon cable and attach the female end of each wire to the cathode of each LED. From there, take the male ends and plug them all into a ground rail, and take a jumper from that rail and plug into the GND pin on your Arduino.
  2. Run a jumper wire from pin 2 onto the breadboard, connect it to a 180 ohm resistor, and connect that to the jumper coming from the anode of the LEDs on the right side of your ghost.
  3. Run a jumper wire from pin 5 onto the breadboard, connect it to a 180 ohm resistor, and connect that to the jumper coming from the anode of the LEDs on the left side of your ghost.
  4. Run a jumper wire from pin 3 onto the breadboard, connect it to a 180 ohm resistor, and connect that to the jumper coming from the anode of the one of the pairs of white LEDs (either pair will work)
  5. Run a jumper wire from pin 4 onto the breadboard, connect it to a 180 ohm resistor, and connect that to the jumper coming from the anode of the other pair of white LEDs

Arduino Coding

Attached is the code used to power these ghosts. Feel free to play with it and make them even cooler!

Downloads