![]() I wanted them all to be the same size relative to one another, so each pixel would be the same size on each costume. Once we knew the width and height by pixels we have to decide how big we wanted to make the panels. Pac-Man is 13x13 and Ms.Pac-Man is 14x14. Size of Panels You can see by the layout in Excel that the Ghosts are 14 pixels in height by 14 pixels in width. Pac-Man is 151, which means we needed 628 LEDs for the pixels. Number of LEDs The Ghosts cover 170 pixels, Pac-Man is 137, and Ms. The individual numbers of the LEDs are needed later for programming the Ardunio board. I then laid out each frame of the animations in Excel so we know where the number of LEDs and the overall layout of each board. ![]() For instance you can see the different frames of the ghost legs and Pac-Man's mouth in the sprites above. These help ensure we are getting the correct pixel pixel layout and shows each frame of the animations. I wanted it to be accurate and authentic to the original 8-bit characters so I began by looking up the original game sprites. Pac-Man, and the ghosts Blinky and Pinky. We chose Pac-Man characters for the family. Your goal, as in the original pacman game, is to collect as many pellets as you can before a ghost catches you.The first step is always planning, but hey it's worth noting, especially if you want to do a different 8-bit character. "w" is up, "a" is left, "s" is down, and "d" is right. You move around using the "w", "a", "s", and "d" characters. You can either connect it to your computer through a USB to UART converter, or by attaching a bluetooth wireless UART (like any common HC-05 module) and connect to your computer over bluetooth. This chip can run up to 80MHz which is enough to drive the matrix as well as perform game logic.Ĭurrently, the Pacman character is controlled over the UART. The microcontroller used to drive the LED matrix is a TI Tiva C launchpad board containing a TM4C123GH6PM chip. The LED Matrix is the RGB LED Panel from sparkfun and is driven fast enough to be able to display 7-bits of color information per color (R, G, and B).
0 Comments
Leave a Reply. |