Simulated LED Sand Physics!

These LEDs interact with motion and looks like they’re affect by gravity. An Adafruit LED matrix displays the LEDs as little grains of sand which are driven by sampling an accelerometer with Raspberry Pi Zero!

The 3D Printed handles make it easy to hold the 64x64 LED Matrix and the two buttons make it easy to switch modes or reset simulations!

The code, written by Phillip Burgess, simulates physics by calculating collisions and terminal velocity.

Prerequisite Guides


I suggest walking through the following guides to get a better understanding of the electronics.



14 x M2.5x5mm Screws
M2.5x5mm Screws
4 x M3x5mm Screws
M3x5mm Screws

64x64 RGB LED Matrix - 2.5mm Pitch

Winter time can be rough in the city. The sky is gray. The weather is unpredictable. So slough off those seasonal blues with some Times Square razzle dazzle from this...

Adafruit RGB Matrix Bonnet for Raspberry Pi

You can now create a dazzling display with your Raspberry Pi with the Adafruit RGB Matrix Bonnet. These boards plug into your Pi and makes it super...
This guide was first published on Feb 28, 2018. It was last updated on Feb 28, 2018.
This page (Overview) was last updated on Oct 31, 2020.