Frequency Multiplier
tt460
Posts: 8
I've got a BS2 and I have a need to multiply an in-coming PWM signal at 250Hz and take it up to 3000 Hz (multiplication factor of 12)·and drive an N-type MOSFET.
This is going into an automotive application where I'm driving a high current solenoid (~ 4amps).
Anyone ever done something like this (the frequency multiplication part)·using a BS2 and have some examples?
This is going into an automotive application where I'm driving a high current solenoid (~ 4amps).
Anyone ever done something like this (the frequency multiplication part)·using a BS2 and have some examples?
Comments
An alternative, assuming the 250Hz signal is a constant frequency, would be to let the Stamp measure the positive pulse widths directly to determine the PWM duty cycle. The coprocessor would still be necessary to keep the output PWM going.
-Phil
Just curious, the "base" PWM frequency is 250Hz and you want to take it to 3kHz? is that correct?
What Duty Cycle range do you have for the PWM? 0-100%?
Is the 250Hz fixed or·will it also vary?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Duty cycle will cover the full range from 0 - 100%.
Would've been nice to do this with a BS2 since I happen to have one laying around...
-Phil
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 6/20/2008 5:38:09 PM GMT
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Paul
The solenoid is low impedance (2.66 Ohm) so amperage is about 4.5 amps. I called the solenoid manufacturer and they said they typically rate it at 1.2kHz to 3kHz, but people who have taken readings from a running car see them as high as 6kHz. A company that manufactures an aftermarket transmission controller told me they run it as high as 16 kHz to eliminate noise from the solenoid.
The reason for using PWM in the first place is to eliminate heat in the driving transistor. This works because the transistor will always be either all the way on or all the way off — hardly ever in between where it dissipates power in the form of heat. It's that "hardly ever" that determines the maximum switching frequency. This is because the more times per second the transistor switches on and off, the more times per second it spends transitioning between on and off. For a given driver setup, this "between time" will be constant for each transisition, so the closer the between times are forced together (by raising the frequency) the higher the percentage of time they spend in that between or "linear zone" and the hotter they will get.
MOSFETs are used for driving loads like your solenoid because they can exhibit very low "on" resistances. This means that when they're switched on, very little power is dissipated by the MOSFET itself. But low "on" resistance usually comes with high gate capacitance. High gate capacitance makes it more difficult to switch the transistor between on and off states quickly, because of the amount of charge that must be injected into, or drained from, the gate by the driving logic. In many high-current, high-frequency situations, special gate driver ICs are used. These have high instantaneous current source and sink capabilities — just perfect for driving capacitive loads. The aftermarket controller supplier you spoke with very quite possibly uses such an arrangement to achieve their 16KHz switching speed.
Now, having said all that, might there be a compelling reason to use a lower frequency? Perhaps. If the valve or the solenoid that moves it is subject to "stiction", having it vibrate slightly from the lower PWM frequency may actually result in smoother motion than if were driven by a higher frequency and sticking occasionally.
-Phil
Thanks for your input.
-Phil