PWM

Use the BeagleBone Black pulse-width modulation module

Objects

beagleboneConnection to BeagleBone Black hardware

Functions

beagleboneCreate connection to BeagleBone Black hardware
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