Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 101
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
RateReducer (35)


Next birthdays
11/02 Download (31)
11/02 ScottH (37)
11/03 Electroguy (94)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

Switching before zero cross

Move Thread LAN_403
Dr. Dark Current
Fri May 16 2008, 01:27PM Print
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
I'm designing feedback for an inverter. The feedback is a voltage sine wave.
Is there a simple way to make the switch happen an adjustable time before the sine wave crosses zero, without using a PLL?




Back to top
Berni
Fri May 16 2008, 04:45PM
Berni Registered Member #1132 Joined: Mon Nov 19 2007, 06:15PM
Location: Slovenia
Posts: 84
A comparator and a potenciometer?
Back to top
Dr. Dark Current
Fri May 16 2008, 06:55PM
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
Berni wrote ...

A comparator and a potenciometer?
umm.. no, I need it to switch before both 'pos-to-neg' and 'neg-to-pos' zero crossings, you cannot do this with a comparator...




Back to top
Mathias
Fri May 16 2008, 07:32PM
Mathias Registered Member #1381 Joined: Fri Mar 07 2008, 05:24PM
Location: Hungary
Posts: 74
why not?

F3
Back to top
GeordieBoy
Fri May 16 2008, 08:02PM
GeordieBoy Registered Member #1232 Joined: Wed Jan 16 2008, 10:53PM
Location: Doon tha Toon!
Posts: 881
Hi Jan, Yes you can do what you require without using a PLL. At first it appears that the required circuit must be able to "see into the future" to predict the zero-crossings before they actually happens...

Fortunately you can actually achieve this effect by adding a small amount of the derivative of the sinewave to the sinewave before feeding it to a normal comparator. Because the derivative of a sinewave leads it by 90 degrees you are actually introducing a small phase-lead by adding in a derivative component. This will make the comparator toggle early.

Or alternatively you can add a small amount of the integral of the sinewave to the reference level defining the comparators switching threshold. Since the integral lags by 90 degrees but is effecting the threshold instead of the signal the net effect is the same.

Both of these techniques will achieve the desired result although the actual amount of phase lead or lag may need to be fine-tuned to get the comparator to toggle the desired number of ns early that you want at the chosen operating frequency.

-Richie,
Back to top
Dr. Dark Current
Sat May 17 2008, 07:27AM
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
Thanks Richie, that's something along what I was thinking.
However I'm not sure how to implement it. The problem is that the feedback frequency is not constant. A simple phase shift could be done with a RC element, but the shift would be heavily dependent on frequency.


Back to top
Steve Conner
Sat May 17 2008, 08:03AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I think the shift would be only weakly dependent on frequency. 6dB/octave and all that.

Like Richie said, it's not exactly hard to predict what a sine wave is going to do next wink
Back to top
GeordieBoy
Sat May 17 2008, 02:11PM
GeordieBoy Registered Member #1232 Joined: Wed Jan 16 2008, 10:53PM
Location: Doon tha Toon!
Posts: 881
Yes, as you said you can achieve a +90 degree phase-lead well below Fc with a first order high-pass filter, but with a dramatic drop in signal amplitude. Or alternatively a -90 degree phase-lag well above Fc for the 1st order low-pass filter.

If you need to process a signal to introduce variable phase-lead or lag WITHOUT altering the amplitude there is also something called the all-pass filter. This will give you an adjustable phase shift without the accompanying low-pass, band-pass or high-pass amplitude characteristic:

Link2
Link2
Link2

This circuit is used in guitar phaser pedals to shift the relative phases of harmonics without messing with the amplitude. Since it doesnt cause an amplitude change, you can cascade allpass filters to get as much phase shift as you want.

I guess it is as good a "see into the future" circuit as you can get with analogue electronics! If anyone knows of a better one, let me know as I have a plan involving such a circuit, a cheap radio, and next week's lottery results. wink

-Richie,
Back to top
Dr. Dark Current
Mon May 19 2008, 08:46PM
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
Going back to this... I think it would be best to make it switch adjustable time before the zero crossing, but this "pre-delay" should not be frequency dependent.
Is this possible with a PLL or in any other way?


Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.