Code Monkey home page Code Monkey logo

colour-clock's Introduction

Colour Clock

Requires

Adafruit Circuit Playground Express (Arduino-compatible)

NeoPixel RGB LED strand

Summary

The Colour Clock is an Arduino-based project that represents time as a colour outputed simultaneously on a strand of NeoPixel RGB lights. Rather than staying on all the time, as that would not be useful, a start and end hour and minute can be set within the program. Over the window during which it is on, the RGB LEDs cycle once, fading through the rainbow. It actualy cycles backwards, however, starting and ending on red (red--violet-->blue--turquoise-->green--yellow-->red). The start and end on red are because red is the least harsh colour of light on the eyes, ideal for waking and before sleep (relevent if the colour clock was to be used across a whole day). The rainbow goes backward so that the majority of the blue light happens earlier in the cycle, not only to prevent unnecessary blue-light exposure before sleep, but to gently introduce blue light to encourage wakefulness as the day begins.

The Colour Clock is also useful for tracking time over shorter periods, like one Pomodoro working session.

Pins

DATA - 6

Sliding switch (internal) - 7

Pins, number of LEDs, start and end times, and brightness can all be changed at the top of the code to match your personal preferences and hardware needs.

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.