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.
Registered Member #63
Joined: Thu Feb 09 2006, 06:18AM
Location:
Posts: 1425
Hi all, I'm building a little signal generator with slightly-variable-away-from-50% duty cycle. What I'm trying to do is allow the signal generator to operate without the need to use a scope to determine the duty cycle.
I will be avoiding microcontrollers for this task. I don't need a numerical readout -- an LED bargraph display will be fine, and I'll design a driver for it.
What I'm looking for is ideas on how to convert the signal generator's duty cycle into a voltage.
Ideally, I'd like this to work between 500kHz and 15MHz, or thereabouts. Thoughts?
Registered Member #29
Joined: Fri Feb 03 2006, 09:00AM
Location: Hasselt, Belgium
Posts: 500
Hi BP, Assuming a "square wave" output with CMOS or TTL logic level, a simple low pass filter will average the voltage to a DC value proportional to the duty cycle. (i.e. an RC low-pass with a cutoff freq around 50kHz should do the trick.) As long as the peak output voltage and waveform shape from your sig gen stays the same over the full frequency range, you should be able to accurately calibrate such a circuit.
Registered Member #63
Joined: Thu Feb 09 2006, 06:18AM
Location:
Posts: 1425
Thanks Bill! I was worrying an RC filter earlier, and was concerned with hopeless nonlinearity to the working frequency. With careful component choice, I think you've given me a neat solution. I'll let you guys know how it goes.
Another suggestion I had from a friend was to use the signal generator to make a current source with an inductor from the output, and then load the current source with a parallel RC (the time constant being large enough that ramping at the lowest frequency of interest is not significant).
Registered Member #89
Joined: Thu Feb 09 2006, 02:40PM
Location: Zadar, Croatia
Posts: 3145
Hi matt
I also vote for RC filter + LM3914 or similar, it's by way simplest solution.
Resolution will be 10% that way, so if you are goint to change DC only little I'm not sure if you'l get a good readout from it... What IC are you using as signal generator?
Registered Member #63
Joined: Thu Feb 09 2006, 06:18AM
Location:
Posts: 1425
Hi Firkragg, I'm trying not going to use the LM3914, A) because it's expensive, and B) because I may wish to have much finer increments than 10%. Sure, they can be cascaded, but for now I'll enjoy the thrill of doing it with discrete components.
The duty cycle won't be variable from 0-100%... I'm looking more at 25% - 75%, if that. The IC I'm using as a "signal generator" is going to be just a 4046, since they're cheap as chips. To alter the duty cycle, I'm building a carefully calibrated Pulse Squisher(tm) =P
Registered Member #75
Joined: Thu Feb 09 2006, 09:30AM
Location: Montana, USA
Posts: 711
I don't really see how an RC filter should not work for this; Matt, please explain. Another fun way would be to use a "slow" component like a small lightbulb to integrate over the signal and then e.g. use a photodiode to read out the averaged signal.
Registered Member #27
Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
The energy output of a light bulb would be RMS, but for a square wave it is possible to convert the RMS value to average. This is because all the voltage values are known since the voltage can only be 0 or a constant V.
average = (RMS*RMS) / V
So some trickery with an op-amp or two should be able to give the correct output.
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.