Hi,
I have recently used PCASpy to drive GPIOs from raspberrypi.
Now I added an example for PWM as well.
https://github.com/paulscherrerinstitute/pcaspy/blob/master/example/rpi_gpio.py
In case you want to give it a try,
$ easy_install --user pcaspy
And run the example
$ python rpi_gpio.py
Turn on the PWM output
$ caput MTEST:PWM 1
Change the duty cycle 1-100
$ caput MTEST:DC 50
Change the frequency
$ caput MTEST:FREQ 10
Best
Xiaoqiang
On 06/21/2017 11:53 AM, Miguel Bordalo wrote:
Hello,
I have an actuator that is only ON/OFF mode. I would like to turn it on
or off proportionally to a certain dutycycle. (i dont wont to turn it on
or off faster then a sec, and i would like that the 100% duty would
correspond to it turned on during a minute)
simplest way to do it?
I saw that there is a pv called pulseTrain, altought i belive i
dont have it installed in my RasperryPi epics installation.
Should i proceed with it (how?) or there is a easiest way to do this?
Thanks in advance
-------------------------------------------------------------------------
*Miguel Bordalo*
Licenciado em Engenharia Electrotécnica e de Computadores
Instituto Superior Técnico
[email protected] <mailto:[email protected]>
- References:
- pwm pv Miguel Bordalo
- Navigate by Date:
- Prev:
pwm pv Miguel Bordalo
- Next:
Re: LONG INP fields and hexadecimal numbers Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
pwm pv Miguel Bordalo
- Next:
SIS3302 digitizer driver based on Transient Recorder Framework ambroz . bizjak
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|