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 On Tue, Aug 16, 2016 at 5:39 AM, <cl...@bovia.com.tw> wrote: > 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 > > -- > 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+unsubscr...@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. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAEf4M_CC%3DX3NasHqkLeKVCLJ%3D9KvzZA%3DwB07fZY5vZq_TDeUkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.