项目作者: no-go

项目描述 :
attiny85 with white LED and 128x32 i2c oled display - 2 buttons for set hours and minutes
高级语言: C++
项目地址: git://github.com/no-go/Attiny85Watch.git
创建时间: 2017-11-03T23:58:21Z
项目社区:https://github.com/no-go/Attiny85Watch

开源协议:The Unlicense

下载


ATtiny85 Watch

Use a ATtiny85 8pin AVR chip as watch with a alarm LED, a 128x32 i2c oled display and 2 buttons for set hours, minutes and count down (alarm).

Project page

Jochen Peters Krefeld

Features

  • optimized for 1MHz (8Mhz needs more power)
  • displays the Lipo power in mV (menu mode)
  • Button 1: Display on (clock mode) or set hour/minutes
  • Button 2: switch through clock, led on, menu mode (set hours), menu mode (set minutes)
  • 1/8th of a second: a hour glas
  • CPU power down between every cycle of 120ms (with 128Hz clock)
  • time accurency: about 2sec in 1hour
  • lifetime: above 46h (65mAh Lipo after charging it)
  • low battery symbol

Circuit

Circuit

Video menu branch

Vibration alarm

I use a BC108-C . Set Vibration motor + to RAW (3.7 till 4.1V) and V-motor - to the collector, GND to the emitter, LEDPIN to the basic.

  1. ...xx..
  2. ..x..xxxx
  3. .x..E....x
  4. .x.....B.x
  5. .x..C....x
  6. . xxxxxxx

future steps

  • nice circuit / more details
  • programming how-to

Images (old, development)

easy wired
tiny size
make your own writsband
normal font
futur font
dots font
bold dot font

Chassis build with 1:3 silicone (hardware store), food coloring and maize starch (supermarket).

Strange timing and flashing

I have to switch via sh 8MHz.sh skript from 1MHz back to 8MHz, because Arduino IDE
can not flash ATtiny85 in 1MHz mode. After programming I have to switch ATtiny85 back with
the sh 1MHz.sh script.

Thanks to ..

Thanks to Neven Boyanov and the Tinusaur/SSD1306xLED project. (MIT License)
The Tinusaur Project. I modified it to use a
128x32 instead of 128x64 oled display.