Giter VIP home page Giter VIP logo

awatch's Introduction

AWATCH - A Simple Arduino Watch


PREAMBLE


AWATCH is a simple watch that shows the time on an OLED display and can be operated with one button only. It shows hours, minutes, seconds, day and battery voltage.
To save power AWATCH uses the watchdog timer of AVR microcontrollers. So the display remains dark and the microcontroller in sleep mode until the button ist pressed. Longpressing the button alters the setting state, while shortpressing alters the setable value.

Have fun
deetee


OPERATION


AWATCH uses an OLED display (64x48 I2C SSD1306) and because of the size of less then 4 Kilobytes it can be compiled for many Arduino/AVR microcontrollers (i.e. ATTINY or Digispark).

Setting Modes (alter with longpressing the button):

  • 0 ... Show time, no setting
  • 1 ... Reset seconds
  • 2 ... Add one minute
  • 3 ... Add 10 minutes
  • 4 ... Add one hour
  • 5 ... Add 10 hours
  • 6 ... Add one day

Note: After the timeout of 5s AWATCH enters the sleep mode and resets the setting mode.

Tweaking:

  • Define the brightness of the display (0...255) with: #define CONTRAST 0x80
  • Define the timeout (in ms) with: #define TIMEOUT 5000
  • Set 12/24h-format with: #define TIME1224 24UL // 12 or 24 hours
  • Calibrate watchdog intervall time (ms) with: static unsigned int wdtmillisperinterrupt = 1072;

CIRCUIT DIAGRAM


 _________________
|   OLED-DISPLAY  |
|  64x48 SSD1306  |
|_GND_VCC_SCK_SDA_|
   |   |   |   |
           |   |
 __|___|___|___|__
| GND VCC P2  P0  |
|  AVR  ATTINY85  |
|_P3______________|
   |   
   / Set button   
   |
  GND

awatch's People

Contributors

zooxo avatar

Stargazers

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