Enabling PWM on BeagleBone Black

Okay, working with the system files seems to work reliably. The Python library has been hit or miss for me. It seems like PWM doesn’t work right out of the box, as mentioned in the StackOverflow post, but they just have to be enabled in uEnv.txt.

To summarize the information from @samothx and @floion, at least for what worked for me:

  • Edit /mnt/boot/uEnv.txt to enable U-Boot overlays and add the overlay(s) needed.
  • Edit the files at /sys/class/pwm like normal.
  • Results may vary with the Adafruit_BBIO Python library

Thanks for the help!