Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I was going to say that Bertus (note spelling) has a good solution. I personally would use a real comparator instead of an op amp (and a poor one at that), but otherwise, it's a good solution.How about this, credit goes to burtus at allaboutcircuits.
The 1M pot will change the frequency.
The 10K pot will change the duty cycle.
That's true, but the frequency is not changing. The duty cycle is simply going to 100%. The osc frequency is still the same.
You would probably want to set up the limit resistors on the ends of the duty cycle pot (10k) so that it goes from something like 1%-99%, or 10%-90%, or whatever, so that the frequency never goes to zero, which it will if the pot range is excessive on either end.We're interested in one signal that is frequency and duty cycle adjustable. If the frequency is such that full duty cycle adjustment > 100?, which is very possible, then the final output's frequency is affected.
I never had a problem with it going to 100%. All the benchtop signal generators can go to 100% if you turn the knob.You would probably want to set up the limit resistors on the ends of the duty cycle pot (10k) so that it goes from something like 1%-99%, or 10%-90%, or whatever, so that the frequency never goes to zero, which it will if the pot range is excessive on either end.
It's not a oneshot, it's a comparator, slicing the triangle wave generated by the 555. If the comparator were ideal, the duty cycle would be absolutely independent of the frequency.If, for example, you have a duty cycle pot set up to be 10-90% at f=1khz, then at f=2khz, full adjustment gives you 20% to 180%. Anything over 100% drives the output signal period to the one-shot, and screws up the output frequency.
Which is why (if you wanted to prevent 100% DC) you simply go to maximum frequency and dial in the R-C on the one shot to go to 95% duty cycle. Then, at lower frequencies, the maximum duty cycle is less than 95%.If, for example, you have a duty cycle pot set up to be 10-90% at f=1khz, then at f=2khz, full adjustment gives you 20% to 180%. Anything over 100% drives the output signal period to the one-shot, and screws up the output frequency.
What's wrong with my idea?How about this, credit goes to bertus at allaboutcircuits.
The 1M pot will change the frequency.
The 10K pot will change the duty cycle.
Looks better than Bertus's circuit to me. Same principle, fewer ICs (but a few more resistors).What's wrong with my idea?
Did you even look at it?
Why have two ICs when you only need one?
A oneshot will not give constant duty cycle with varying frequency, unless you use a complicated feedback loop - which would have a response time issue.Which is why (if you wanted to prevent 100% DC) you simply go to maximum frequency and dial in the R-C on the one shot to go to 95% duty cycle. Then, at lower frequencies, the maximum duty cycle is less than 95%.
The frequency would be wherever you set it, and the duty cycle would still be adjustable up to the maximum limit which would depend on the particular frequency.
Resistors are a heck of a lot cheaper than ICs.Looks better than Bertus's circuit to me. Same principle, fewer ICs (but a few more resistors).
That's true, the duty cycle will increase with frequency.A oneshot will not give constant duty cycle with varying frequency, unless you use a complicated feedback loop - which would have a response time issue.
Which is why (if you wanted to prevent 100% DC) you simply go to maximum frequency and dial in the R-C on the one shot to go to 95% duty cycle. Then, at lower frequencies, the maximum duty cycle is less than 95%.
The frequency would be wherever you set it, and the duty cycle would still be adjustable up to the maximum limit which would depend on the particular frequency.
What's wrong with my idea?
Did you even look at it?
Why have two ICs when you only need one?
I guess I missed that. What was the post number? And why did you carry on about oneshots, when that is clearly a separate circuit from a single timer IC?The challenge was to use a timer for both frequency and duty cycle.
And changing the bias pin voltage will change the duty cycle.I'll give it a bronze star.
PS: had anyone investigated using the using the bias pin for frequency and threshold for duty cycle? I've given it some thought, but I just can't imagine you can get much frequency range from the bias pin.