AR-99ArduinoIntermediatePremium

Arduino Tilt-Controlled Digital Sand (MPU-6050 + 8x8 NeoPixel Matrix)

LED sand that flows whichever way you tilt the circuit! The MPU-6050 accelerometer measures the tilt, and 24 grains on the 8x8 NeoPixel matrix fall toward gravity and pile up at the edges like real sand. A theme button switches between sand, water, lava and rainbow colors. Library-free I2C reading, turning tilt into a gravity direction and a simple falling-sand algorithm in one project.

0.0(0)
Arduino Tilt-Controlled Digital Sand (MPU-6050 + 8x8 NeoPixel Matrix)
Lights that flow like sand in a box when you tilt it: 24 coloured grains on the 8x8 LED screen slide towards the side you tip it, pile up against the edge and form a little heap. The MPU-6050 tilt sensor measures which way the circuit is leaning, and the steeper you tilt, the faster the grains run. Each press of the button switches the colours between sand, water, lava and rainbow.

Source Code

Premium Content

The source code, block version and FAQ of this project are open to Premium members.

  • All Project Code
  • Block version
  • Frequently Asked Questions