Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Tools
Old 1st July 2006, 05:34 AM   #1
Default Digital Clock

Im looking to build a digital clock that uses power (and line freq) for the circuity. Ive got everything designed up to the counter. The problem Im having is how to make the minutes count. Ive got 1 Hz ( divide by 16 from 60Hz and you get 1Hz) for the seconds. Ive come up with 2 solutions:

1) Use two timers to count to 59 Seconds

2) Use Another Divide by to obtain the frequency of 1 Pulse Per Minute.

I dont want to do 1, since it will raise costs, and the size of the board (plus I have no use for a seconds Counter). The problem with 2 is that I dont know what frequency 1 Pulse per 1 Minute is (since there are 60 seconds in one minute, then 60 Cycles per minute =1 minute)

Does anyone know what the frequncy is? Or is there another option?
Overclocked is offline  
Old 1st July 2006, 07:30 AM   #2
Default

Quote:
Ive got 1 Hz ( divide by 16 from 60Hz and you get 1Hz) for the seconds.
I don't quite follow you were. 60/16 = 1? That doesn't seem to make sense.

Quote:
Im looking to build a digital clock that uses power (and line freq) for the circuity.
I also don't quite understand what you are saying when you say the digital clock that uses power and line frequency for the circuitry.

Quote:
I dont want to do 1, since it will raise costs, and the size of the board (plus I have no use for a seconds Counter). The problem with 2 is that I dont know what frequency 1 Pulse per 1 Minute is (since there are 60 seconds in one minute, then 60 Cycles per minute =1 minute)
I also don't understand what you are trying to say here. Can you reword it? But if I understand what you are trying to say, then 1 pulse per minute is just found by the formula:

f = 1/T = 1sec/1min = 1sec/60sec = 1/60
So an event that occurs once per minute has a frequency of 1/60 Hz.

It would really help if we had your circuit to look at since we have no idea how you are trying to go about this. If you are referring to using houshold AC line frequency as an oscillator signal for your clock, you do know this will make a horrible clock right? Since the frequency can and does vary a LOT.

Last edited by dknguyen; 1st July 2006 at 07:34 AM.
dknguyen is offline  
Old 1st July 2006, 11:16 AM   #3
Default

Quote:
Originally Posted by Overclocked
2) Use Another Divide by to obtain the frequency of 1 Pulse Per Minute.

The problem with 2 is that I dont know what frequency 1 Pulse per 1 Minute is (since there are 60 seconds in one minute, then 60 Cycles per minute =1 minute)

Does anyone know what the frequncy is? Or is there another option?
The problem actually is that you do not know what to divide 60Hz by to get 1Hz (second). Answer: Divide by 60, or 10x6. Either way, you will need two counters of some description.

AllVol

Last edited by AllVol; 6th February 2007 at 01:49 AM.
AllVol is offline  
Old 1st July 2006, 11:26 AM   #4
Paul Obrien
Default

I think were looking at a canidate for this years Darwin Awards
 
Old 1st July 2006, 10:31 PM   #5
Default

No, I actually relized that last night that I put down the wrong number after I shut my computer down and was in bed. I knew it was 60, but I was thinking of 16..

Quote:
Originally Posted by dknguyen

I also don't understand what you are trying to say here. Can you reword it? But if I understand what you are trying to say, then 1 pulse per minute is just found by the formula:

f = 1/T = 1sec/1min = 1sec/60sec = 1/60
So an event that occurs once per minute has a frequency of 1/60 Hz.

It would really help if we had your circuit to look at since we have no idea how you are trying to go about this. If you are referring to using houshold AC line frequency as an oscillator signal for your clock, you do know this will make a horrible clock right? Since the frequency can and does vary a LOT.
Yes, I am using 60Hz for the clock signal. Ive heard that it doesnt vary much (or at all), maybe your thinking of Line Voltage that varies alot. I will be using a small step down transformer for power, and probably using the same one to get my clock from.

I dont have a circuit to show yet, as Im stilling trying to figure out something. The minutes clock will go from 00 to 59. Once those numbers change it will change the 3rd counter (hours) to the correct setting, Say 1:00 (if the clock reads 00:59). The problem is, what happenes after 12:59? The minutes will clear to 00, and the hours counter will increment by 1 (the 2 will now be a 3) and the 1 will be blanked out. It should go to 1:00, but it doesnt. It goes to 3:00. Im guessing an AND gate would fix this, but the Counter Has to decrement by 1..

The chip I plan on using is 74193 or 7490 (or eq or by suggestion)
Overclocked is offline  
Old 1st July 2006, 10:55 PM   #6
Default

Perhaps I mistakenly carried over the variation of mains line voltage to frequency. now that I think about it...the stability of the AC line frequency has never come up.

16 and 60 are pretty close when you say them aloud. Yeah, when we are sleepy our words get slurred and if you are like me and whisper to yourself as you type that can cause problems.

Perhaps you can build the same counter circuit 2x times - each identical counter circuit increases one count for every 60 oscillations of an input AC signal and outputs an AC waveform 60x slower. You can then cascade the counters so each counter circuit feeds another counter circuit with a progessively lower frequency signal (frequency reduced by 60 each time). This would give you 2 identical circuits to build reducing costs and complexity and give you minutes, hours, 60 hours, 360 hours...etc. depending how many you cascaded..

If you wanted seconds counter you would just feed the main AC signal into a separate counter that just counts the periods of the AC signal...and does not output a waveform. It would basically be separate from all the other 1/60 cascaded counters.

Last edited by dknguyen; 1st July 2006 at 11:03 PM.
dknguyen is offline  
Old 2nd July 2006, 01:05 AM   #7
Paul Obrien
Default

http://www.play-hookey.com/digital/e...r_ic_4029.html has how to build just the clock you're after, together with a full explanation.
 
Old 2nd July 2006, 09:47 AM   #8
Default

Quote:
Originally Posted by dknguyen
Perhaps I mistakenly carried over the variation of mains line voltage to frequency. now that I think about it...the stability of the AC line frequency has never come up.
The long term stability of the mains frequency is extremely high, you should never need to adjust it after it's been set accurately - I don't know if it's still true or not?, but they used to adjust it during the night to keep clocks exactly on time.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 3rd July 2006, 01:43 AM   #9
Paul Obrien
Default

The power companies can change the frequency in times of overload as the transformers will work more efficiently at higher frequencies.
I know it was done during one of the coal miners strikes in the UK in the 1980's? and the local power does it very, very infrequently here.
 
Old 3rd July 2006, 03:03 AM   #10
Smile

Quote:
Originally Posted by Nigel Goodwin
The long term stability of the mains frequency is extremely high.
Nearly all low to mid-priced electric clock-radios depend on mains frequency for accuracy.

AllVol
__________________
Creationists have a world of evidence

Last edited by AllVol; 3rd July 2006 at 03:05 AM.
AllVol is offline  
Old 3rd July 2006, 03:09 AM   #11
Default

Really? I guess that makes sense. I was staring at my alarm clock a few weeks ago thinking there couldn't possibly be a quartz crystal in every single one.
dknguyen is offline  
Old 3rd July 2006, 07:45 PM   #12
Default

I dont have a crystal, but if I had it it would be used for a digital clock.
Heres a page tha might be helpful:
http://www.howstuffworks.com/digital-clock.htm
__________________
OK, Who put the LED in backwards?
catcat is offline  
Old 3rd July 2006, 09:49 PM   #13
Default

You can get quartz wrist watches for around $ 5 any time.
Have not looked lately at any new ones but my aging alarm clock runs of the power line, for power and timing but it has a rudimentary oscillator and battery to that it is fairly accurate even after a power outage. I guess today most have crystal collators for backup. Of cause all that is obsolete with the atomic clocks; that you newer have to worry about if it was not for changing the battery once a year.


Quote:
Originally Posted by dknguyen
Really? I guess that makes sense. I was staring at my alarm clock a few weeks ago thinking there couldn't possibly be a quartz crystal in every single one.
Rolf is offline  
Old 4th July 2006, 08:01 AM   #14
Default

Quote:
Originally Posted by Nigel Goodwin
The long term stability of the mains frequency is extremely high, you should never need to adjust it after it's been set accurately - I don't know if it's still true or not?, but they used to adjust it during the night to keep clocks exactly on time.
The power line freq is inversely proportional to the load on that grid (read alternator), I think as a demostration u can use the power line freq for clock, but of little use in real world.
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline  
Old 4th July 2006, 10:07 AM   #15
Default

Quote:
Originally Posted by akg
The power line freq is inversely proportional to the load on that grid (read alternator), I think as a demostration u can use the power line freq for clock, but of little use in real world.
"Of little use in the real world"?, there are millions of clocks that use the mains frequency for their timing, it's far more accurate than a quartz crystal - at least in the UK, where it's syncronised with an atomic clock every night.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Tags
clock, digital

Thread Tools
Display Modes




All times are GMT. The time now is 11:15 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker