Giter Club home page Giter Club logo

attiny85swingpov's Introduction

ATtiny85SwingPOV

Movie

This is a POV (persistence of vision) display by human-powered swinging.

Click to expand

3 demonstrations are available and it's changed by pressing the button.

  • Message mode: display the letters "ATtiny85SwingPOV" with scrolling.
  • Counter mode: display the number of how many time it's swinged.
  • Graphic mode: various colored OBONOs move up repeatedly.

Hardware

Components

  • ATtiny85
  • Optical tilt sensor: RBS32
  • NeoPixel Stick (WS2812 × 8)
  • Resistors: 220Ω and 15kΩ
  • Wires, connectors, a button, a switch, etc...

Schematic

Schematic

Example

Click to expand 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 Source 8 MHz (Internal)
Timer 1 Clock CPU (CPU frequency)
LTO (1.6.11+ only) Enabled
millis()/micros() Enabled
Save EEPROM EEPROM not retained
B.O.D. Level B.O.D. Disabled (saves power)

This sketch depends on following library. (You can add this by library manager)

Also, you should modify "SwingPov.cpp" depending on your hardware.

  • SWING_TIME_MIN and SWING_TIME_MAX: The threshold of each swing time in msec.
  • SWING_PHASE_ADJUST: The delay to toggle the direction after sensing tilt change by the percentage of each swing time.

License

These codes are licensed under MIT License.

attiny85swingpov's People

Contributors

obono avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.