Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: Re: pwm pv
From: Wang Xiaoqiang <xiaoqiang.wang@psi.ch>
To: Miguel Bordalo <miguel.b.fernandes@gmail.com>, EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Wed, 21 Jun 2017 15:07:41 +0200

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

miguel.b.fernandes@gmail.com <mailto:miguel.b.fernandes@gmail.com>


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
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
ANJ, 22 Jun 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·