Electronic Schematics (alt.binaries.schematics.electronic) A place to show and share your electronics schematic drawings.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to alt.binaries.schematics.electronic
external usenet poster
 
Posts: 2,022
Default Pretty accurate zero-crossing detector, just for fun.

Needs a little work, but the concept is that the mains is full-wave
rectified and compared with a reference. On the downward slope, when
the mains-derived signal crosses the reference, the counters are
enabled and a single RESET pulse generated and sent to the up counter,
clearing it. It then counts clocks until the mains derived signal goes
to zero and starts rising again, and when it crosses the reference
this time the counters are disabled and a single pulse generated which
broadside loads the Q outputs of the up counter into the D inputs of
the down counter, but shifted one bit to the right, (MSB to the left)
with the result being that a quantity with a magnitude half that of
the up counters contents will be loaded into the down counter.

Now, when the mains signal peaks and starts falling again, it will
again intercept the reference.

When it does, the counters will be enabled, the up counter will be
cleared and will start incrementing again, and the down counter will
start decrementing until it gets to zero, when a single pulse will be
generated.

Since the quantity loaded into the down counter was half of the
quantity accumulated by the up counter between the two excursions
across the reference, then it would take the down counter half that
time to time out, and the pulse generated at timeout should be located
precisely at the zero crossings of the mains cycles.

Well, within 10 microseconds anyway... :-)

It takes a few minutes for the sim to run, but I think you'll enjoy
it. :-)

BTW, copy all the files into a single folder and then click on the
..asc file to run it. LTspice should find it and launch it.


--
JF














  #2   Report Post  
Posted to alt.binaries.schematics.electronic
external usenet poster
 
Posts: 76
Default Pretty accurate zero-crossing detector, just for fun.

On Thu, 23 Feb 2012 15:52:38 -0600, John Fields wrote:

Needs a little work, but the concept is that the mains is full-wave
rectified and compared with a reference. On the downward slope, when
the mains-derived signal crosses the reference, the counters are
enabled and a single RESET pulse generated and sent to the up counter,
clearing it. It then counts clocks until the mains derived signal goes
to zero and starts rising again, and when it crosses the reference
this time the counters are disabled and a single pulse generated which
broadside loads the Q outputs of the up counter into the D inputs of
the down counter, but shifted one bit to the right, (MSB to the left)
with the result being that a quantity with a magnitude half that of
the up counters contents will be loaded into the down counter.

Now, when the mains signal peaks and starts falling again, it will
again intercept the reference.

When it does, the counters will be enabled, the up counter will be
cleared and will start incrementing again, and the down counter will
start decrementing until it gets to zero, when a single pulse will be
generated.

Since the quantity loaded into the down counter was half of the
quantity accumulated by the up counter between the two excursions
across the reference, then it would take the down counter half that
time to time out, and the pulse generated at timeout should be located
precisely at the zero crossings of the mains cycles.

Well, within 10 microseconds anyway... :-)

It takes a few minutes for the sim to run, but I think you'll enjoy
it. :-)

BTW, copy all the files into a single folder and then click on the
.asc file to run it. LTspice should find it and launch it.


Three phase?

Grant.
  #3   Report Post  
Posted to alt.binaries.schematics.electronic
external usenet poster
 
Posts: 2,022
Default Pretty accurate zero-crossing detector, just for fun.

On Sat, 25 Feb 2012 00:09:01 +1100, Grant wrote:

On Thu, 23 Feb 2012 15:52:38 -0600, John Fields wrote:

Needs a little work, but the concept is that the mains is full-wave
rectified and compared with a reference. On the downward slope, when
the mains-derived signal crosses the reference, the counters are
enabled and a single RESET pulse generated and sent to the up counter,
clearing it. It then counts clocks until the mains derived signal goes
to zero and starts rising again, and when it crosses the reference
this time the counters are disabled and a single pulse generated which
broadside loads the Q outputs of the up counter into the D inputs of
the down counter, but shifted one bit to the right, (MSB to the left)
with the result being that a quantity with a magnitude half that of
the up counters contents will be loaded into the down counter.

Now, when the mains signal peaks and starts falling again, it will
again intercept the reference.

When it does, the counters will be enabled, the up counter will be
cleared and will start incrementing again, and the down counter will
start decrementing until it gets to zero, when a single pulse will be
generated.

Since the quantity loaded into the down counter was half of the
quantity accumulated by the up counter between the two excursions
across the reference, then it would take the down counter half that
time to time out, and the pulse generated at timeout should be located
precisely at the zero crossings of the mains cycles.

Well, within 10 microseconds anyway... :-)

It takes a few minutes for the sim to run, but I think you'll enjoy
it. :-)

BTW, copy all the files into a single folder and then click on the
.asc file to run it. LTspice should find it and launch it.


Three phase?

Grant.


---
I don't understand.


--
JF
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pretty Accurate Horizontal Drilling/Milling Bob La Londe[_5_] Metalworking 2 September 23rd 10 06:10 PM
DIY Pedestrian Crossing Andrew Gabriel UK diy 40 December 31st 08 10:46 PM
How to make more accurate/precise machines from less accurate ones? Cliff Metalworking 3 December 17th 05 11:15 PM
Smoke detector and CO detector installed next to each other? [email protected] Home Repair 2 October 16th 05 02:46 AM
RAILROAD CROSSING J T Woodworking 2 August 7th 05 10:34 PM


All times are GMT +1. The time now is 12:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"