This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Pulse Width Modulation

Use the Raspberry Pi™ to create pulse-width-modulation (PWM) signals on GPIO pins


raspiConnection to Raspberry Pi board


writePWMFrequencyWrites PWM frequency to a GPIO pin
writePWMDutyCycleWrites PWM duty cycle to PWM pin
writePWMVoltageWrites average PWM voltage to a GPIO pin


The Raspberry Pi PWM

Raspberry Pi pulse-width modulation (PWM) module