FUN WITH LED MATRIX as well as mouse

August 25, 2022 0 By bqk

[Brad] just obtained a 32×32 RGB LED matrix as well as he jumped best into the deep end with his very first project. To try out his skills on the gadget he utilized 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 occurs to be a sphere mouse which makes sense as we don’t keep in mind having seen any type of optical mice as of late that weren’t USB. The PS2 protocol is simple to checked out utilizing a microcontroller; much more about that in [Brad’s] job compose up.

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

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