I'm designing a hobbyist power supply for ultrasonic transducers in the 100 watt range, with these goals:
1) Automatic resonance seeking
2) Variable power output
3) Microcontroller measurement and control
4) Generally bullet-proof and safe
Circuit and an explanation are posted below.
Someone at my hackerspace took the lathe offline and didn't tell anyone, so I'm blocked from making transducer horns for the moment. They won't let me strangle him, but to be fair, they won't let anyone else strangle him either.
So I'm concentrating on a new power supply circuit for hobbyists which won't burn out and has some useful features.
NOTE: This is very much a work in progress. I'm waiting on some parts, I haven't bread-boarded and tested, and it doesn't make sense to capture a circuit before you know it will work.
Also, I'm not an electronics engineer and this puts me out of my comfort zone, so if you see something fundamentally wrong with the circuit, please let me know.
Compare with the supply from eBay.
The switcher uses the same standard totem-pole configuration, but with a proper DC supply instead of cheaply-rectified AC mains.
The user must supply their own 120 watt DC supply in the 12V - 80V range, but these are *common*. A 30 volt 10 amp supply goes for $10 on eBay: it's safe, reliable, and cheap. You can even put two of them in series for higher voltages! (I've never done this, but I'm told it will work.) Switch mode supplies have isolated outputs, so it's OK to connect the outputs in series.
I'd *like* a system that would work from 12V, thus driven from a computer PSU (those are *really* common), but this depends on the specs of the SMPS transformer. I'll know more a bit later in the project.
The transistors are a wee bit overspec for the application (35A, 600V). The difference between "50% more than needed" and "insanely overpowered" is a couple of dollars (like, $2), and I want this to be bullet proof. The transistors are typically what burns out if the user makes a mistake, and we can let the fuse do its 'goddam job for once.
On the output side, the capacitor and inductor form a low-pass filter that turns the square-wave into a sine wave.
The mathematical formula for a square wave is:
Where "A" is the square wave amplitude, and "f" is the frequency.
If the low-pass filter has a cutoff somewhere between f and 3f, the higher frequencies will be suppressed, presenting only the fundamental to the transducer. As a bonus, the result is slightly higher voltage than the original square wave due to the 4/pi term.
The capacitor is TBD because the inductor is a SMPS transformer and I don't know what that inductance is yet. Needs to be high voltage with low ESR - probably polypropylene.
Synchronization and Power measurement
In addition to the transducer, the output goes through an Allegro hall-effect current sensor via PWR-1 and PWR-2, from the switcher.
The Allegro chip generates a voltage proportional to the current through the transducer. It has low resistance (a few mΩ), 2KV isolation, and an 80kHz bandwidth. This one chip solves a whole lot of issues.
The signal from the Allegro chip becomes two outputs: a voltage proportional to current, and a frequency synchronous pulse train.
The lower path routes the sin wave through an active rectifier, followed by an RC integrator. The output is a DC voltage proportional to the current through the transducer, which is delivered as feedback to the PWM controller.
The upper path requires a bit of explanation. The SG2535 controller driving the switcher has a "synchronize" input that can be used to slave the internal oscillator to an external clock. The slave signal is a pulse that switches the oscillator from its charge cycle to it's discharge cycle, so to synchronize the chip to the transducer we need to generate pulses at the *peaks* of the sine wave signal. That's what the top path does.
Referring to the signal images in the circuit, the sine wave is presented to both inputs of an LM339 comparator (typo'ed as LM324) with one input delayed by an RC constant. Since the negative input is delayed, a rising signal will result in a positive output, and a falling signal becomes a negative output. The result is a square wave which is 90 degrees off from the original signal.
The square wave is presented to both inputs of an XOR gate, and once again one side is delayed by an RC constant. This results in a series of pulses at each transition of the square wave - at twice the original frequency.
...which is what the SG2535 wants to see for synchronization.
(If I have interpreted the datasheet correctly. There's *very* little information available about this chip, and as far as I can tell no example circuits on the net use the synchronization feature. And if they did, they would be slaving one SG chip to another, without noting what signal that is.)
The power and synchronization are presented to a UC3525 PWM management chip, which controls the switcher (first image) via PWM-A and PWM-B.
The UC3525 has an onboard 5.1 volt reference, which runs through a digital potentiometer controlled by the microcontroller. The voltage chosen by the micro is compared to the current signal from the transducer, and used to adjust the PWM width. As the transducer draws more current, the voltage goes up and the PWM controller reduces the pulse width to compensate.
Negative feedback keeps the system fixed at a power level calculated by the micro, and the sync input keeps the frequency locked to the transducer/system resonant frequency. From the point of view of the micro, it's "set and forget".
Labels "UC-xxx" represent connections to or from the microcontroller. For example, the micro can turn the output on or off using the SD ("shutdown") input to the switcher.
My biggest issue ATM is finding vendors and specs for SMPS power transformers, as found in computer power supplies. So far as I can tell, no standard vendor sells them (DigiKey, Farnell, Mouser, Coilcraft, et al). Lots and lots of sellers on AliBaba, but no one has specs.
I'd *like* to say "pull two transformers from old computer PSUs", because that would be an easy source for the hobbyist, but I suspect there's a lot of variation and being able to tell which ones are good to use is not a casual skill.
I'd *also* like to point to a list of component vendors, in case the hobbyist just wants to buy the parts and put it together, and maybe sell a parts kit or something. That's hard without a specific vendor and proper specs.
If anyone knows where to get SMPS transformers cheaply (meaning: not $50 each from a specialty brand) please let me know.
If anyone sees a flaw in the logic, also please let me know.