PWM
Use the BeagleBone® Black pulse-width modulation module
Objects
beaglebone | Connection to BeagleBone Black hardware |
Functions
clear | Terminate connection to BeagleBone Black hardware |
showAllPins | Show diagram of all pins |
showPins | Show diagram of GPIO pins |
enablePWM | Enable PWM pin |
writePWMDutyCycle | Writes PWM duty cycle to PWM pin |
writePWMFrequency | Writes PWM frequency to PWM pin |
writePWMVoltage | Writes average PWM voltage to PWM pin |
Examples and How To
- Use 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
- BeagleBone Black PWM
BeagleBone Black pulse-width modulation (PWM) module.
- BeagleBone Black Pin Map
Detailed description of BeagleBone Black pin map.
Troubleshooting
Troubleshoot BeagleBone Black PWM
BeagleBone Black pulse-width modulation (PWM) module.