Enabling the PWM in Beagle bone black Rev C is bit difficult.

18 views
Skip to first unread message

Santhosh

unread,
Apr 26, 2020, 3:01:16 PM4/26/20
to BeagleBoard
Hello Team,

I am new to this Beagle bone board. I started learning since few days- could you please help us in configuring PWM pin P9_14.
Currently i am using Adafruit library PWM

IOError: [Errno 2] No such file or directory: '/slots'


Thank you,
Santhosh

evilwulfie

unread,
Apr 26, 2020, 3:15:35 PM4/26/20
to beagl...@googlegroups.com
Slots is too old  please look at the adafruit python3
stuff
--
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/30abe538-065e-4f25-9642-99406b38b407%40googlegroups.com.

Dennis Lee Bieber

unread,
Apr 26, 2020, 6:20:35 PM4/26/20
to Beagleboard
On Sat, 25 Apr 2020 03:59:42 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user Santhosh
<hapiness421-Re5JQ...@public.gmane.org> wrote:

>Hello Team,
>
>I am new to this Beagle bone board. I started learning since few days-
>could you please help us in configuring PWM pin P9_14.
>Currently i am using Adafruit library PWM
>

Which library... And which version of Python?

>IOError: [Errno 2] No such file or directory: '/slots'
>

The BBB hasn't used "slots" in years.

debian@beaglebone:~$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from Adafruit_BBIO import PWM
>>> PWM.start("P9_14", 50)
>>> PWM.set_duty_cycle("P9_14", 25)
>>> PWM.stop("P9_14")
>>> PWM.cleanup()
>>> exit()
debian@beaglebone:~$

https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/PWM.html
(top level)
https://adafruit-beaglebone-io-python.readthedocs.io/en/latest/index.html



--
Dennis L Bieber

Reply all
Reply to author
Forward
0 new messages