Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 4th August 2008, 12:43 PM   #1
Default Digital clock

now i know this query must have been posted a million times not only in this forum, but in all the other forums that have anything to do with electronics.

here goes: HOW TO BUILD A DAMN DIGITAL CLOCk?!!

why not be the first in history of the internet to answer it?
yep! i have serched all the possible sites, no simple answer anywhere. this is my last hope.

ok guys, pls answer. i am not an electronics student, but an IT student. So I hope you understand my problem.

i know how to build a clock using a 555 timer with a counter. but it aint accurate enough, or so it seems.

i don't need any fancy mechanism to set the time, alarm etc etc..., just a simple clock that runs on DC power. i repeat, 'DC'. it may start from 00:00 no problem.

preferably a microcontroller without using a crystal ocsillator.
or just tell me how to get a pulse for half a sec, so that it can be fed to a counter and 7 segment display and stuff. and don't forget to explain how it works, only the clock generator part, i'll manage the remaining counter and 7 seg display part.

pls excuse me for a long post, but pls try to answer.
amsung2 is offline  
Old 4th August 2008, 12:51 PM   #2
Default

If you use a micro-controller, then that's all you need - no counters or anything else.

If you check the MicroChip website there are old application notes for just such devices.

It's really a VERY common simple project for a micro-controller.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 4th August 2008, 01:19 PM   #3
Default

hi,
I just Googled for: LED digital clock circuits

how many would you like.

http://ourworld.compuserve.com/homep...den/dclock.htm

http://www.hobbyprojects.com/C/Clock_Circuits.html
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 4th August 2008 at 01:21 PM.
ericgibbs is offline  
Old 4th August 2008, 03:36 PM   #4
Default

Quote:
Originally Posted by amsung2 View Post
i know how to build a clock using a 555 timer with a counter. but it aint accurate enough, or so it seems..............preferably a microcontroller without using a crystal ocsillator.
Well if you don't want to use a crystal that begs the question, how accurate is "accurate enough"?

Mike
Mike, K8LH is offline  
Old 4th August 2008, 04:04 PM   #5
Default

If you're interested, I hope to post a single chip Charlieplexed Clock based on the experiment below in the Projects sub-forum this weekend.

The first installment is just the Clock portion of the experiment below and the source is written using the free/lite version of BoostC. Features include;

<> run and set modes (a display 'group' flashes at 2 Hz in set mode)
<> switch debouce (press and release states)
<> switch press beep feedback

Subsequent installments will include the Calendar, Alarm, and (appliance) Timer functions using the same base hardware (PIC, six digit display, four switches, etc.) as I finish moving the code over from assembly language to C.

Please note that the drawing is misleading in that the displays are wired in a Charlieplexed matrix even though the drawing suggests they're wired as a standard multiplexed matrix. I'm working on a new drawing.

Regards, Mike
Attached Thumbnails
Digital clock-charlie-clock-1.jpg   Digital clock-charlie-clock-2.jpg   Digital clock-clock-2v1-small-.jpg.JPG
Views:	42
Size:	107.8 KB
ID:	21461  

Last edited by Mike, K8LH; 6th August 2008 at 12:55 PM.
Mike, K8LH is offline  
Old 4th August 2008, 04:17 PM   #6
Default

Quote:
Originally Posted by amsung2 View Post
now i know this query must have been posted a million times not only in this forum, but in all the other forums that have anything to do with electronics.

here goes: HOW TO BUILD A DAMN DIGITAL CLOCk?!!
Here's some links to simple clocks I've built. Might give you some ideas.

http://ghmicro.com/index.php/pic/25-...ockthermometer
http://ghmicro.com/index.php/pic/15-...-lcd-interface
http://ghmicro.com/index.php/project...2-simple-clock
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 4th August 2008, 04:44 PM   #7
Default

Quote:
Originally Posted by Mike, K8LH View Post
I hope to post a single chip Charlieplexed Clock based on the experiment below
Mike! Dial your ISO way down. Those pics are grainy as hell (well lit though ). Auto-ISO has no place in electronic macros. Keep it under at or under 100. 50 or 80 is good.
__________________
=========================
Futz's Microcontrollers & Robotics
=========================
futz is offline  
Old 5th August 2008, 07:54 AM   #8
Default

Quote:
Originally Posted by Nigel Goodwin View Post
If you use a micro-controller, then that's all you need - no counters or anything else.

If you check the MicroChip website there are old application notes for just such devices.

It's really a VERY common simple project for a micro-controller.
okay, so can you name one micro controller reliable & cheap enough to use?
amsung2 is offline  
Old 5th August 2008, 07:57 AM   #9
Default

Quote:
Originally Posted by Mike, K8LH View Post
Well if you don't want to use a crystal that begs the question, how accurate is "accurate enough"?

Mike
well mike, i need it to work as long as the batteries last without any significant error, 555 delivers about 15 min error every day, astronomical!
amsung2 is offline  
Old 5th August 2008, 08:12 AM   #10
Default

Quote:
Originally Posted by Mike, K8LH View Post
If you're interested, I hope to post a single chip Charlieplexed Clock based on the experiment below in the Projects sub-forum this weekend.

The first installment is just the Clock portion of the experiment below and the source is written using the free/lite version of BoostC. Features include;

<> run and set modes (a display 'group' flashes at 2 Hz in set mode)
<> switch debouce (press and release states)
<> switch press beep feedback

Subsequent installments will include the Calendar, Alarm, and (appliance) Timer functions using the same base hardware (PIC, six digit display, four switches, etc.) as I finish moving the code over from assembly language to C.

Please note that the drawing is misleading in that the displays are wired in a Charlieplexed matrix even though the drawing suggests they're wired as a standard multiplexed matrix. I'm working on a new drawing.

Regards, Mike
hey mike, can u pls explain the workin of this clock?
http://www.electro-tech-online.com/a...v2-1-chip-.png

is that the one thats misleading?? finally, looks like a simple enough clock to build, eagerly awaiting a reply..
amsung2 is offline  
Old 5th August 2008, 09:12 AM   #11
Default

Quote:
Originally Posted by amsung2 View Post
okay, so can you name one micro controller reliable & cheap enough to use?
Any PIC with enough pins, the number of which depends on how you actually construct it.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 5th August 2008, 11:01 AM   #12
Default

Quote:
Originally Posted by amsung2 View Post
hey mike, can u pls explain the workin of this clock?

is that the one thats misleading?? finally, looks like a simple enough clock to build, eagerly awaiting a reply..
It's the Charlieplexed display wiring that's misleading in that schematic. I've attached a display wiring detail (below). A Charlieplexed matrix uses a "floating" segment line which means you can't use standard multiplexed 2-digit, 3-digit, or 4-digit displays. I used non-multiplexed 2-digit displays in this project which means there's a lot more wiring to be done.

A clock is a clock, is a clock, is a clock (grin). They all work the same. I'll attach working BoostC code if you want to take a peek at the program but I still have to add repeat capability for the up and down arrow keys. Again, I hope to post a better schematic and final code for a plain vanilla Clock in the Projects forum this coming weekend.

Regards, Mike
Attached Thumbnails
Digital clock-charlie-detail.png  
Attached Files
File Type: txt LED Clock.c.txt (12.1 KB, 35 views)

Last edited by Mike, K8LH; 5th August 2008 at 10:58 PM.
Mike, K8LH is offline  
Old 5th August 2008, 11:04 AM   #13
Default

I forgot to tell you that I tried running the clock off of the internal 8 MHz oscillator yesterday afternoon.

The internal oscillator drifts up and down a bit with temperature so I wasn't too surprised to see the time drift by tens of seconds per hour.

The crystal and caps' are definately worth the extra $1 (usd) in parts.

Mike

Last edited by Mike, K8LH; 5th August 2008 at 11:49 AM.
Mike, K8LH is offline  
Old 5th August 2008, 12:29 PM   #14
Default

Quote:
Originally Posted by amsung2 View Post
well mike, i need it to work as long as the batteries last without any significant error, 555 delivers about 15 min error every day, astronomical!
Batteries? On a 7 segment LED clock? Well unless it's on a big honkin' lantern battery you should probably forget it (grin).

Mike
Mike, K8LH is offline  
Old 5th August 2008, 01:56 PM   #15
Default

Quote:
Originally Posted by Mike, K8LH View Post
Batteries? On a 7 segment LED clock? Well unless it's on a big honkin' lantern battery you should probably forget it (grin).
Make that a car battery!
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
clock, digital

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Digital Clock help Tom McCurdy General Electronics Chat 3 14th July 2005 03:48 AM
digital clock agung General Electronics Chat 3 26th May 2005 01:47 PM
digital clock yukanti General Electronics Chat 1 2nd February 2005 01:24 PM
digital clock again! satellite5005 General Electronics Chat 2 17th April 2004 04:45 AM
digital clock dumbguy1 Micro Controllers 7 10th December 2003 10:05 PM



All times are GMT. The time now is 09:36 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker