: GPIO access from within Pd on
the Raspberry Pi:
http://lists.puredata.info/pipermail/pd-list/2013-04/102172.html
I'm a total Pi newbie – I don't even own one yet. I'm considering a project
with it though, where I would like to use Pd to generate some audio, and to
output it to another
²°`¯ ¯`°º
www.asthrolab.fr
- Mail original -
| De: J Oliver jaime.oliv...@gmail.com
| À: Dan Nigrin d...@defectiverecords.com
| Cc: PD List pd-list@iem.at
| Envoyé: Mercredi 24 Juillet 2013 11:13:10
| Objet: Re: [PD] gpio on the raspberry pi from within pd ?
| Hi Dan,
| I am Cc'ing
...@gmail.com
Cc: PD List pd-list@iem.at, Daniel Nigrin d...@defectiverecords.com
Subject: Re: [PD] gpio on the raspberry pi from within pd ?
Hi !
PWM on RPi is easyli configured, with a value from 1 to 1023.
Be careful only some GPIO are PWM :
https://www.modmypi.com/blog/raspberry-pi-gpio-en-franais
J Oliver wrote:
So from your post, it seems quite straightforward to be able to
access the GPIO pins from within Pd. But I need to be able to
create variable voltages (between 0 and 5v) on those pins. In the
post above, you mentioned that you send a float to the gpio object
to write a
Morning Jaime,
Nice digging - well done.
As I don't read C I admit to being somewhat at sea with the possibilities
of the object so really good to hear someone else is rooting around in this.
I did manage to get access to the GPIO pins making use of the messages that
Charles mentioned:
sudo
Miller Puckette wrote:
I think either I or a grad student (we'll see) will be writing a Pd extern
to do this efficiently -- for the moment it would be possible with a Python
script (using netsend/netreceive in Pd) but having an extern would be more
lightweight and probably more robust.
Hi
Hi Julian, All,I think I've figured out the [gpio] external. It works fine, but there there is no documentation, however, the .c file is not very complicated.The test-gpio.pd file is not very good as documentation, so I am attaching adraft help file.The argument of [gpio] is the pin number.The
Hi Charles / list,
Can I ask you/anyone a question re: permissions for accessing the gpio pins
please?
Currently I can't get past:
echo gpio17 /sys/class/gpio/export
which gives me permission denied with everything I've tried.
Are you using WiringPi to allow access to the gpio and if not how?
BTW - Forgot to add:
I did read through this thread (as mentioned by Charles):
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29t=9667p=198848
And left none the wiser...
Seemed to me that there are several possible implementations, though I am
completely unsure as to which one would work with
Hi Julian,
The commands I gave and to be run as root.
so:
sudo bash
echo gpio17 /sys/class/gpio/export
echo out /sys/class/gpio/gpio17/direction
chown charles /sys/class/gpio/gpio17/value
exit
pd
Can you post the full command set you tried ?
It seems there's an overall consensus on running
Hey Charles,
Thanks for the prompt response.
After sudo bash I get:
root@raspberrypi:/home/pi# echo gpio17 /sys/class/gpio/export
bash: echo: write error: Invalid argument
The previous commands I tried were sudo'ing everything and also 'sudo -i'.
OAN:
Dumb question #256
I'm presuming
Hi,
Julian Brooks wrote:
After sudo bash I get:
root@raspberrypi:/home/pi# echo gpio17 /sys/class/gpio/export
bash: echo: write error: Invalid argument
That's strange. I don't have a pi handy for now to double check my
instructions. Maybe I forgot something.
I'm presuming 'gpio17' is to
For whatever reason on my install (and this is based upon the one Miller
shared at the CrashSpace RPi session in February 2013)
sudo bash
echo gpio17 /sys/class/gpio/export
wont work.
But
sudo echo 17 /sys/class/gpio/export
Does
Will test some more with the [gpio] object later - out of time
Charles:
Hi list,
I could make use of gpio (as output) within pd with just [textfile] :
on the command-line:
echo gpio17 /sys/class/gpio/export
echo out /sys/class/gpio/gpio17/direction
chown charles /sys/class/gpio/gpio17/value
inside pd:
[ set 1 ( [ write
Le 14/02/2013 18:41, João de Brito Rocha Reis Vidigal a écrit :
Charles:
Hi list,
I could make use of gpio (as output) within pd with just [textfile] :
on the command-line:
echo gpio17 /sys/class/gpio/export
echo out /sys/class/gpio/gpio17/direction
chown charles
Hi list,
I could make use of gpio (as output) within pd with just [textfile] :
on the command-line:
echo gpio17 /sys/class/gpio/export
echo out /sys/class/gpio/gpio17/direction
chown charles /sys/class/gpio/gpio17/value
inside pd:
[ set 1 ( [ write /sys/class/gpio/gpio17/value cr (
|
[
Hi,
Miller Puckette wrote:
Since writnig that I think I found a good toolset and C api, called
WiringPi, on:
https://projects.drogon.net/raspberry-pi/wiringpi/
Real nice, it can use both /dev/mem and /sys/class/gpio interface. And
it comes with a command-line utility to setup the
Hi,
python rpi-gpio uses /dev/mem and thus requires root privileges.
Miller Puckette wrote:
Me, I was just planning to see how the python-GPIO library does it and
make similar Pd externs. But I don't know what I'm doing :)
___
Pd-list@iem.at
Since writnig that I think I found a good toolset and C api, called
WiringPi, on:
https://projects.drogon.net/raspberry-pi/wiringpi/
cheers
Miller
On Sat, Jan 26, 2013 at 10:29:17AM +0100, Charles Goyard wrote:
Hi,
python rpi-gpio uses /dev/mem and thus requires root privileges.
Miller
sounds like you guys are programming pic microcontrollers
On Sat, Jan 26, 2013 at 6:34 PM, Miller Puckette m...@ucsd.edu wrote:
Since writnig that I think I found a good toolset and C api, called
WiringPi, on:
https://projects.drogon.net/raspberry-pi/wiringpi/
cheers
Miller
On Sat, Jan
Hi Miller,
Miller Puckette wrote:
I think either I or a grad student (we'll see) will be writing a Pd extern
to do this efficiently -- for the moment it would be possible with a Python
script (using netsend/netreceive in Pd) but having an extern would be more
lightweight and probably more
hi all,
i made a small program which uses GPIO to scan a keypad matrix and send OSC
data to pd
it depends on liblo and libbcm2835
it's very specific to my project but could help someone...
code is here : https://github.com/avilleret/pianophone
cheers
a
--
do it yourself
Me, I was just planning to see how the python-GPIO library does it and
make similar Pd externs. But I don't know what I'm doing :)
M
On Fri, Jan 25, 2013 at 10:12:49AM +0100, Antoine Villeret wrote:
hi all,
i made a small program which uses GPIO to scan a keypad matrix and send OSC
data to
Hi list,
is there some external or stdout/daemon trick to access the gpio from pd
on the Raspberry pi ?
Thanks
--
Charlot
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list
Hi Charlot -
I think either I or a grad student (we'll see) will be writing a Pd extern
to do this efficiently -- for the moment it would be possible with a Python
script (using netsend/netreceive in Pd) but having an extern would be more
lightweight and probably more robust. I'm running an
25 matches
Mail list logo