[beagleboard] Re: PWM wave in pocketbeagle

2021-03-03 Thread Dennis Lee Bieber
On Wed, 3 Mar 2021 06:18:40 -0800 (PST), in gmane.comp.hardware.beagleboard.user Rafael Meyer wrote: > >I would like to know how to generate a PWM wave with code in python3. > https://adafruit-bbio.readthedocs.io/en/latest/PWM.html Based upon

[beagleboard] Re: PWM

2021-01-15 Thread TJF
stl...@gmail.com schrieb am Donnerstag, 14. Jänner 2021 um 23:51:46 UTC+1: > However, I feel I am missing a bunch of information. Which pwmchip exports > to which pwm-X:X and corresponds to which pin? > There're 20 pins for hardware PWM output on BBB (11 on Pocket). Find a list (including

[beagleboard] Re: PWM using eCAP module in PRU-ICSS

2020-07-19 Thread Vedant Paranjape
Hi, I need to add one more thing to this. On running *sudo /opt/scripts/tools/version.sh, *this is the output: https://pastebin.com/tgwb3u3S Regards, Vedant Paranjape On Monday, July 20, 2020 at 1:36:48 AM UTC+5:30 Vedant Paranjape wrote: > > Hi, > I wanted to use PRU-ICSS's eCap module to

[beagleboard] Re: PWM in beagle bone black

2019-08-14 Thread TJF
Hi Luis! Am Dienstag, 13. August 2019 18:14:53 UTC+2 schrieb Luis Paulo Fernandes de Barros: > > I recomend you to use adafruit python library ... It is a very easy to use > lib and helped me a lot to test GPIO stuff. > Check out libpruio

[beagleboard] Re: PWM in beagle bone black

2019-08-13 Thread lbarros
Hi Megha, I recomend you to use adafruit python library to check your uEnv.tx configuration and pin choice. It is a very easy to use lib and helped me a lot to test GPIO stuff. Here is a link to a simple tutorial:https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/pwm

[beagleboard] Re: PWM in beagle bone black

2019-08-01 Thread Megha Bhirade
Hi, I got why that error is coming . already i used those pins to UART , so i can't use that pins again to PWM. i am using P9.14 for pwm, but still also it is not working for me.. i am feeling something i need to add in to uEnv.txt, but i am not getting .. please suggest me?? -- For more

Re: [beagleboard] Re: PWM in beagle bone black

2019-07-31 Thread Megha Bhirade
Hi , i am using kernel version of 4.14.so slots file and bone -capemgr are disabled in V4.14 of kernel in the favor of U-boot overlay. my uEnv.txt file look like this. debian@beaglebone:/boot$ cat uEnv.txt #Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

Re: [beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread Megha Bhirade
On Wednesday, July 31, 2019 at 11:10:15 AM UTC+5:30, Megha Bhirade wrote: > > > Hi, > > using pwm i am doing some configurations in the beagle bone black.. > > in /sys/class/pwm/pwmchip1 > echo 0 > export echo 1 > export i can see the 2 pwm are added pwm1:0 , pwm1: 1 using

Re: [beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread Megha Bhirade
Hi, using pwm i am doing some configuartions in the beaglebone black.. in /sys/class/pwm/pwmchip1 -- 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

Re: [beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread evilwulfie
https://stackoverflow.com/questions/29369616/beaglebone-black-pwm-using-c On 7/30/2019 9:35 PM, Megha Bhirade wrote: Hi, can anybody suggest me c programing example on the pwm in beagle-bone black. -- For more options, visit http://beagleboard.org/discuss --- You received this message

[beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread Megha Bhirade
Hi, can anybody suggest me c programing example on the pwm in beagle-bone black. -- 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

[beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread TJF
Insiders tip welcome? Check out libpruio for easy and powerful PWM (and pinmuxing) features. Regards -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are

[beagleboard] Re: PWM in beagle bone black

2019-07-30 Thread Megha Bhirade
In other hand if i try to add some more pwm means it is showing the error like this debian@beaglebone:/sys/class/pwm$ cd pwmchip0 debian@beaglebone:/sys/class/pwm/pwmchip0$ ls device export npwm power pwm-0:0 subsystem uevent unexport debian@beaglebone:/sys/class/pwm/pwmchip0$ echo 3 >

[beagleboard] Re: pwm audio driver on BBB wireless with snd-pwmsp module

2019-07-23 Thread João Manoel
I want to say that I managed to get the pwm sound working. I was wrong when I said that the pwm sound was on the pin P9.28, in fact, this pin is related to the i2s sound from the board that is actually connected to the HDMI ic for sound. This explains why the "sound" was very noise; I'm

Re: [beagleboard] Re: PWM problem

2018-09-25 Thread Krzysztof Śmiałek
Ok, for me it is not important to flash emmc. I can use system from card. And I want use this method. So, what should I do step by step? For this momet I have got old version on the emmc and ne we on sd card. If i remove card, BBB boot from emmc. If I insert card, BBB boot from sd card. But when

Re: [beagleboard] Re: PWM problem

2018-09-25 Thread Robert Nelson
> * I don't know enough about the flashing process to know if it is done > on > a "by file" basis, or is done "by block". If the former, getting the used > space of the SD card down to around 1.5-1.8GB might be sufficient; if it is > by blocks, you'd have to somehow compress the SD card

Re: [beagleboard] Re: PWM documentation and/logic for kernel 4.9.XX

2018-02-27 Thread evilwulfie
http://www.ti.com/lit/pdf/spruh73 On 2/27/2018 2:09 AM, James Fitzsimons wrote: > Hi there, > > I've just gone through this myself, and you've already figured out all > you need to know. The pwmchipX mapping can change on boot so you can't > rely on the /sys/class/pwm structure. Figure out

[beagleboard] Re: PWM documentation and/logic for kernel 4.9.XX

2018-02-27 Thread James Fitzsimons
Hi there, I've just gone through this myself, and you've already figured out all you need to know. The pwmchipX mapping can change on boot so you can't rely on the /sys/class/pwm structure. Figure out which address maps the epwmss device you want to use and navigate down the /sys/device tree

[beagleboard] Re: PWM in Pocket Beagle Bone

2017-12-12 Thread mike . maikaefer
What software are you talking about? Linux? Bare metal/StarterWare? On Friday, December 8, 2017 at 10:55:39 AM UTC+1, Rohit Karkala wrote: > > Hello All, > > I want to disable the PWM functionality of Pocket Beagle Bone and use it > as GPIO. > > How can i do this. > -- For more options,

[beagleboard] Re: PWM from BeagleBone Blue to external motor controller.

2017-11-14 Thread Adam Saenz
Hi Phil, Q1) I would suggest looking at rc_pwm.c which is in the Robotics_Cape_Installer source code. A comment in the code says that there are 3 PWM subsystems; subsystem (ss) 1 and 2 are used by the built in motor drivers but ss 0 can be accessed from UART1; which leads one to believe is

[beagleboard] RE: PWM on Adafruit_BBIO and Python/Flask

2017-10-02 Thread Mala Dies
Hello, I noticed that PWM, P8_13, on the BBBW is having issues with the Adafruit_BBIO framework. I have this software I found within a book I purchased, "Getting Started with BeagleBone" (Richardson 2014). Anyway, The software works without me using PWM but I would like to use PWM to make a

[beagleboard] Re: PWM pins fluctuating during boot?

2017-07-27 Thread Graham
I think you need to assume that pretty much anything can happen while the board is booting or crashing, and inhibit all servo activities unless you know the BBB is in positive control. Depending on how "large" your fixed-wing is, it probably would not be a bad idea to put some kind of

[beagleboard] Re: PWM not working in pins P9_14 & P9_16 in BBB

2017-07-14 Thread sajeevan k
Hi all, Now I could make P9_14 working as PWM, with a Python script importing Adafruit_BBIO.PWM. But for this to work, I need to enable the below line in uEnv.txt cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable But enabling this line will make my other

[beagleboard] Re: PWM not working in pins P9_14 & P9_16 in BBB

2017-07-12 Thread sajeevan k
Hi all, Let me make my question short. I could configure the pins P9_21 and P9_22 as PWM output using BB-PWM0 overlay. But why it is not possible configure the the pins P9_14 & P9_16 and P8_13 & P8_19 as PWM signals, by doing the same procedure with BB-PWM2 and BB-PWM1 overlays? Thanks &

[beagleboard] Re: PWM generation using libpruio

2017-01-29 Thread 'woody stanford' via BeagleBoard
Break out your PWM on to a PIC16Fx (using it crystal-controlled with software-based PWM by counting the clock cycles per instruction) and then use UART to control it. An alternative fix, but it does give you nice isolation in the process. Depending on how powerful your servos are, you might

[beagleboard] Re: PWM generation using libpruio

2016-11-30 Thread TJF
Hi! Am Mittwoch, 30. November 2016 06:30:41 UTC+1 schrieb Akshay Gahlot: > > I want to use for PWM generation to control servo motor. The problem i m > facing is : > > To enable libpruio i m using this dts file > >

[beagleboard] Re: PWM generation using libpruio

2016-11-30 Thread TJF
Hi! Am Mittwoch, 30. November 2016 06:30:41 UTC+1 schrieb Akshay Gahlot: > > I want to use for PWM generation to control servo motor. The problem i m > facing is : > > To enable libpruio i m using this dts file > >

[beagleboard] Re: PWM generation using libpruio

2016-11-30 Thread Greg
Are you using a recent Beagleboard image? Beaglebone? I haven't used libpruio, but I assume it uses the UIO kernel driver. First, you will need to activate that driver. This utility will help get it done: https://github.com/RobertCNelson/dtb-rebuilder You will need to clone the above to your

Re: [beagleboard] Re: PWM Pin Error on Boot

2016-03-30 Thread John Syne
One more thing, you may want to look at /driver/pinctrl/pinctrl-single.c as this is where the pinmux gets set.You could also use dynamic tracing to help find the responsible routine. Look in /Documentation/dynamic-debug-howto.txt. Probably a little bit of trial and error will be needed to

Re: [beagleboard] Re: PWM Pin Error on Boot

2016-03-30 Thread M House
Thanks for the reply John. I'm pretty new to modifying kernel modules and I haven't worked with u-boot at all. I'm not sure at the moment when the GPIO is modified but I think it happens whenever the system resets, most likely on startup. Should I try a kernel dump right after I boot?

Re: [beagleboard] Re: PWM Pin Error on Boot

2016-03-30 Thread John Syne
Well, that depends on how skilled you are at modifying u-boot and the linux kernel? In each case, modify the code that toggles the GPIO pin by printing text to the console when the GPIO you want is modified. You could always issue a kernel dump when that GPIO is modified, which will list the

[beagleboard] Re: PWM Pin Error on Boot

2016-03-30 Thread M House
Hey everyone I'm still stuck as to why my beaglebone keeps changing the polarity to 1 on boot. I can go in and manually change it but it always resets after reboot. Should I maybe write a start up script to force the polarity to 0? I'd rather find the root cause rather than a hack but at

[beagleboard] Re: PWM Pin Error on Boot

2016-03-20 Thread M House
I should clarify that it is every time I start my node.js server file that a has a required module that uses P9_14. I can manually change the polarity to 0 but it resets every time I reboot. On Saturday, March 19, 2016 at 11:30:58 PM UTC-7, M House wrote: > > I'm doing a project right now that

Re: [beagleboard] Re: PWM: only a finite number of pulses? Controlling stepper motor

2014-12-01 Thread David Armstrong
what is the end product you want ? cnc ? 3d printer ? Linuxcnc does all this and is proven and reliable and works on a beaglebone black ( machinekit) i am a moderator for Linuxcnc , and have worked with steppers for a lot of years , so give me some more information and see how it fits or not to

[beagleboard] Re: PWM: only a finite number of pulses? Controlling stepper motor

2014-11-25 Thread cncbasher
see Linuxcnc.org and the beaglbone variant Machinekit does exactly that On Saturday, 18 October 2014 02:26:26 UTC+1, plla...@gmail.com wrote: http://electronics.stackexchange.com/questions/134356/beaglebone-generate-finite-pulse-train# I'm wanting to use the BeagleBone Black to

[beagleboard] Re: PWM: only a finite number of pulses? Controlling stepper motor

2014-10-27 Thread karlkarpfen79
May be you can ask these guys here: http://www.halaser.eu/e1701m.php They're offering an industrial motor controller based on an BBB and should have solved this problem. Am Samstag, 18. Oktober 2014 03:26:26 UTC+2 schrieb plla...@gmail.com:

[beagleboard] Re: PWM: only a finite number of pulses? Controlling stepper motor

2014-10-27 Thread fakd23
You could use the SPI interface Am Samstag, 18. Oktober 2014 03:26:26 UTC+2 schrieb plla...@gmail.com: http://electronics.stackexchange.com/questions/134356/beaglebone-generate-finite-pulse-train# I'm wanting to use the BeagleBone Black to generate a FINITE number of pulses, in

[beagleboard] Re: PWM howto for BBB linux 3.16.x?

2014-09-28 Thread Seth
Bump, as I have the same question. Any updates? Thanks. -- 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] Re: PWM: changing Period of EHRPWM

2014-09-16 Thread avterekhov
Hi, In case someone still needs a solution to this problem, I've written a small kernel patch: ti_ehr_pwm.patch https://sites.google.com/site/avterekhov/ti_ehr_pwm.patch and a short description of how to apply it:

[beagleboard] Re: PWM: changing Period of EHRPWM

2014-06-26 Thread jmc5113
I also tried this and had no luck :-/ PWM on the BBB is turning out to be more work than I had thought. On Monday, January 6, 2014 12:13:37 PM UTC-8, Anto Dominic wrote: Thanks, Tried your trick even replaced the new dtbo file but even after that I am getting the default value for

[beagleboard] Re: pwm pinmux

2014-05-12 Thread cameronstiffler
I also have similar questions. I have a robot with 24 servos and I am wondering if I can control all of them straight from the BBB board. Can all of these pins be used for PWM if mapped as such in the device tree? On Wednesday, October 2, 2013 7:03:53 AM UTC-7, tbh wrote: I've just gotten pwm

[beagleboard] Re: PWM period

2014-04-22 Thread Sungjin Chun
If you are using device tree based approach, then refer this link https://groups.google.com/forum/#!topic/beagleboard/4R91_v9WBEY I hope this can help you. On Tuesday, April 22, 2014 9:02:11 AM UTC+9, Dorian Levy wrote: I want to use two servos with pins 8_13 and 8_19. How can I change the

Re: [beagleboard] Re: PWM in the 3.13 Kernel

2014-04-19 Thread robert.berger
Hi, Check my comment here: http://thread.gmane.org/gmane.comp.hardware.beagleboard.user/65797 -- 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

[beagleboard] Re: PWM in the 3.13 Kernel

2014-04-18 Thread halherta
I retried accessing PWM in the latest 3.13 kernel.with no luck. Is PWM still not supported in 3.13 (under /sys/devices/ocp.#/pwm_test_P9_14.#/) or is there simply a new way to access PWM that I'm not aware of ? Hussam On Tuesday, March 25, 2014 5:29:03 PM UTC-4, halh...@gmail.com wrote:

Re: [beagleboard] Re: PWM in the 3.13 Kernel

2014-04-18 Thread Sungjin Chun
If properly enabled in dtb file during booting, you can always use any peripherals in AM335X SoC. Refer https://github.com/chunsj/nxctrl/blob/master/pwm-test.c, which uses /dev/mem for control pwm. Of course this code does not provide sysfs interface. Sent from my iPad On Apr 18, 2014, at

Re: [beagleboard] Re: PWM in the 3.13 Kernel

2014-04-18 Thread halherta
Thanks Sungjin! I'll take a look a your codeI'm still curious as to what exactly happened to the pwm sysfs interface in the 3.13 kernel though. If anyone knows please let me/us know Thanks! On Friday, April 18, 2014 8:48:12 AM UTC-4, Sungjin Chun wrote: If properly enabled in dtb file

[beagleboard] Re: PWM ADC on BBB using C++

2014-03-16 Thread bakshiaditya
Dear Mr Sai Am looking to get in touch with you regarding your good work. Please do connect Thanks and regards Aditya -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups BeagleBoard group. To unsubscribe

[beagleboard] Re: PWM on more than 4 pins?

2014-03-03 Thread Andrew Dai
Which pins are you using? P9_14 P9_22 P8_12 and P8_14 work just fine for me On Sunday, March 2, 2014 2:24:31 PM UTC-5, ghostma...@gmail.com wrote: very time I try to use certain PWM pins on the BeagleBone Black I get this error for most of the pins (from the ones shown in yellow here:

Re: [beagleboard] Re: PWM on more than 4 pins?

2014-03-03 Thread Andrew Dai
Woops sorry, my mistake. I have PWM on P9_14 and P9_22 On Mon, Mar 3, 2014 at 10:14 AM, Andrew Dai the...@andrewdai.co wrote: Which pins are you using? P9_14 P9_22 P8_12 and P8_14 work just fine for me On Sunday, March 2, 2014 2:24:31 PM UTC-5, ghostma...@gmail.com wrote: very time I

Re: [beagleboard] Re: PWM on more than 4 pins?

2014-03-03 Thread ghostman414004
Firstly, the working pins tend to change randomly... Cos P8_13 works for me. Secondly yeah, I do get a set of 4 working PWMs but I need more than that, I need 5 pwm. I am trying to work with the Adafruit library but that gives me this error when I try it on some of them. Even the pyBBIO library

[beagleboard] Re: PWM and Analog ins on TI Android with BBB and Kernel 3.2

2014-02-11 Thread Vishveshwar
On Tuesday, February 11, 2014 4:15:52 AM UTC+5:30, Ernesto Gigliotti wrote: Hello, I have I2C,SPI and GPIOs working on TI Android with 3.2 Kernel (without device tree) but I have no clue about PWM and Analog inputs, I don't know where I can start looking. I would appreciate any help.

[beagleboard] Re: PWM Subsystem Time Base input clock frequency?

2014-01-31 Thread robjsstewart
On Friday, January 31, 2014 1:38:32 PM UTC-5, robjss...@gmail.com wrote: According to the TRM, the Time Base module on each of the PWM subsystems is clocked directly from the cpu clock. That is, its being clocked at a period of 1 nsec. It can be prescaled down to 1/128,for a period of 128

[beagleboard] Re: PWM Subsystem Time Base input clock frequency?

2014-01-31 Thread robjsstewart
On Friday, January 31, 2014 1:48:09 PM UTC-5, Peter Baltus wrote: I guess I would argue that with 16 bits the counter can count up to 65535 and wrap around after 65536 counts of 128ns max. That gives a max period of the PWM of 8.39ms and a min frequency of 119Hz - I think. But it has been a

[beagleboard] Re: PWM: changing Period of EHRPWM

2014-01-06 Thread Giuseppe Iellamo
Hi, the problem is a bug in pwm_test so that once you enabled two channels of the same ehrpwm you cannot change the period. Try look at http://saadahmad.ca/using-pwm-on-the-beaglebone-black/ https://github.com/SaadAhmad/beaglebone-black-cpp-PWM Il giorno lunedì 6 gennaio 2014 21:13:37 UTC+1,

[beagleboard] Re: PWM input in beaglebone

2014-01-05 Thread Bruce Schaller
I'm guessing that you figured this out already or don't care any more. But in case you were wondering, you can use the GPIO pins, google around for this and there's the interrupt method. Maybe the easiest if you don't mind 10bit resolution would be to use the PWM with an optocoupler, like the