Beaglebone PWM problem

37 views
Skip to first unread message

cl...@bovia.com.tw

unread,
Aug 16, 2016, 9:30:07 AM8/16/16
to BeagleBoard
Hello everyone:
I'm just tried servo motor in beaglebone black, but look like it's doesn't working.
My debian kernel version is: 4.1.6-ti-r17
PWM: P8_19

I have referenced from here(am33xx_pwm-00A0.dts, BB-PWM2-00A0.dts):
https://github.com/beagleboard/bb.org-overlays

and Adafruit_BBIO simple code(last version):
https://learn.adafruit.com/controlling-a-servo-with-a-beaglebone-black/the-python-console

but it always told me:
Traceback (most recent call last):
File "test.py", line 6, in <module>
PWM.start("P8_19", 50, 1000, 1)
IOError: [Errno 2] No such file or directory: '/slots'

How can I check PWM is ready? I have checked it load in my bone_capemgr.
root@beaglebone:~# cat /sys/devices/platform/bone_capemgr/slots
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-SPI0-01
5: P-O-L- 1 Override Board Name,00A0,Override Manuf,am33xx_pwm
6: P-O-L- 2 Override Board Name,00A0,Override Manuf,BB-PWM2

Have any one can give me suggestion?

Thanks,
Cloud

Drew Fustini

unread,
Aug 28, 2016, 3:33:44 AM8/28/16
to beagl...@googlegroups.com
Please try the most recent version of Adafruit_BBIO from GitHub:
https://github.com/adafruit/adafruit-beaglebone-io-python

Matthew West did an awesome job adding PWM support for Linux 4.1+ kernels:
https://github.com/adafruit/adafruit-beaglebone-io-python/pull/108

It was merged 9 days ago by ladyada.

cheers,
drew
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/b3cc59a9-7105-4037-9c0a-0a33069b8788%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages