Giter Site home page Giter Site logo

attiny85_stopwatch's Introduction

Stopwatch for ATtiny85

This repository contains an Arduino sketch for a simple stopwatch using ATtiny85 microcontroller with an OLED display.

Features

  • Start, stop, and reset functionality
  • Long press for reset
  • Display count up to 999 seconds

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Arduino IDE installed on your computer
  • ATtiny85 microcontroller
  • Arduino board or programmer
  • An OLED 32x64 display with SSD1306 controller
  • Installed TinyWireM and Tiny4kOLED libraries from the Arduino Library Manager

Installation

  1. Install the required libraries through the Arduino Library Manager:

    • TinyWireM
    • Tiny4kOLED
    • TinyOLED-Fonts
  2. Configure the Arduino IDE for ATtiny85 following this setup guide.

  • Don't overlook capacitors for the Arduino reset pin and the Attiny power supply.
  • Use Optiboot as the bootloader
  • Burn bootloader before uploading sketch
  1. Connect your ATtiny85 to your programmer and computer.

  2. Select the correct board and port in the Arduino IDE.

  3. Upload the sketch to your ATtiny85.

Usage

After uploading the sketch to ATtiny85, the stopwatch operates as follows:

  • A short button press starts and stops the stopwatch.
  • Next short press re-starts the stopwatch.
  • A long button press (more than 2 seconds) resets the stopwatch to zero.

attiny85_stopwatch's People

Contributors

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