[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 
 
and judge again.

Regards

-- 
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/f2c7a474-c37c-4c23-aad4-7a07c686a731%40googlegroups.com.


[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

Em sexta-feira, 2 de agosto de 2019 01:07:38 UTC-3, Megha Bhirade escreveu:
>
>
> 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 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/6829d8fc-54ae-448a-b8e4-996d80d7335f%40googlegroups.com.


[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 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/063a4722-7e7e-4e7e-ab02-86bf08a07e90%40googlegroups.com.


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

uname_r=4.14.71-ti-r80
#uuid=
#dtb=

###U-Boot Overlays###
###Documentation: 
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/.dtbo
#uboot_overlay_addr1=/lib/firmware/.dtbo
#uboot_overlay_addr2=/lib/firmware/.dtbo
#uboot_overlay_addr3=/lib/firmware/.dtbo
###
###Additional custom capes
#uboot_overlay_addr4=/lib/firmware/.dtbo
#uboot_overlay_addr5=/lib/firmware/.dtbo

uboot_overlay_addr6=/lib/firmware/BB-UART1-00A0.dtbo
uboot_overlay_addr7=/lib/firmware/BB-UART2-00A0.dtbo

###
###Custom Cape
#dtb_overlay=/lib/firmware/.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_wireless=1
#disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.4.x-ti kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo
###pru_rproc (4.14.x-ti kernel)
uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo
###pru_uio (4.4.x-ti, 4.14.x-ti & mainline/bone kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (6 = 384KB)
#uboot_fdt_buffer=0x6
###U-Boot Overlays###

cmdline=coherent_pool=1M net.ifnames=0 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:1024x768@60e

#Use an overlayfs on top of a read-only root filesystem:
#cmdline=coherent_pool=1M net.ifnames=0 quiet overlayroot=tmpfs

##enable Generic eMMC Flasher:
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

debian@beaglebone:/boot$ 

please help me , here i am missing anything ??

-- 
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/4f16b278-9deb-489c-88ca-e09e87c611ba%40googlegroups.com.


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 cd pwm1:0  i am assigning the duty cycle , period and enable

if i rebooted the BBB means this configurations are erasing, why i am not 
getting??

using config-pin -l  P9.14 
 config-pin P9.14 pwm 

i am setting pin for pwm as p9.14

in hardware wise i am connecting 1 external led providing 1 connection from 
P9.14 and other end to ground.

but led should glow based on pwm duty-cycle, but here the LED not all 
glowing ???

please suggest me where i am missing??
 

>
>
>

-- 
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/cb9d6d7a-e780-4118-938a-fbf4e46853f7%40googlegroups.com.


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 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/53b0c422-c2f4-47fa-ba04-067754d00987%40googlegroups.com.


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 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/1d74bedf-24c1-4bfb-883b-037323fcac0a%40googlegroups.com 
.


--
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/5edb037c-5987-4129-2460-42bca0da44e7%40gmail.com.


[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 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/1d74bedf-24c1-4bfb-883b-037323fcac0a%40googlegroups.com.


[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 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/59b2b493-dce1-48b5-8ad3-767428c2e84c%40googlegroups.com.


[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 > export
-bash: echo: write error: No such device

i am not able to add other pwm module... why it is showing the error.

please resolve it

-- 
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/bbc34273-e3d1-4aaf-8901-f1c269383583%40googlegroups.com.