Power line timebase


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Yeah, I thought on the secondary side the noise level would be down quite a bit...plus just a simple 1N4003 in series with a good resistance 10k, 47k something like that. Some high freq filtering perhaps.

    I'll look at it on a scope and create some noise myself....grab my power drill or something.

    I think only something like a refrig would be a problem and it would depend on it's design as well.....and if it was on the same circuit.

    For you real software gurus, I suppose I could maybe even just look for the 1 second during a shorter window of time? (and ignore everything else)?

    ...Hmmm

  2. #2


    Did you find this post helpful? Yes | No

    Default

    That didn't make sense...getting carried away.

    It's the count that could get corrupt, so "when" I read it wouldn't make a difference.

    (I have to be careful with this brain of mine...it's a loose cannon).

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Michael View Post
    Yeah, I thought on the secondary side the noise level would be down quite a bit...plus just a simple 1N4003 in series with a good resistance 10k, 47k something like that. Some high freq filtering perhaps.

    I'll look at it on a scope and create some noise myself....grab my power drill or something.

    I think only something like a refrig would be a problem and it would depend on it's design as well.....and if it was on the same circuit.

    For you real software gurus, I suppose I could maybe even just look for the 1 second during a shorter window of time? (and ignore everything else)?

    ...Hmmm
    Why not combine old and new technologies for a solid timebase.

    Have a PIC triggered off the mains freq, and to keep it from false-triggering due to a fridge kicking in or something, have the PIC wait at least 16ms (at 60hz) before it'll even think about accepting a new trigger...or something along those lines...

  4. #4
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Default

    I suspect that the worst possible things would be old refridgerators and heaters(radiators) with mechanical thermostats. Loads of contactbounces. I remeber having problems with our fridge and it wasn't even on the same phase.

    Digital filtering like Skimask suggests would improve but never get rid of the problem completley. Your clock will always be "fast" unless you do this right.

    I also remeber that the mainsfrequency was considerably lower during daytime and higher at nighttime. The electrical producers compensated for the high load at daytime by increasing frequency at night. Over a 24 hour timeperiod there should be almost no error atall. Thought i'd mention it since you didn't like drift due to temperature.

    You also have the option of a temperaturecompensated oscillator, Dallas(now Maxim) makes many but this one should probably be good enough ..... http://datasheets.maxim-ic.com/en/ds...z-DS32KHZS.pdf
    ...... not cheap but it solves most timekeeping problems.

Similar Threads

  1. Replies: 3
    Last Post: - 29th April 2009, 00:45
  2. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. Power Line loging.
    By jcon777 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th July 2004, 15:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts