Pacman/Ghost LED Matrix Using Arduino

Pacman Ghost LED Matrix (1)

We created a LED matrix that shows a Pacman and a Ghost. The figure changes by pressing a button. Also, the ghost takes the color according to the external temperature. It means, if it is cold, the figure turn blue, but if it is warm outside it will change to red.Pacman Ghost LED Matrix (1)

Supplies

  • 71 leds (led strip)
  • 1 push button
  • 1 Arduino Uno
  • 1 Temperature sensor BME280
  • Cardboard
  • Translucid paper
  • Jumpers
  • Power supply 5V

Step 1: ​ShapeShape 1 (1)

To start with the project, we built-up the idea on paper in order to know how many LEDs we could assign and how to place and connect them.

With the same structure for the ghost, we set it for the Pacman shape.

Step 2: Connect WiresConnect Wires (1)

Now, we already know how to place and connect the leds for the different shapes. Then we cut and solder the led strip, in a way to make easy at the moment to set the leds.

Step 3: Place the Led Strip on the Platform Led Strip on the Platform (1)

Then, we design a platform where we are going to place the LED strip. Here is the design. Once it is cut by the laser cut, we placed the LED strip.

Step 4: Connect the ArduinoConnect the Arduino (1)

Once all the wires are connected and placed, we connect everything to the Arduino. The sensor is located on pin A4. The push btton is located on pin 4. And the LEDs are connected to pin 7.

Step 5: Grid CreationGrid Creation (1)

Next, we design the grid structure. This structure will help us to create squares for each LED, also it allows the LEDs to glow more. Then we set the translucent paper so the lights can stand out.

Step 6: Box CreationBox Creation (1)

Afterwards, we created a box to place the whole project, where we can “hide” the Arduino. For this, we use an A-Box template.

Step 7: Build-up the ProjectProject (1)

We put together all the structure built before. The Arduino and the power supply are placed inside the box, allowing the LED grid to stand out externally. The pushbutton is located in one of the walls of the box and once you press on it, the Pacman animation starts. When you press again, the ghost animation starts. This last animation may vary depending on the ambient temperature. When the temperature sensor detects a cool weather, the ghost turns blue, while when there’s a warm weather it turns red.

Step 8: Code

Here you can find the Arduino code for this project.

Attachments

Read more: Pacman/Ghost LED Matrix

Leave a Comment

Your email address will not be published. Required fields are marked *