A pseudo-falling-sand toy using an ATtiny85.
- Some LEDs of the 16×16 LED matrix light like sands in a box. You can enjoy falling sands by tilting the device.
- The amount of sand can be changed by pressing one button.
- The arrangement pattern of the wall can be changed by pressing the other button.
- If it's powered on with holding both buttons down, the maintenance mode starts.
- You can check current values of the axis accelerometer.
- The calibration procedure will starts by holding both buttons down for a while. If it starts, place the device on a flat surface.
- An ATtiny85
- Two 16×8 LED matrix modules with HT16K33
- One module must be tuned to be assigned I2C address to 0x71 (default is 0x70)
- A 3 axis accelerometer module with MMA7455
- A battery holder and battery(ies)
- Two tactile switches
- A slide switch
- Two 10kΩ resistors
- A 0.1μF electrolytic capacitor
- Wires, connectors, etc...
Install ATTinyCore boards to the Arduino IDE and configure the settings as follows.
Attribute | Value |
---|---|
Board | ATtiny25/45/85 (No bootloader) |
Chip | ATtiny85 |
Clock | 16 MHz (PLL) |
B.O.D. Level | B.O.D. Disabled (saves power) |
Save EEPROM | EEPROM retained |
Timer 1 Clock | CPU (CPU frequency) |
LTO | Enabled |
millis()/micros() | Enabled |
- SimpleWire.h
- Copyright (c) 2020 Sasapea's Lab. All right reserved.
These codes are licensed under MIT License.