Fun with LED matrix and mouse

fun-with-LED-matrix-and-mouse

[Brad] just acquired a 32×32 RGB LED matrix and he jumped right into the deep end with his first project. To try out his skills on the device he used an Arduino to drive a slew of pixels with bouncing-ball physics.

The demo starts off with a hail storm of multi-colored falling pixels. In the center of the storm is the cursor, which he controls with a PS2 mouse. That happens to be a ball mouse which makes sense as we don’t remember having seen any optical mice as of late that weren’t USB. The PS2 protocol is easy to read using a microcontroller; more about that in [Brad's] project write up.

By holding down the left mouse button he can draw persistent pixels on the screen. The falling balls then interact by bouncing off of the obstacles. The image above shows a frame on three sides of the screen which has trapped the pixels near the bottom. He can also erase pixels, which has the effect of draining the trapped balls like a hole in a bucket of water. Neat!

Bouncing ball physics are fun to experiment with. Here’s one being driven by an analog computer.

Comments

  1. oodain says:

    very neat and clean,
    the “physics” arent as advanced as falling sand games but the concept and challenge of it is absolutely amazing.

    to me the most interesting was the brief hint at the requirements for running ps2 mice

  2. Roger Wilco says:

    ” we don’t remember having seen any optical mice as of late that weren’t USB”
    i have an optical ps2 mouse conected to my pc right now and they are very common

  3. Elliot says:

    He is using a PIC, not arduino. From linked article “More specifically, I am using the PIC18F25K20 microcontroller contained on the PICnDuino. Any Microcontroller should work fine as long as you have enough PORT pins.”

  4. Galane says:

    Where did he get that display? How much? Is there a price break for buying 300? That’s enough to put together a VGA display.

  5. ab solutely says:

    32×32, huh? There’s 6502asm.com which is a 6502 online emulator which happens to have a 32×32 pixel display, too. Would be cool to interface the two…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,732 other followers