1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Digital Master Clock with 7 Seg LED Displays & Hourly Ch

Discussion in 'Electronic Projects' started by oliverb, Dec 5, 2005.

Thread Status:
Not open for further replies.
  1. pasanrobotics

    pasanrobotics New Member

    Joined:
    Feb 12, 2007
    Messages:
    27
    Likes:
    0
    Location:
    Sri Lanka
    Hey when segmets display 60 seconds, How do i reset it to zero?
     
  2. Gayan Soyza

    Gayan Soyza Active Member

    Joined:
    Oct 23, 2006
    Messages:
    1,821
    Likes:
    19
    Location:
    Colombo
    No need to reset the 4017. For every 10 pulses its reseting. If you want to reset to 9 pulses, simply you must reset the 9 th output in the 4017.Its easier if you take a decade counter for this like 4026.Specially designed for segments. Only needs the correct 1 second pulse.
     
  3. pasanrobotics

    pasanrobotics New Member

    Joined:
    Feb 12, 2007
    Messages:
    27
    Likes:
    0
    Location:
    Sri Lanka
    Ah now I get it. Thanks
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Gayan Soyza

    Gayan Soyza Active Member

    Joined:
    Oct 23, 2006
    Messages:
    1,821
    Likes:
    19
    Location:
    Colombo

    I have a general question to ask. One second accurate pulse is a problem for many people, even for PIC’s. Can’t they build a crystal for 1Hz.or a small IC or a package which gives accurate 1 second. In analogues all the time we use pulse generators to get a pulse adding some more extra parts to the circuit. Why is this?? Any comments from you experts….
     
  6. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    This is how the display counts to and is set to zero at 60.

    The 1 second pulse from (diagram 2) is connected to the input pin 1 of IC11. This IC counts from 1-0 and displays the seconds units via the LED display. When the count reaches 0 on the 10th pulse the IC resets and outputs a pulse to IC9 input pin 1. This advances the seconds tens display by 1. Every 10 seconds IC9 is stepped by 1 until the count reaches 60 seconds or 6 pulses to IC9. IC9 & 11 are reset by IC2d and IC12a. This reset also steps the Minute Units by 1 via the Set Secs switch not operated, IC7a and IC7b to IC8 input pin1.

    You can find a full description of the whole circuit and all the diagrams om this web site. http://uk.geocities.com/brettoliver@btinternet.com/clock_electronic_1a.htm

    Brett.
     
  7. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    Clock Animation

    A small animation of this clock stepping slave and chimimg 2 oclock.
     

    Attached Files:

    Last edited: Feb 22, 2007
  8. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    Years ago, National Semiconductor made the MM5369 IC which operated from a 3V to 15V battery and a cheap crystal from a colour TV and it had a 1Hz output. They stopped making it when all the hobbiests bought one and Chinese clocks became very cheap.
     
  9. Gayan Soyza

    Gayan Soyza Active Member

    Joined:
    Oct 23, 2006
    Messages:
    1,821
    Likes:
    19
    Location:
    Colombo
    Oh I see.If have a chance to buy that IC I will buy tons of that.Its very usefull.Now I cannot find any crystal or any IC for 1Hz output.
     
  10. bobledoux

    bobledoux Member

    Joined:
    Jul 16, 2006
    Messages:
    259
    Likes:
    3
    Location:
    Near Salem, OR, USA
    A Similar Project

    I have a similar project using a Standard Electrical Time (SET) slave clock made in the USA. (My interest in these clocks developed when I read about the British Synchronome system and the Shortt astronomical clock.)

    I considered running my master off a 32768hz watch crystal, but decided in favor of a 4 mhz time base. There are 86,400 seconds in a day so a 1 hz error in the watch crystal translates into a three second error daily.

    My controller is based on a crystal controlled PIC microcontroller. Each instruction cycle takes 1 microsecond so I use a standard 60,000,000 instructions per minute for the base pulse. I modify the pulse count to achieve sync with WWV, our time standard. In my present controller a pulse count of 60,000,620 provides an error of within a second over the course of a week.

    This first controller used a PIC 12F508. Two pins operate the STOP and ADVANCE switches. One pin sends a seconds pulse out to LED or a piezo speaker. One pin operates the TIP120 switching transistor that drives the clock. The final two pins drive the crystal.

    Delay loops perform the timing and the MPLAB simulator allows precise testing of the loop periods. No interrupts are needed.

    A new controller uses a 14 pin PIC. Because my slave clock requires 24 volts at 100ma I decided to use a wall transformer to drive the clock and controller. There is no battery backup. So an LED is programmed to light if we've suffered a power failure.

    Two additional switches allow the clock to advance or retard its seconds pulses against the WWV standard. This allows feeding the WWV and clock pulses into a scope to precisely sync the two.

    Its been an interesting project. I've been impressed with the consistency of a regular microprocessor crystal at room temperature. In my first controller I unsuccessfully tried to vary the crystal frequency by using a variable capacitor in the crystal line. I've since decided that changing the delay period in software is a better approach.
     
  11. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    Hi bobledoux
    Your clock and setup sounds interesting.

    My clock was based around a BT clock electronic 1a. These exchange master clocks replaced the old pendulem driven clock 36 but had an LCD display rather than LED.

    Do you have any pics of your master clock and slaves?

    Brett.
     
  12. bobledoux

    bobledoux Member

    Joined:
    Jul 16, 2006
    Messages:
    259
    Likes:
    3
    Location:
    Near Salem, OR, USA
    My Driver

    The third picture down on this page is my clock:

    http://setclocks.zayre-electronics.com/photos.htm

    I'm building a wood case for surface mounting. This was the kind of clock in my elementary school rooms. I can still remember the double click it made every minute.

    I've attached a schematic diagram of my driver.
     

    Attached Files:

  13. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    Just posted a small 8 sec movie clip only around 250k here

    http://home.btconnect.com/brettoliver/Demo.wmv

    This shows the clock again stepping to 14:00 hrs and now has sound so you can here the chime. The sounds a bit crap as it is recorded from a digital camera.

    Brett
     
  14. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,445
    Likes:
    937
    Location:
    Canada, of course!
    I didn't hear a chime. I just heard the mechanical clock making a "click-bang" noise.
     
  15. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    The chime is there but it's not very loud. The chime it remote from all the clocks in my hallway.

    I'll see if I can record the chime on it's own then splice it into the video.


    I have now re-recorded the chime.
    http://home.btconnect.com/brettoliver/Demo.wmv

    Brett.
     
    Last edited: Feb 22, 2007
  16. bobledoux

    bobledoux Member

    Joined:
    Jul 16, 2006
    Messages:
    259
    Likes:
    3
    Location:
    Near Salem, OR, USA
    That's a nice system. It appears your slave clock sync's the seconds hand to the minute pulse. Is that correct? What is the model of the slave?
     
  17. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    I have made my own slave clocks from old clock parts from ebay. They are based on 12" office dial clocks. I designed my own seconds ring on my PC with Turbo cad and printed it onto transfer paper. The dial is then varnished over to look like an original. I have 2 x 12" dial clocks and a 9" version

    My slaves have 2 clock motors in each, 1 for mins and hours and 1 for seconds both syncronised and driven by the master.
    The mins and hours hands are driven from the 30 sec pulse from my master. The second hand is driven from the 1 second clock motor drive pulse and is in fact a modified quartz clock motor.

    On initial setup the hours mins and seconds are syncronised together and then stay in sync with the master. Therefore the clock will step when the seconds hand reaches the 12 o'clock and 6 o'clock positions.

    See my thread here on quartz clcok driving http://www.electro-tech-online.com/threads/driving-quartz-clock-motors.25025/

    Brett.
     
    Last edited: Feb 22, 2007
  18. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    See previous post.
    12" office clock slave dial detail with dial tranparency to show movements mounted on reverse. Note 30sec slave shown reversed.

    See pic the quartz movement is mounted on the top of 30 sec slave movement with a metal bracket to avoid a mounting nut showing through the dial face.

    2 types of pulses are required for this clock 30secs for the mins/hour hands and 1 sec alternating pulse for the second hand.

    Both pulses derived and syncronised by my master clock.

    see this clock working here http://home.btconnect.com/brettoliver/Demo.wmv

    Brett.
     

    Attached Files:

    • dial.jpg
      dial.jpg
      File size:
      90.3 KB
      Views:
      345
    Last edited: Feb 22, 2007
  19. ljcox

    ljcox Well-Known Member

    Joined:
    Dec 25, 2003
    Messages:
    3,205
    Likes:
    28
    Location:
    Melbourne Australia
    Oliver,
    You've done a lot of work on this since I last looked at your earlier thread some months (or was it a year or more) ago. Well done!
     
  20. bunghole

    bunghole New Member

    Joined:
    Jun 23, 2006
    Messages:
    104
    Likes:
    1
    hello, i saw the parts list and the diagram. are the parts list for the diagrams?

    ta
     
  21. oliverb

    oliverb Member

    Joined:
    Oct 7, 2005
    Messages:
    212
    Likes:
    6
    Location:
    England
    Thanks for that Len and thanks again or all your help on the chime circut for this clock.

    The chime sounds so good I have disabled the chime in the longcase clock in my hall and fitted the master clock chime in the base of it.

    My wife did not realise anything had changed except the clock now seemed to chime in exact sync with my slaves and the start of TV programs rather than a randon couple of mins either side. I must admit I did the mod on a day off so she did not see the carpet being pulled up in the hall to lay the cable!

    Brett.
     
Thread Status:
Not open for further replies.

Share This Page