Pacman/Ghost LED Matrix

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


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

Step 1: ​Shape

Step 1 Pacman Ghost LED Matrix

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 Wires

Step 2 Pacman Ghost LED Matrix

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

Step 3 Pacman Ghost LED Matrix

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 Arduino

Step 4 Pacman Ghost LED Matrix

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 Creation

Step 5 Pacman Ghost LED Matrix

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 Creation

Step 6 Pacman Ghost LED Matrix

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 Project

Step 7 Pacman Ghost LED Matrix

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.

Source: Pacman/Ghost LED Matrix

Leave a Comment

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

Scroll to Top