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
liver
Cc: PD List , Daniel Nigrin
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
The voltage output will be 3V3 @100%, I
²°`¯ ¯`°º
www.asthrolab.fr
- Mail original -
| De: "J Oliver"
| À: "Dan Nigrin"
| Cc: "PD List"
| 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 the list, which is r
Hi Dan,
I am Cc'ing the list, which is really your best resource. I haven't output
variable voltages from the pi, but I am sure a lot of people have experience
with this...
best,
J
On Jul 24, 2013, at 4:39 AM, Dan Nigrin wrote:
> Hi Jaime,
>
> Saw this post of yours from back in April re:
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 bash
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 a draft help file. The argument of [gpio] is the pin number. The f
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
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
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 t
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 'gpio17
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 runnin
BTW - Forgot to add:
I did read through this thread (as mentioned by Charles):
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=9667&p=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 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 h
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
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 /
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 (
|
[ te
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 sys/cla
sounds like you guys are programming pic microcontrollers
On Sat, Jan 26, 2013 at 6:34 PM, 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/
>
> cheers
> Miller
>
> On Sat, Jan 26, 20
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.
>
> Mill
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 maili
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
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
http://antoine.villeret.
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 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 infor
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
25 matches
Mail list logo