Giter VIP home page Giter VIP logo

mora_blinker's Introduction

Mora-blinker

Goals

  • Provide a simple and cheap educational embedded project
  • Demonstrate basic electric design
  • Demonstrate both C++ basics and advanced tricks
  • More entertaining first program than a 'Hello world'
  • Educate for software design in low-end environments

How to use

  • The schematics and the PCB board can be found in the hw folder. You can open the files with KiCAD 6
  • The software is in the sw folder. Do not forget to also pull the git submodules!
  • The build environment for the software includes avr-gcc 11.2, avrdude 6.4 and make 4.3
  • Do not connect the battery when using a 5V ISP!
  • After building the PCB, connect an STK500 or similar, and type make program
  • You can switch animations with the reset button

Bill of materials

  • CR2032 holder
  • CR2032
  • 100 nF capacitor
  • Yellow LEDs (x5)
  • 120 ohm resistors (x5)
  • 9.1 kohm resistor
  • Button
  • ATtiny13A

Theory of operation

The timer overflow interrupt drives a soft-PWM routine. The running animation changes an array of the LEDs' duty cycles. Resetting the device, the content of the SRAM is not random, so the index of the last animation is known, except for the cold-start, when it is random (not a problem). Some data is stored in the EEPROM to save space.

Known issues

  • Fuse calculation could be more describing
  • May further optimize base code
  • Less numeric constant

Work of a student

mora_blinker's People

Contributors

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