3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Analog clock for graphic LCD

Analog clock for graphic LCD
Writing a code for an analoge clock may seem a bit of a daunting task. Especially the calculations for the positions of the hands, but it isn't really that hard at all.

In this instructable I will talk a little bit about the theory and then we'll move on to the actual code itself. This was just a project build on the breadboard, while building my wifi radio. It started life as the script for a grafical volume button and ended up as a clock that never made it in the final project but it might come in handy for one of you out there.

My code will be written in Bascom but it will be very easy to translate it into your favorite language once you understand the theory.
 
Remove these adsRemove these ads by Signing Up
 

Step 1What do we need?

For this instructable, you'll need:

A breadboard
An Atmega16
A grapic LCD (240*128)
A DS1307 Realtime Clock
A 32.768kHz quartz crystal
A 3V battery + holder
Two 4K7 resistors
Two 1K5 resistors
Two pushbuttons
A 10K potentiometer
Your favorite programmer

« Previous StepDownload PDFView All StepsNext Step »
2 comments
Mar 23, 2011. 2:16 PMACASSIS says:
Hi janw,

Nice DIY, congratulations.

My suggestion to improvement:
Each 12 minutes you need to increase the hour pointer.

I did an analog clock fews year ago (~ 12 years), but I didn't improve its visual:
https://acassis.wordpress.com/2009/03/29/nostagia-ponto-com/

BR,

Alan

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
91
Followers
25
Author:janw
My hobbies are mainly music and electronics but I like to read and learn about a lot more than that.