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.

PWM

Use the BeagleBone Black pulse-width modulation module

Objects

beagleboneConnection to BeagleBone Black hardware

Functions

clearTerminate connection to BeagleBone Black hardware
showAllPinsShow diagram of all pins
showPinsShow diagram of GPIO pins
enablePWMEnable PWM pin
writePWMDutyCycleWrites PWM duty cycle to PWM pin
writePWMFrequencyWrites PWM frequency to PWM pin
writePWMVoltageWrites average PWM voltage to PWM pin

Examples and How To

Use the BeagleBone Black PWM to Capture PWM Measurements

This example shows how to use the BeagleBone Black PWM to generate a square wave of given frequency and duty cycle.

Concepts

The BeagleBone Black PWM

BeagleBone Black pulse-width modulation (PWM) module

BeagleBone Black Pin Map

Detailed description of BeagleBone Black pin map

Troubleshooting

Troubleshoot the BeagleBone Black PWM

BeagleBone Black pulse-width modulation (PWM) module