Code Monkey home page Code Monkey logo

clock-ctrl's Introduction

clock-ctrl

Code to control a clock and its CRT display. Inspired by the David Forbes CRT clock. The general display architecture uses Lissajou curves to draw graphics on the CRT. For a good overview, see http://oscilloclock.com/archives/333.

The clock by David Forbes (and subsequent versions by Aaron Stokes) were done on a 8 bit microprocessor plus discreet logic. I decided to create my own version, and used a Cypress PSOC chip. The generation of the required waveforms is done on the programmable logic fabric of the PSOC. The generation of the blanking waveform (used to selectively blank each 45 degree segement of the ellipses) is also generated in the PSOC fabric, and aligned in time with the sinuoids. The additional hardware on the controller board is mostly analog, except for the DS3231 real-time clock and the MAX509 multiplying DAC.

Because I chose to program in C, and because my hardware architecture differs from the original Forbes clock at the lowest levels, I have written 100% of the code from scratch, but I use the font design from the open source Forbes/Stokes project. I also use a piece of Verilog code that instantiates a sin lookup table in the PSOC programmable logic fabric. This was contributed by a member of the Cypress PSOC Developer Forum.

To be continued.

clock-ctrl's People

Contributors

mikeboich avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

rubaz525

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.