Skip to content

A pseudo-falling-sand toy using an ATtiny85

License

Notifications You must be signed in to change notification settings

obono/ATtiny85FallingSand

Repository files navigation

ATtiny85FallingSand

Movie

A pseudo-falling-sand toy using an ATtiny85.

Instruction

  • 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.

Hardware

Components

Schematic

Click to expand

Examples

Click to expand Click to expand

Software

Build environment

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

Acknowledgement

  • SimpleWire.h
    • Copyright (c) 2020 Sasapea's Lab. All right reserved.

License

These codes are licensed under MIT License.

References