Pulse-width modulation (PWM) is a common digital technique to control electrical power to a load using square wave pulses at some determined duty cycle. Proper control of pulse-width modulation ensures efficiency and accuracy in applications such as brushless motor control, solar power inverter control, and voltage regulation. A common challenge with these applications is evaluating the correctness of the control architecture early—before committing to the expense of hardware testing.
An efficient process for developing and implementing accurate algorithms for regulating pulse-width modulation involves:
To learn more about how PWM is implemented with Simulink ®, see the video Speed Control of a DC Motor Using PWM (7:27).
Cost-effective hardware like Arduino®, Raspberry Pi™, and BeagleBone supports pulse-width modulation. These boards can provide PWM signals over specified pins so you can easily build PWM controllers such as those used for motors or fans.