CompletedATtiny Focus Timer
License
:CC BY-NC-SA 4.0
Description
ATtiny Focus Timer
A minimal, distraction-free focus timer built around the ATtiny1614 microcontroller.
Press a button and get back to work - 10 WS2812B LEDs show your progress as a filling bar, then gently pulse and beep when time is up.
Created by @marius.builds
HOW IT WORKS
The timer cycles through four states:
Idle - All LEDs glow white at low brightness, no sound.
Running - Green progress bar fills one LED at a time, no sound.
Completed - All LEDs pulse green for a 20-second grace period, with a finish melody (bee-beep-bee-beep).
Alerting - All LEDs pulse red, with a short beep every 2 seconds.
BUTTONS:
- In Idle: each of the 4 buttons starts a preset timer (10 / 20 / 30 / 60 min).
- In Running: any button cancels and resets.
- In Completed or Alerting: any button acknowledges and returns to Idle.
HARDWARE
- ATtiny1614 (x1) - Programmed via megaTinyCore + UPDI
- WS2812B / NeoPixel LEDs (x10) - Directly driven from PA3
- Tactile push buttons (x4) - Connected to PB0-PB3, using internal pull-ups
- Passive piezo buzzer (x1) - Driven from PA6 via tone()
SOFTWARE
Dependencies:
- megaTinyCore - Arduino core for modern tinyAVR (ATtiny x04/x14/x24 series)
- tinyNeoPixel_Static - included with megaTinyCore; lightweight NeoPixel driver for tinyAVR
FLASHING:
- Install megaTinyCore via the Arduino IDE Boards Manager.
- Select ATtiny1614 as the target board.
- Set the programmer to CH340 UPDI (or whichever UPDI method you use).
- Open ATTiny-FocusTimer-V2.1.ino and upload.
Sketch can be found here : https://github.com/mariusmym/ATtiny-Focus-Timer
ENCLOSURE
The project includes a 3D-printed case designed to house the PCB, LEDs, and buttons in a compact, desk-friendly form factor. STL files are in the case/ folder and were designed for FDM printing with no supports needed.
Two top case formats are available. The one-piece design requires printing in a bright color (ideally white) so the LED light can pass through. The second design has a cutout for the LEDs, with a separate LED cover you can print in transparent or any bright color, allowing the main case to be any color.
The original CAD is included in .f3z format. An external link for the case: https://www.printables.com/model/1689049-attiny-focus-timer-case
Design Drawing
The preview image was not generated, please save it again in the editor.BOM
Bom empty
CloneProject Members
Intellectual Property Statement & Reproduction Instructions
This is an open-source hardware project. All intellectual property rights belong to the creator. The project is shared on the platform for learning, communication, and research only; any commercial use is prohibited. If your intellectual property rights are infringed on EasyEDA, please notify us by submitting relevant materials in accordance with the Rules for Complaints and Appeals of IPR Infringement.
Users must independently verify the circuit design and suitability when replicating this project. All risks and consequences are borne by the user, and the platform assumes no liability.
Empty


Comment