How can I set PWM in PocketBeagle

23 views
Skip to first unread message

Mys Patchim

unread,
Feb 13, 2018, 8:17:52 AM2/13/18
to BeagleBoard
I want to control PWM but I don't know how can I set it.

I use Debian 9.3    I try. ..

cd /sys/class/pwm/pwmchip0
index=0
echo $index > export
cd pwm$index
echo 1 > enable
echo 1000000000 > period  
echo  500000000 > duty_cycle  

but nothing happened . ..    and how do I know which PWMchip is  PWM0A , PWM0B,  PWM1A ,  PWM1B 

Robert Nelson

unread,
Feb 13, 2018, 9:38:41 AM2/13/18
to Beagle Board, usa...@gmail.com
Reply all
Reply to author
Forward
0 new messages