Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Oscillator Design

Status
Not open for further replies.
You could if you played it out of a huge sub woofer but it'd probably make you feel ill rather than lovely.
 
Nigel Goodwin said:
No, we all read the requirements :p - how were you planning making a 0.2Hz to 1.75Hz variable LC oscillator?.
Well if you wind a really large coil around the garage and put it in parallel with a huge capacitor. If you park the car outside the garage you get 2Hz and if you park inside you'll get 0.2Hz. Simple really. :D
 
kchriste said:
Well if you wind a really large coil around the garage and put it in parallel with a huge capacitor. If you park the car outside the garage you get 2Hz and if you park inside you'll get 0.2Hz. Simple really. :D

Sorry, but I don't have a garage? :rolleyes:
 
audioguru said:
JFETSs are used for automatic-gain-control in sine-wave oscillators and in audio equipment.

A JFET produces about 0.1% distortion when the signal across it is more than about 30mV RMS. If the signal is 300mV then the distortion is severe.
Adding a signal to the gate that is half the level of the signal at the drain reduces 2nd harmonic distortion a lot.
Years ago the "chorus pedals" used bucket-brigade echo/delay ICs that had 2.5% distortion.

I understand that you will use matched JFETs in all-pass filters as part of a phaser effect circuit. I think the old CA3080, LM13600 and LM13700 transconductance amp ICs were used in the 70's to do it.

Google is full of old flanger/phaser circuits.


It seems like alot of phaser circuits use JFETs. how do they get around the distortion?
 
audioguru said:
A switched-capacitor Butterworth lowpass filter IC does wonders to remove harmonics. A square-wave can be filtered with an 8th-order IC and the results are low distortion sine-wave.

My very low distortion sine-wave generator uses a CD4018 to make a stepped sine-wave with 10 steps (10 times over-sampled) then is filtered by an 8th-order Butterworth filter IC. The distortion is 0.01%.

sounds like overkill for my application; but very cool. I think smoothness is more important for me than perfect sine wave.
 
Distortion isn't a problem with a phaser, it's entire reason for being there is to distort the signal anyway.

Why don't you try googling for phaser circuits, and see how thousands of others have overcome the problems?

On the other hand, although I'm presuming you're wanting to build one for the pleasure of it?, why not just buy one?



Nice box, at less than the parts are goint to cost you!.
 
kchriste said:
Well if you wind a really large coil around the garage and put it in parallel with a huge capacitor. If you park the car outside the garage you get 2Hz and if you park inside you'll get 0.2Hz. Simple really. :D
OMFG u won the internetz!:eek:
 
Hero999 said:
Wow your motor, idea sounds expensive, power hungry and unreliable, I don't know how you got all three in one!

Even I get lucky like that, sometimes.

Hero999 said:
Filter any waveform with a 50% duty cycle enough and you'll get a sinewave. Build a 7555 timer circuit with 50% duty cycle, add a non-inverting buffer to the capacitor, stick a picky enough filter on the end and you'll have a near as damn it perfect sinewave.

That'll work, to get a good sine, for a particular frequency. I just did a quick-n-dirty simulation of it in LTspice and got 0.674% THD after running a 0.1 Hz square wave through five 1st-order 10K/150uF lowpass filters, with four opamps as buffers between the stages.

BUT, he needs the amplitude to stay constant regardless of frequency, from 0.2 Hz to 1.75 Hz if I recall correctly. So, with that approach, either the filter's corner frequency would need to be moved up, to be able to even try to keep the amplitude constant vs frequency, and the filter would need to have many (many) more stages, and it still wouldn't have constant amplitude vs frequency, OR, he'd need to use a smaller bank of adaptive filters, with a variable corner frequency, and some way to control it, and some way to know when and how to control it.

The motorized oscillator idea had a lot of potential problems. But at least it did hold a constant amplitude versus frequency.
 
Last edited:
...and I think I'll need to have an offset since the gate of the jfets will oscillate between 0 and -vto or something.

is this thread long because im dumb? i hope you guys are having fun. i am getting somewhere, on the oscillator, though.
 
Five 1st-order filters in series make a very droopy filter that begins attenuating frequencies far below what is wanted.
A Butterworth filter uses positive feedback to boost the response so it is flat right up to the cutoff frequency.

But the filter needs to be tuned so that it still greatly attenuates the 3rd harmonic of 0.2Hz (0.6Hz) and allows a flat response at 1.75Hz.

A switched capacitor Butterworth lowpass filter IC has its 8th-order cutoff frequency changed with a single resistor on its built-in high frequency oscillator.
 
audioguru said:
Five 1st-order filters in series make a very droopy filter that begins attenuating frequencies far below what is wanted.
A Butterworth filter uses positive feedback to boost the response so it is flat right up to the cutoff frequency.

But the filter needs to be tuned so that it still greatly attenuates the 3rd harmonic of 0.2Hz (0.6Hz) and allows a flat response at 1.75Hz.

A switched capacitor Butterworth lowpass filter IC has its 8th-order cutoff frequency changed with a single resistor on its built-in high frequency oscillator.

Hi audioguru,

I need to quit posting when I haven't had enough sleep. The five-stage filter I simulated was just to quickly see what it would take to get the THD below 1%. An active filter with a steeper roll-off could make it practical to use a filtered squarewave.

A switched-capacitor filter IC sounds like the thing to try, for that approach. It looks like Hero999's filtered squarewave idea, with your switched-capacitor filter IC, could result in a simple, two-IC solution, for the oscillator.

Do you happen to have a part number, for that 8th-order switched-cap IC (with internal clock oscillator) that's controllable with one resistor?

The dc-accurate LTC1062 (and appnote AN20) from Linear.com looks interesting, for low frequencies.

- Tom Gootee
 
Last edited:
Maxim-IC have many switched-capacitor filter ICs. Their MAX291 and MAX295 are 8th-order Butterworth lowpass filters with an adjustable cutoff from 0.1Hz to 25kHz and to 50kHz. I used to use ones from National Semi but they aren't made anymore.

The frequency is adjusted with its internal RC oscillator by changing the capacitor value, not the resistor value like National's ones. Or make your own RC oscillator.
 
Hi, today I finished a sort of preliminary design for the phaser. I've included a picture of it in this thread. Here are some notes and things that I already know about:

1.) I haven't chosen all the values yet. Most of them are correct, but I'm still working out some loading issues.

2.) The lowpass/summer at the output is something I sort of made up. In simulation it seems to do what I want, but what do you think?

3.) The real product will have some switching circuitry that I didn't show on the schematic. I think it'll just be a simple switch. I'm not going to implement a flip flop switch or anything.

So yeah besides that, what else should I change. I know there's probably alot!

Thanks for everyone's help on the oscillator. I was able to get down to about 1% THD just with the circuit in the schematic. I did try some other things like the 555 to 8th order IC, but I don't think it was worth it in this case.

any suggestions are welcome...

thanks!
 

Attachments

  • phaser.JPG
    phaser.JPG
    82.1 KB · Views: 328
Hi Sean,
Your oscillator uses differentiating RC circuits that pass harmonics. Didn't I show a phase-shift oscillator that integrates and reduces harmonics?
I think your oscillator will produce a square-wave and the simple filter won't do much.

The 741 opamp in the oscillator is driving a resistance far lower than its minimum allowed load of about 2k ohms. It will current-limit with square-waves most of the time.

The oscillator will stop when you change the frequency pot. All three resistors are usually changed at the same time.

The FETs need an input voltage from a negative voltage for a high resistance to 0V for a low resistance. Your oscillator will drive them positive which will forward-bias their input diode then they are like a short.
 
Hmm I did not know anything about the minimum load of 2Kohms. I will have to fix things, then.

I tried that phase shift oscillator schematic you showed me a while ago, and I couldn't get it to work. It'd be nice if I could, though.

I've simulated the oscillator I have now in SPICE, using the uA741 subckt model I copied from my textbook. The results are pretty good (post filter), ill post some images tomorrrow. But, could the model be missing something that would mislead me?

Right now the output of the oscillator filter swings between -0.5 V and -2 V, which shouldn't short the FET, but is a pretty big sweep in regards to distortion; i think you told me this earlier.

do they make triple pot kind of things? i've never seen them.
 
I made a phase-shift oscillator with a triple pot I removed from something. I buffered each RC stage with an opamp so the loss wasn't high. It worked well until the triple pot got dirty and now the frequency jumps all over the place when I turn the pot.
 
SeanHatch said:
Hmm I did not know anything about the minimum load of 2Kohms. I will have to fix things, then.

I tried that phase shift oscillator schematic you showed me a while ago, and I couldn't get it to work. It'd be nice if I could, though.

I've simulated the oscillator I have now in SPICE, using the uA741 subckt model I copied from my textbook. The results are pretty good (post filter), ill post some images tomorrrow. But, could the model be missing something that would mislead me?

Right now the output of the oscillator filter swings between -0.5 V and -2 V, which shouldn't short the FET, but is a pretty big sweep in regards to distortion; i think you told me this earlier.

do they make triple pot kind of things? i've never seen them.

Hi Sean,

Spice models certainly CAN mislead. And if you don't know to watch out, then it's probably typical that they mislead. I usually try to read datasheets carefully, do "sanity check" simulations, and breadboard early. I've seen opamp spice models that would happily pump out many amps of current, into a low-impedance load. Most real opamp outputs can only deal with 20 mA to 40 mA demands, at best. And most opamps don't do very well into even a 600-Ohm load. [I'll try simulating your oscillator in LTspice, to see what happens, tomorrow.]

Regarding your need for a triple-ganged pot: This might be one place where something like the H11F1M, or some Vactrols, might be expedient. You could use a single pot to set the LED current for several Vactrols or H11F1Ms (with their LEDS all in series), setting the resistances of their other terminals. (I don't know how well the Vactrols might track each other; probably good-enough, though.)

Alternatively, very low-tech: maybe you could mount three pots next to each other, and use string or twine to gang their shafts together, with multiple turns around each shaft before going to the next one.

Another alternative might be to motorize the pots. For "manual" control, you could do it with three small stepper motors and basically just a pulse generator (i.e. no computer needed, at least).

And you could also fairly-easily make one of several possible types of mechanical couplings, that would allow you to use just one DC or stepper motor to control all three pots. e.g. one threaded rod from motor, w/one worm gear on each pot shaft.

OR, to make it easy, if you use three identical pots, with values such that you only need about 1/3-turn of travel, then you could just attach an "arm" to each pot shaft and connect a mechanical link across all three arms' ends. Make all shafts co-axial and it could even be decent-looking and fairly nice to use.

- Tom Gootee

**broken link removed**
 
THanks for your reply. I agree that I should breadboard early, I just don't have the equipment really. (scopes and whatnot).

I think I could sit here and keep tweaking and designing forever in simulation, forever, but I feel like I can't make too much more progress without sitting down and testing, so I think I'm going to go ahead and breadboard from here and see what I've got.

thanks
sean

EDIT: just one thing I'm REALLY unsure of...what do you think of the summer stage at the far right of the schematic? is this legit? Like I said, I sort of 'made this up', so I'm not sure if it'll work how I want. It's actually a first order butterworth with unity gain sort of combined into a summer. It feels like I could get into some kind of trouble with this
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top