PWM Frequency

179 views
Skip to first unread message

jgeidl

unread,
Feb 17, 2010, 6:48:41 PM2/17/10
to HomeBrew Robotics Club
What PWM frequency are you guys using with your various H-bridges to
run you motors?

Jim, K6JMG

Ralph Gnauck

unread,
Feb 17, 2010, 6:55:40 PM2/17/10
to hbrob...@googlegroups.com
Jim, I use 20 Khz - 25 Khz on my bots.
 
Ralph.


From: jgeidl <but...@gmail.com>
To: HomeBrew Robotics Club <hbrob...@googlegroups.com>
Sent: Wed, February 17, 2010 3:48:41 PM
Subject: [HBRobotics] PWM Frequency

What PWM frequency are you guys using with your various H-bridges to
run you motors?

Jim, K6JMG

--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To post to this group, send email to hbrob...@googlegroups.com.
To unsubscribe from this group, send email to hbrobotics+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hbrobotics?hl=en.

James M.(Jim) Geidl

unread,
Feb 17, 2010, 7:18:03 PM2/17/10
to hbrob...@googlegroups.com
I am using a TRek Jr. controller board from Pololu that gives me the choice of several inputs (serial/RC/analog) and then provides a H-bridge output for several motors.  When using RC input the output test at 2.4KHz to the motors.  This seems like it is awfully slow.  Do you think there is an issue here?
 
Here is a link to the board if you are curious about it.  http://www.pololu.com/catalog/product/767
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//



From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of Ralph Gnauck
Sent: Wednesday, February 17, 2010 3:56 PM
To: hbrob...@googlegroups.com
Subject: Re: [HBRobotics] PWM Frequency

Alan Marconett

unread,
Feb 17, 2010, 7:29:07 PM2/17/10
to hbrob...@googlegroups.com

Specs say max 10KHz.  I didn’t see a PDF manual to download.

 

Alan  KM6VV

 


--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To post to this group, send email to hbrob...@googlegroups.com.
To unsubscribe from this group, send email to hbrobotics+...@googlegroups.com.

giuliano carlini

unread,
Feb 17, 2010, 7:32:16 PM2/17/10
to hbrob...@googlegroups.com
Nah, lots of things run h-bridges slower than that. For example, arduino pins pwm at either 500 or 1khz. Even big bots are fine with "slow" pwm. I think FIRST robotics old "victor" motor controllers pwm'd at around 1khz. And those are 130lb bots by the time you got bumpers and batteries onto them.

Biggest issue is that it can result in audio noise at the pwm frequency. Or harmonics. 

Almost no one will hear pwm at 25khz. Teens will at 20khz. Us geezers are fine at 15khz ;->

And you won't get submillisecond responsiveness. Which for my robotics requirements is fine.

giuliano

James M.(Jim) Geidl

unread,
Feb 17, 2010, 7:37:42 PM2/17/10
to hbrob...@googlegroups.com
Alan,
 
Sorry, their manuals are not the most obvious things.  Try this.  http://www.pololu.com/docs/0J5
 
The chip they use is spec'd as having a MAX frequency of 10KHZ but I am only measuring 2.4KHz +/-.
 
Jim
 

James M. (Jim) Geidl, K6JMG
www.spinochio.com
3528 Liberty Ct.
Antioch, CA  94509
925 778-8958

The information in this email may be confidential, privileged, and protected from disclosure. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. Thank You

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

 


From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of Alan Marconett
Sent: Wednesday, February 17, 2010 4:29 PM

James M.(Jim) Geidl

unread,
Feb 17, 2010, 7:41:02 PM2/17/10
to hbrob...@googlegroups.com
Giuliano,
 
This is at 2.4KHz not 24KHz so I am concerned about the noise it will make AND the potential for any interference.  I can hear it but then I can't hear most things anymore.
 
As long as we are on the subject, what deciding factors play into the frequency your run PWM at other than the capability of the "system" feeding it?
 
Jim
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//




From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of giuliano carlini
Sent: Wednesday, February 17, 2010 4:32 PM

Alan Marconett

unread,
Feb 17, 2010, 8:01:31 PM2/17/10
to hbrob...@googlegroups.com

Hi Jim,

 

Thanks for the URLs. 

 

I didn’t see a XTAL on the board, but those things are getting so tiny now…

 

20KHz is what I try for.  I’m playing with a Mark III board, to which I can add a “sensor” board with two SN754410NE dual H-bridge chips on it (adds $30).  But right now I’m suffering through getting CCS ‘C’ code translated to HighTech C.  Initially I’m going to use modified R/C servos with wheel encoders, later I’ll try the sensor board on D/C motors.  I’ll try to figure out what rate they’re running the PWM for the DC motors at.  I’m still stuck in nested PID code for the R/C motors!

giuliano carlini

unread,
Feb 17, 2010, 8:07:07 PM2/17/10
to hbrob...@googlegroups.com
Was referring to Ralph's comments about 20-25khz.

Frankly, I don't worry about it. Just doesn't matter for the little things I do. But, like I said, even sizeable bots can use slower PWM frequencies.

Arduino's can pwm at 20-50khz, just not with the builtin function. So it isn't really the platform that's limiting me. The only factors I know of for selecting a higher pwm frequency are audible noise and responsiveness. Other issues are bigger for me. Like how much current they can provide. And cost.

Ah, one other issue. For the really paranoid, if you want to opto-isolate your motor circuits from your control circuitry, you need to make sure the opto chips are fast enough. Just check the datasheet.

giuliano

James M.(Jim) Geidl

unread,
Feb 17, 2010, 8:36:12 PM2/17/10
to hbrob...@googlegroups.com
Alan,
 
Doesn't this "kit" come with modified servos?
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//



From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of Alan Marconett
Sent: Wednesday, February 17, 2010 5:02 PM

James M.(Jim) Geidl

unread,
Feb 17, 2010, 8:39:40 PM2/17/10
to hbrob...@googlegroups.com
Giuliano,
 
Sorta hijacking my own thread here, but, you bring up another point that has been in the back of my mind; can you build an high power H-bridge using optoisolators?  If so, where do you get the parts?  Everything I have looked at has been in the mA range rather than in amps.  I may also be looking in the wrong place.
 
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//


From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of giuliano carlini
Sent: Wednesday, February 17, 2010 5:07 PM

Alan Marconett

unread,
Feb 17, 2010, 8:41:58 PM2/17/10
to hbrob...@googlegroups.com

Hi Jim,

 

You get easily modified R/C servos with the kit.  The sensor board can drive the DC motors.  I figured I’d get a chance to play with both one time or another… 

 

The PWM rate is 19,531 KHz!

 

Alan KM6VV

 


On Behalf Of James M.(Jim) Geidl

Alan,

 

Doesn't this "kit" come with modified servos?

 

 

Jim, K6JMG
www.spinochio.com

 

--

Steven Nelson

unread,
Feb 17, 2010, 8:47:50 PM2/17/10
to hbrob...@googlegroups.com
Just about all speed controllers run at different PWM output speed ranges. Heres a great page the lists a lot of motors and a lot of speed controller specs. I just bookmarked this page for reference. Good stuff..
 
 

Motor links:

 

motor source
AME 210 The Robot MarketPlace
AME 265-1002 The Robot MarketPlace
AME "A" Pack Not currently available.
AME "D" Pack The Robot MarketPlace
Andrus Engineering GX4 Andrus EngineeringThe Robot MarketPlace
Andrus Engineering 5015 Andrus Engineering, The Robot MarketPlace
Andrus Engineering 5017 Andrus Engineering, The Robot MarketPlace
AstroFlight 915 AstroFlight
AstroFlight 915P AstroFlight
AstroFlight 940 AstroFlight, The Robot MarketPlace
AstroFlight 940P AstroFlight, The Robot MarketPlace
AstroFlight 960 AstroFlight
AstroFlight 960P AstroFlight
AstroFlight 990 AstroFlight
AstroFlight 990P AstroFlight
Black & Decker 9074CTN Amazon.com
Bosch 3360K 12 V drill motor  2-607-022-890 Boschtools.com, ToolPartsDirect.com
Bosch GPA 750 Team Delta, ELLIS COMPONENTS
Bosch EV Warrior No longer available
BPMC 6C-2.2  
Briggs & Stratton E-Tek / NPC-X950 evparts.com, NPC Robotics, Team Delta, Team Whyachi, The Robot MarketPlace
CIM / FIrst Robotics FR801-001 IFI Robotics
DEWALT 24V drill motor D.C.WATERJET, The Robot MarketPlace
DEWALT old 18V drill motor The Robot MarketPlace, Team Delta
EDU-MOTOR-7.2 IFI Robotics
GH30MOT SOZBOTS
Globe IM-21 Surplus Center
Globe 455A116-2 Best Robotics Competition
Globe 515A157-2 Best Robotics Competition
Harbor Freight 9.6 V Harbor Freight
Harbor Freight 12 V Harbor Freight
Johnson 12 V The Robot MarketPlace
Johnson Mini-EV The Robot MarketPlace, Surplus Center
Johnson 3.6 V The Robot MarketPlace
Johnson 6 V The Robot MarketPlace
Lemco Lem-130 evparts.com
Lemco Lem-170 evparts.com
Lemco Lem-200 evparts.com
Mabuchi RS-550 HS  
Mabuchi RS-550 PC  
Mabuchi RS-550 PF  
Magmotor C28-150 Robot Books.Com, The Robot MarketPlace
Magmotor C28-400 Robot Books.Com, The Robot MarketPlace
Magmotor C40-300 Robot Books.Com, The Robot MarketPlace
NPC-01280 NPC Robotics
NPC-02423 NPC Robotics
NPC-1200 NPC Robotics
NPC-64038 / NPC-T64 NPC Robotics, The Robot MarketPlace
NPC-74038 / NPC-T74 NPC Robotics, The Robot MarketPlace
NPC-84088 / NPC-T84 NPC Robotics, The Robot MarketPlace
Perm Motor PMG 080  
Perm Motor PMG 132  
Redmond PV28167Q Surplus Center
Redmond PV2R049 Surplus Center
Revcor 60036-14 evparts.com
Revcor Zappy EVdeals.com, ZapWorld.com

Scott 4BB-02488 / Black Max

evparts.com, NPC Robotics
Scott 4BD-1460  
Siemens AS02-15-150-F Surplus Center
Sullivan Dynatron Sullivan Products
Sullivan Hi-Tork Sullivan Products
Sullivan Model 4 Sullivan Products
Thin Gap 3200-35A The Robot MarketPlace
Thin Gap 3200-42A The Robot MarketPlace

 

 

Speed controller links:

Basic info Advanced info
Controller Channels Voltage Continuous current PWM Frequency Sources FET Type FETs per leg FET VDSS FET RDS FET ID(1)
48330 1 14.5 V - 58 V 330 A 16 kHz Team Whyachi, The Robot MarketPlace          
Ampflow (1 channel) 1 12 V - 40 V 320 A 16 kHz AmpFlow.Com, The Robot MarketPlace   8      
Ampflow (2 channel) 2 12 V - 40 V 160 A 16 kHz AmpFlow.Com, The Robot MarketPlace   4      
Icon H-Bridge 1 1 V - 40 V 12 A 19.2 kHz Active Robots IRF8027S 1 75 V 0.013 Ω 82 A
MC1-HV 1 4 V - 42 V 400 A up to 16 kHz (2) Robot Solutions, The Robot MarketPlace IRF1407 8 75 V 0.0078 Ω 130 A
ML-ESC10 1 6 V - 50 V 10 A 500 Hz The Robot MarketPlace          
OSMC 1 14 V - 30 V 160 A up to 32 kHz (2) Robot Power, The Robot MarketPlace IRF1404 4 40 V 0.004 Ω 202 A
OSMC 1 14 V - 50 V 160 A up to 32 kHz (2) Robot Power, The Robot MarketPlace IRF1405 4 55 V 0.0053 Ω 169 A
RDFR 21 2 4.5 V - 30 V 14 A 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace          
RDFR 22 2 4.5 V - 30 V 20 A 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace          
RDFR 23 2 4.5 V - 30 V 30 A 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace IRF1010N 2 55 V 0.011 Ω 85 A
RDFR 33 2 9 V - 43 V 35 A 169 Hz, 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace IRFZ44 6 60 V 0.028 Ω 50 A
RDFR 36E 2 9 V - 43 V 60 A 169 Hz, 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace          
RDFR 38E 2 9 V - 32 V 80 A 169 Hz, 338 Hz, 21.6 kHz VANTEC   6      
RDFR 42 2 32 V - 60 V 20 A 169 Hz, 338 Hz, 21.6 kHz VANTEC          
RDFR 43E 2 32 V - 60 V 35 A 169 Hz, 338 Hz, 21.6 kHz VANTEC          
RDFR 47E 2 9 V - 55 V 75 A 169 Hz, 338 Hz, 21.6 kHz VANTEC, The Robot MarketPlace          
RDFR 61 2 50 V - 140 V 10 A 169 Hz, 338 Hz, 21.6 kHz VANTEC          
RDFR 61E 2 50 V - 140 V 15 A 169 Hz, 338 Hz, 21.6 kHz VANTEC          
RoboteQ AX2550 2 12 V - 40 V 120 A 16 kHz RoboteQ, The Robot MarketPlace, NPC Robotics   2      
RoboteQ AX2550HE 2   140 A       4      
RoboWars IBC 2 4 V - 36 V 50 A   RoboWars, The Robot MarketPlace IRF1405 1 55 V 0.0053 Ω 169 A
RS80D 2 4 V - 42 V 80 A   Robot Solutions, The Robot MarketPlace IRF1407 2 75 V 0.0078 Ω 130 A
RSGSS 2       Robotic Sporting Goods IRFZ44V 3 60 V 0.0165 Ω 55 A
RSGTX 2 15 V - 24 V 60 A   Robotic Sporting Goods   3      
Scorpion 2 4.8 V - 22 V 2.5 A   Robot Power, The Robot MarketPlace          
Sidewinder 2 6 V - 50 V 80 A Robot Power 2
Thor 883 1 6 V - 30 V 120 A 120 Hz The Robot MarketPlace ISL9N303AP3 3 30 V 0.0026 Ω 75 A
Victor 883 1 6 V - 30 V 60 A 2 kHz IFI Robotics, The Robot MarketPlace, Team Delta IRL2203N 3 30 V 0.007 Ω 116 A
Victor 884 1 6 V - 15 V 40 A 120 Hz IFI Robotics IRL3103 3 30 V 0.012 Ω 64 A
Victor 885 1 6 V - 30 V 120 A 120 Hz IFI Robotics, The Robot MarketPlace

IRF3703

3 30 V 0.0028 Ω 210 A
Victor-HV 36V 1 12 V - 42 V 120 A 120 Hz IFI Robotics, The Robot MarketPlace   4      
Victor-HV 48V 1 12 V - 60 V 90 A 120 Hz IFI Robotics, The Robot MarketPlace   4      
                     

1. Typically the FET case's ability to dissipate heat limits this number to around 40 A per FET.

2. The PWM frequency for this controller is determined by one of the following interfaces:

    MOB: 2 kHz, 4 kHz, 16 kHz, 32 kHz

    uMOB: 3 kHz

    uRRC 2.0:



--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To post to this group, send email to hbrob...@googlegroups.com.
To unsubscribe from this group, send email to hbrobotics+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hbrobotics?hl=en.




--
Inspection time: The period of time required to inspect a recently welded piece of metal using your bare hand.
The hoter the metal the shorter the period of inspection time

James M.(Jim) Geidl

unread,
Feb 17, 2010, 9:04:07 PM2/17/10
to hbrob...@googlegroups.com
Steven,
 
This is great!!!!!
 
Thank you very much,
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//




From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of Steven Nelson
Sent: Wednesday, February 17, 2010 5:48 PM

To: hbrob...@googlegroups.com
Subject: Re: [HBRobotics] PWM Frequency

giuliano carlini

unread,
Feb 17, 2010, 9:40:19 PM2/17/10
to hbrob...@googlegroups.com, James M.(Jim) Geidl
Sure.

Logic control outputs go into the optos, motor control inputs come out of it. Any feedback from controller to logic goes through an opto the other way round.

Motor and logic batteries are connected to their respective systems, and are completely electrically isolated from each other. If you have a high power H-bridge without opto's, it's pretty easy to put  together a proto board with optos to separate logic from motor. Size of the hbridge pretty much doesn't matter, since the control signals are all around the same voltage/current.

Only issue is feedback modeled as a voltage. The optos I'm familiar with are either on or off. Don't know of any whose output voltage is proportional to input voltage.


                      Vmotor
                       |
                       v
Vcc -->M -----> opto-->Hb---\
       C -----> opto-->ri    O
Gnd <--U -----> opto-->dg<--/
         <----- opto<--e
                       |
                       v
                       Gnd


giuliano

Peter Nau

unread,
Feb 17, 2010, 9:56:41 PM2/17/10
to hbrob...@googlegroups.com
If a motor has high torque but a low effective moment of inertia (i.e., resistance to rotation, including coupled resistance due to the gears and load), then higher frequencies might work better.  On the other hand, a big 'bot with a relatively low-torque motor works very well using low PWM frequency, as Giuliano mentioned. 

Anyway, this is just one factor.  It applies because a large rotating mass smooths out the PWM impulse vibrations better than a small mass does.  The mass acts just like a low-pass filter, where the bigger the mass, the lower the filter cut-off frequency.  The other factors y'all have mentioned apply, too: electronics, audio, resonance, noise, motor specs, etc.

Ignoring those other factors, if the system is smooth enough when you run it at the low end of speed, then the PWM frequency is probably high enough.  If it's jerky, then higher frequency might help.

As an interesting
(to some people, anyway :-) aside, a "Class D" audio amplifier is actually a PWM amp with a low-pass filter on the output.  I read that they work well and are very efficient.  Same general principal.

Cheers,
~Peter


James M.(Jim) Geidl

unread,
Feb 17, 2010, 10:52:30 PM2/17/10
to hbrob...@googlegroups.com
Peter,
 
Thanks.  At this point things are running OK.  When I take all this to bigger motors we will have to see what happens.   I just got confirmation from the vendor that this board does output PWM at 2.4Khz.  It can be adjust through configuration up to around 10KHz maximum.
 
Jim
 

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number of electrons were terribly inconvenienced.

//




From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On Behalf Of Peter Nau
Sent: Wednesday, February 17, 2010 6:57 PM

To: hbrob...@googlegroups.com
Subject: Re: [HBRobotics] PWM Frequency

Nathaniel Lewis

unread,
Feb 17, 2010, 11:34:26 PM2/17/10
to hbrob...@googlegroups.com
Same here, my 20 MHz AVRs with 10 bit pwm is about 20 KHz pwm frequency.
80 KHz if you use 8 bit pwm. Don't go pumping either of those into one
of Pololu's drivers, they freak out at anything over 10 KHz. My big
driver that I got at Pololu almost fried with a little radioshack motor
on 20 KHz pwm.
Nathaniel

James M.(Jim) Geidl

unread,
Feb 17, 2010, 11:49:27 PM2/17/10
to hbrob...@googlegroups.com
Yeah, they want 10KHz and nothing more.

Jim, K6JMG
www.spinochio.com

No trees were harmed in the sending of this message; however, a large number
of electrons were terribly inconvenienced.
//

> -----Original Message-----
> From: hbrob...@googlegroups.com
> [mailto:hbrob...@googlegroups.com] On Behalf Of Nathaniel Lewis
> Sent: Wednesday, February 17, 2010 8:34 PM
> To: hbrob...@googlegroups.com
> Subject: Re: [HBRobotics] PWM Frequency
>

Jack Buffington

unread,
Feb 18, 2010, 12:00:02 AM2/18/10
to HomeBrew Robotics Club
I'm a little late on this one since I get the daily digest but my
understanding of why you would pick one PWM frequency over another is
as follows, at least for a solenoid or motor where you are alternating
the direction of the power through the motor on every PWM cycle. For
example, if you were driving it with a 50% duty cycle, then your motor
would be stopped. 100% duty cycle would get you full speed one way.
0% duty cycle would get you full speed the other way.

If you go too high in frequency, you will spend a lot of time with
your MOSFETs half on. Your efficiency goes down and you risk burning
up your MOSFETs.
If you go too low in frequency, your MOSFETs will be fine but you will
end up saturating your motor's coils which won't give you any
additional magnetic force out of them but will put the maximum
possible power through the motor. Your motor will end up getting
hot. Efficiency goes down.

Of course, some motors like coreless motors have very low inductance
so the technically proper frequency would be very high. Higher than a
lot of H-bridges can handle. You can correct for that by adding an
inductor in series with it. This will bring the ideal frequency
down.

Of course, unless you are working with a really big motor where lots
of heat could be an issue or have efficiency issues that you need to
attend to, I would just pick something out of the audible range and
call it a day if your H-bridge can handle that frequency.

-Jack

Nathaniel Lewis

unread,
Feb 18, 2010, 2:15:17 AM2/18/10
to hbrob...@googlegroups.com
The HEXFET drivers on my robot took the 20 KHz signal and only got warm if
they were put under stress(like driving up a hill). It used power wheels
motors. They are big and beefy with a 30 Amp stall current but lugged
around the 60 pound robot with ease.

-----Original Message-----
From: hbrob...@googlegroups.com [mailto:hbrob...@googlegroups.com] On

-Jack

--

Reply all
Reply to author
Forward
0 new messages