- Home
- DIY Kits
- DIY - Motion Sensing Dice Kit with MPU6050 (Accelerometer + Gyroscope), MAX7219 Dot matrix Display and Arduino Nano DIY - Motion Sensing Dice Kit with MPU6050 (Accelerometer + Gyroscope), MAX7219 Dot matrix Display and Arduino Nano
- Description
- Reviews
This Kit involves creating a digital motion-sensing dice using the Arduino Nano, MPU6050 and MAX7219. When shaken, the device generates a random dice roll and displays it on the dot matrix LED.
Package Contains:
- Arduino Nano - 1
- USB Programming Cable - 1
- MPU6050 (Accelerometer + Gyroscope Sensor) - 1
- Max7219-1 Dot Matrix Display (8x8 LED Matrix) - 1
- Cable Male to Male - 1
- Cable Male to Female - 1
- 400 point Breadboard - 1
- Breadboard power module - 1
Project Details Link:
Working Principle
-
The MPU6050 detects motion through its accelerometer.
-
The Arduino Nano processes this data and determines if a shake has occurred based on a threshold value.
-
Once detected, a random number (1-6) is generated.
-
The corresponding dice number is displayed on the MAX7219 Dot Matrix Display.
Implementation
-
Initialize MPU6050 using the Wire (I2C) library to read accelerometer data.
-
Detect a shake by calculating the acceleration magnitude and comparing it to a threshold.
-
Generate a random number (1-6) and display the corresponding pattern on the 8x8 Dot Matrix Display.
-
Optional animations can be added to simulate a rolling effect before settling on a final number.
Note: Product image is for illustrative purposes only. The contents of the kit are limited to electronic modules and accessories as specified in the product description.