I am running a brushed 12VDC motor with an IRF 1010 N chanel FET and 3705 FET driver. I am using a PIC 16F876 (Way more than needed but I had one in a drawer and so used it) to produce a PWM pulse train to the FET driver. The positive duty cycle of the PWM is based on a POT input for speed control of the motor. The period of the PWM is 1 KHz. Everything is working great!

My question is: Should I be concerned with the 1 KHz period? Is this going to produce ugly RF interference when running on a 12V car battery. I measured the Source voltage and can see a 1 Khz ripple at about 200 mV p-p. Should I up my period or filter the input better?

Thanks for the help.

Joe

## 1 KHz PWM FET driver

I don't know but I'd guess that would have some problems at very low duty cycles. can you hear a 1khz noise when running the motor? I'd push the pwm frequency up to 20K.

Hi there,

I didnt see any mention of a catch diode? Do you have one installed?

You can approximate the ripple of an inductor/cap with load

approximately like this if you assume a 50% duty cycle:

dt=50e-6

L=100e-6

v=5

C=100e-6

di=v*dt/L

i=di

dv=i*dt/C/2

vpp=dv/2

where

dt is the pulse width (assumed half the period here)

L is the inductance in Henries

v is the pulse voltage above that of the output

C is the capacitance in farads

di is the calculated change of current in the inductor

dv is the voltage that would appear across the cap with a square pulse

vpp is the ripple voltage, which is dv compensated for the fact that

the inductor current is a triangle and not a square pulse.

Example:

10kHz pulse source, 50% duty cycle pulsing 0v to 10v

100uH inductor

100uf cap

50 ohm load across cap

dt is one-half of the 10kHz wave, or dt=50us=0.000050

di=5*0.000050/0.000100=2.5 amps

dv=2.5*0.000050/0.000100/2=0.625 volts

vpp=0.625/2=0.3125 volts peak to peak ripple approximately

Note that if we increased the cap to 200uf (twice the original value)

we would reduce the ripple to half that of what it was, which means

now it would be roughly 150mv instead of around 300mv. This of

course means that you can decrease the ripple by simply increasing

the value of the cap. Also, you can reduce the value of the ripple

by increasing the value of the inductor too...if we increase the inductor

value to 200uH instead of the cap we would again get half the ripple.

The inductor value isnt the only criterion however, we also need to select

the inductor with an appropriate sat current as well as the correct value,

and also make sure it has a tolerable equivalent series resistance (ESR).

When possible it's nice to select an inductor with an ESR of 1/50 of that

of the load resistance. Thus, if we have a load of 1 amp at 5 volts

(that would be 5 ohms) we would want an ESR not more than 0.1 ohms.

Less is better, but it leads to a physically larger inductor size which takes

up more space.

As for the sat current rating, we need at least the peak current plus

some safety margin. Selecting this usually means looking at the

inductor curve for L vs Idc, but for an approximation select twice

the expected peak current. The peak current Ipk is:

Ipk=iLoad+di/2

where

iLoad is the load current and

di was calculated above.

Thus, the min sat rating should be

IsatMin=Ipk*2

but to be even safer select IsatMin=Ipk*4.

This kind of selection depends on how much you want to spend

for the inductor as well as how much space you have for mounting.

If it's not a critical space situation, select a nice size toroid inductor

with a low ESR and a high sat rating.

I didnt see any mention of a catch diode? Do you have one installed?

You can approximate the ripple of an inductor/cap with load

approximately like this if you assume a 50% duty cycle:

dt=50e-6

L=100e-6

v=5

C=100e-6

di=v*dt/L

i=di

dv=i*dt/C/2

vpp=dv/2

where

dt is the pulse width (assumed half the period here)

L is the inductance in Henries

v is the pulse voltage above that of the output

C is the capacitance in farads

di is the calculated change of current in the inductor

dv is the voltage that would appear across the cap with a square pulse

vpp is the ripple voltage, which is dv compensated for the fact that

the inductor current is a triangle and not a square pulse.

Example:

10kHz pulse source, 50% duty cycle pulsing 0v to 10v

100uH inductor

100uf cap

50 ohm load across cap

dt is one-half of the 10kHz wave, or dt=50us=0.000050

di=5*0.000050/0.000100=2.5 amps

dv=2.5*0.000050/0.000100/2=0.625 volts

vpp=0.625/2=0.3125 volts peak to peak ripple approximately

Note that if we increased the cap to 200uf (twice the original value)

we would reduce the ripple to half that of what it was, which means

now it would be roughly 150mv instead of around 300mv. This of

course means that you can decrease the ripple by simply increasing

the value of the cap. Also, you can reduce the value of the ripple

by increasing the value of the inductor too...if we increase the inductor

value to 200uH instead of the cap we would again get half the ripple.

The inductor value isnt the only criterion however, we also need to select

the inductor with an appropriate sat current as well as the correct value,

and also make sure it has a tolerable equivalent series resistance (ESR).

When possible it's nice to select an inductor with an ESR of 1/50 of that

of the load resistance. Thus, if we have a load of 1 amp at 5 volts

(that would be 5 ohms) we would want an ESR not more than 0.1 ohms.

Less is better, but it leads to a physically larger inductor size which takes

up more space.

As for the sat current rating, we need at least the peak current plus

some safety margin. Selecting this usually means looking at the

inductor curve for L vs Idc, but for an approximation select twice

the expected peak current. The peak current Ipk is:

Ipk=iLoad+di/2

where

iLoad is the load current and

di was calculated above.

Thus, the min sat rating should be

IsatMin=Ipk*2

but to be even safer select IsatMin=Ipk*4.

This kind of selection depends on how much you want to spend

for the inductor as well as how much space you have for mounting.

If it's not a critical space situation, select a nice size toroid inductor

with a low ESR and a high sat rating.

LEDs vs Bulbs, LEDs are winning.

### Who is online

Users browsing this forum: No registered users and 2 guests