EBC Exercises on BBB - PWM

TurnToJPG -->


Simply enable the P9_21 to PWM, then connect to the LED. The LED connection could refer to EBC Exercises on BBB - Control LED

echo am33xx_pwm > $SLOTS
echo bone_pwm_P9_21 > $SLOTS
cd /sys/devices/ocp.3/pwm_test_P9_21.15/
echo 1000000000 > period
echo  250000000 > duty
echo 1 > run

From now you could see the LED begin to flash. In fact using this pwm we could control servo motor: