Giter VIP home page Giter VIP logo

desk_clock's Introduction

Desk Clock

A Nerves-powered, NTP-synchronized, SPI-connected, OLED-outputting desktop clock, running on a Raspberry Pi. It was built as a demo for a talk given at the July 2020 Toronto Elixir Meetup, but is also suitable for actual use.

Time is synchronized via NTP and display updates are adjusted to optimize the timeliness of the displayed time. In typical operation, the displayed time should be no more than ~5ms out of sync with the device's NTP dervied time.

It looks like this:

desk_clock

Building Hardware

Desk Clock runs on a Raspberry Pi and uses the following peripherals:

  • An SSD1322 display configured and connected as suggested in the SSD1322 library
  • A PEC11-style rotary encoder connected as per the docs. See here for an easy to use breakout board suitable to purpose.

Building the Application

Desk Clock is a standard nerves application, so it's best to consult their excellent docs for the most up-to-date guide.

Setting up Networking

Desk Clock uses VintageNet to configure networking. In the common case where you want to set up wifi, you'll want to ssh into the device and run a VintageNet.configure command as described in their README. Settings made in such a way will be persistent.

User Interface

The rotary encoder attached to Desk Clock performs the following tasks:

  • When rotated, it cycles the top time display through the available timezones
  • When rotated while depressed, it cycles the bottom time display through the available timezones
  • When tapped, it toggles the display on and off

desk_clock's People

Contributors

mtrudel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

layeddie

desk_clock's Issues

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.