PWM Frequency | Improve Brushed DC Motor Performance

Skip to main content Improve Brushed DC Motor Performance PWM Frequency
  • Overview
  • Introduction
  • PWM and Brushed DC Motors
    • Duty Cycle
    • Decay Mode
    • PWM Frequency
  • Choosing Decay Mode and PWM Frequency
  • CircuitPython Code Examples
  • Measuring Motor Performance
    • Motor Performance Charts
    • A Motor Testing Appliance
  • References
  • Single page
  • Feedback? Corrections?
  • Text View
Featured Products view all
  • Angled shot of a Adafruit CRICKIT FeatherWing for any Feather Adafruit CRICKIT FeatherWing for any Feather $29.95 Add to Cart
  • Top down view of a Adafruit CRICKIT for Circuit Playground Express with a circular board connected. Adafruit CRICKIT for Circuit Playground Express Out of Stock
  • Angled Shot of the Assembled DC Motor + Stepper FeatherWing Add-on Assembled DC Motor + Stepper FeatherWing Add-on $21.50 Add to Cart
  • Angled shot of a Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit connected to several different steppers and servos. Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit Out of Stock
  • Angled shot of a blue, square-shaped DC motor driver breakout with green pre-soldered terminal blocks. Adafruit DRV8871 DC Motor Driver Breakout Board - 3.6A Max $7.50 Add to Cart
  • Your browser does not support the video tag. Video of a Adafruit DRV8833 DC/Stepper Motor Driver Breakout Board connected to a half sized white board powering a stepper motor with a adabot head spinning on it. Adafruit DRV8833 DC/Stepper Motor Driver Breakout Board Out of Stock
  • Your browser does not support the video tag. Video of a spinning motor driver connected to a Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board. Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board $6.95 Add to Cart
  •  L293D Dual H-Bridge Motor Driver for DC or Steppers Dual H-Bridge Motor Driver for DC or Steppers - 600mA - L293D $8.95 Add to Cart
28 Intermediate Project guide

PWM Frequency

robotics___cnc_DSC06293_2.jpg Coils of Wire in the Motor's Rotor PWM Frequency is the count of PWM interval periods per second, expressed in Hertz (Hz). Mathematically, the frequency is equal to the inverse of the interval period's length (PWM_Frequency = 1 / PWM_Interval_Period).

When calculating the PWM Equivalent Voltage, we generally assume that the motor will operate ideally and respond as if it was connected to a non-PWM power source providing the voltage. But that's not the case. For example, a Yellow-TT motor will easily spin if a single 1.5-volt battery is connected, but will not turn until the PWM Equivalent Voltage coming from a Motor FeatherWing reaches 2.0 volts when operating in fast decay mode. And when it does start, it suddenly rotates at 4000 RPM. Why is that? 

Since a brushed DC motor’s internal rotor consists of two or more coils of wire wound around laminated magnetic core material, the motor acts like an inductor. Depending on size of the rotor coil, it may take a few milliseconds for the energy to build sufficiently to turn the shaft.

Inductors are electromagnetic components that capture energy from the incremental buildup of the magnetic field created by an electrical current passing through a wire coil.

Rotor coil inductance becomes an important factor to consider when using PWM for motor speed control. The motor coil works best when the applied voltage is relatively steady since it needs time for its magnetic field to reach the needed strength. At higher PWM frequencies, the pulses from the motor controller board change too quickly to provide enough energy to spin the motor until the equivalent voltage reaches 2.0 volts, although switching to using slow decay mode can help.

When the PWM frequency is lowered, the motor’s coils extract more energy from the pulsed PWM signal. That means that the motor will start spinning at a lower equivalent voltage and will operate with improved torque at low speeds. The following graphs compare the Yellow-TT motor's speed response when the default PWM frequency of 1600Hz is changed to 25Hz.

robotics___cnc_Yellow-TT_Throttle_Freq_Comparison.png

The spin threshold at 25Hz starts at 0.5 volts or less depending on the decay mode selection, increasing the useable motor speed range to as low as 100 RPM. The Yellow-TT gearbox reduces the motor’s RPM by a factor of 48, so the attached wheel will be turning at 2 RPM or about 0.7 cm/sec. A velocity like that will make it much easier for your robot to sneak up on the cat.

So now that we know about current decay mode and PWM frequency, how do we go about choosing the best configuration of the two parameters for our robot’s motors?

Page last edited March 08, 2024

Text editor powered by tinymce.

Decay Mode Choosing Decay Mode and PWM Frequency Related Guides Your browser does not support the video tag. This links to the guide Animatronic Glowing Medusa Headdress. Animatronic Glowing Medusa Headdress By Erin St Blaine intermediate Your browser does not support the video tag. This links to the guide Motorized Marble Machine. Motorized Marble Machine By Ruiz Brothers beginner Make It Sound By Anne Barela beginner Crickit Carnival Bumper Bot By John Park beginner Your browser does not support the video tag. This links to the guide Hacking Holiday Animatronics. Hacking Holiday Animatronics By John Park intermediate 3D Printed Animatronic Robot Head By Rick Winscot beginner Your browser does not support the video tag. This links to the guide Astrolite NeoPixel Upgrade. Astrolite NeoPixel Upgrade By Ruiz Brothers intermediate Your browser does not support the video tag. This links to the guide Crickit Powered Mini Chair Swing Ride!. Crickit Powered Mini Chair Swing Ride! By Isaac Wellish beginner Your browser does not support the video tag. This links to the guide Robotic Creatures . Robotic Creatures By Ruiz Brothers beginner Your browser does not support the video tag. This links to the guide Mini Golf Course with Circuit Playground and Crickit. Mini Golf Course with Circuit Playground and Crickit By Dano Wall beginner Adafruit DRV8833 DC/Stepper Motor Driver Breakout... By lady ada intermediate Your browser does not support the video tag. This links to the guide Hello World of Robotics with Crickit. Hello World of Robotics with Crickit By Anne Barela beginner Your browser does not support the video tag. This links to the guide BLE Light Switch with Feather nRF52840 and Crickit. BLE Light Switch with Feather nRF52840 and Crickit By John Park beginner Affordable HAL 9000 Replica By Phillip Burgess beginner Adafruit Motor Selection Guide By Bill Earl beginner
Create Wishlist
× Title Description Close Search Search
Categories

Tag » Arduino Pwm Motor Control Frequency