Giter VIP home page Giter VIP logo

word-clock's Introduction

Modular word-clock software for micropython

Word clock

  • Support the addition of new clock faces (other dimensions, language, layout,...). see src/clock_face
  • Compatible with neopixel led strips
  • Light sensor based luminosity adjustment
  • Create your own animations. see src/rendering
  • Asynchronous implementation with asyncio

Sample wiring with Pi Pico

Word clock sample schematic with raspberry pi pico Word clock wiring with raspberry pi pico Word clock usb socket

Usage

Install Requirements

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements-dev.txt

Install code on rpi

Plug Raspbery Pi via USB,

mpremote cp -r src :
mpremote cp boot.py :.
mpremote cp main.py :.

Unplug and plug the clock to restart it.

Set time

First, edit the time in src/utils/set_date_time.py so that it reflects the current time (plus a couple of seconds). Then run this command to set the time on the clock.

TODO: use the computer time to automatically set the clock time

mpremote run src/utils/set_date_time.py

Dev

# run the main loop to catch any error
mpremote run main.py 

Build

TODO: document build and release CAD files (Frame & PCB)

  • Glass front with die-cut sticker on the back
  • USB-C powered
  • Frame laser cut in 4mm MDF
  • Custom PCB board to wire the LED matrix

Font used for the clock face: wordclock-stencil-mono

word-clock's People

Contributors

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