Re: [PD] how to install and use GPIO external

2013-11-12 Thread Ingirafn Steinarsson
Hello. I found this thread and I am trying to compile the on the 
raspberry pi. I think I managed to but I was wondering where the 
gpio-help.pd files mentioned exist .


Best

Ingirafn

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-11-12 Thread Julian Brooks
Hi Ingirafn,

This is the one that Jaime put together.

Best of luck with it all,

Julian


On 12 November 2013 11:20, Ingirafn Steinarsson ingir...@this.is wrote:

 Hello. I found this thread and I am trying to compile the on the raspberry
 pi. I think I managed to but I was wondering where the gpio-help.pd files
 mentioned exist .

 Best

 Ingirafn


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/
 listinfo/pd-list

#N canvas 50 28 530 426 10;
#X obj 57 197 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 83 300 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 71 259 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 71 279 metro 1;
#X msg 18 12 enable 1;
#X msg 28 39 open 1;
#X obj 8 371 gpio 17;
#X text 84 13 equivalent to: echo 17  /sys/class/gpio/export;
#X msg 39 133 output 1;
#X text 99 75 calls function open(buf \, 0_RDWR);
#X text 108 134 equivalent to: echo out  /sys/class/gpio/direction
;
#X text 115 150 args: 1 for out \, and 0 for in;
#X floatatom 65 218 5 0 0 0 - - -;
#X text 134 270 poll input;
#X text 77 199 write output;
#X text 90 58 sprintf(buf \, /sys/class/gpio/gpio%d/value \, x-x_pin)
\;;
#X text 82 39 not sure what this does \, but seems to set initial value?
;
#X text 73 372 argument is pin number (pin0) see:;
#X text 82 388 http://elinux.org/RPi_Low-level_peripherals#GPIO_hardware_hacking
;
#X connect 0 0 6 0;
#X connect 1 0 6 0;
#X connect 2 0 3 0;
#X connect 3 0 6 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X connect 8 0 6 0;
#X connect 12 0 6 0;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-11-12 Thread Ingirafn Steinarsson
Hi, I would like to ask about the compiling. I belived I compiled the 
code. No warning came up while doing it. I took out the -m32 with the # 
symbol, like here.



# --- LINUX i386 and ia64 ---

l_i386: $(NAME).l_i386
l_ia64: $(NAME).l_ia64

.SUFFIXES: .l_i386 .l_ia64 .l_arm

LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)

UNIXINCLUDE =  -I../pd/src -I../../pd/src -I../../../pd/src \
-I../../../../pd/src -I../../../../../pd/src
LINUXINCLUDE =  $(UNIXINCLUDE)

#tek ut allan i386

#.c.l_i386:
#$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -m32 -o $*.o -c $*.c
#$(CC) -m32 -shared -o $*.l_i386 $*.o -lc -lm
#strip --strip-unneeded $*.l_i386
#rm -f $*.o


--


Then when I run the help file I get this error code.

/home/pi/pure/pi-externs/gpio/gpio.l_i386: 
/home/pi/pure/pi-externs/gpio/gpio.l_i386: cannot open shared object 
file: No such file or directory

 gpio 17
... couldn't create

Where is the fault?

Best

Ingirafn

On 11/12/2013 12:31 PM, Julian Brooks wrote:

Hi Ingirafn,

This is the one that Jaime put together.

Best of luck with it all,

Julian


On 12 November 2013 11:20, Ingirafn Steinarsson ingir...@this.is 
mailto:ingir...@this.is wrote:


Hello. I found this thread and I am trying to compile the on the
raspberry pi. I think I managed to but I was wondering where the
gpio-help.pd files mentioned exist .

Best

Ingirafn


___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-11-12 Thread Martin Peach

The rpi uses arm architecture so you should be building for .l_arm

Martin


On 2013-11-12 15:00, Ingirafn Steinarsson wrote:

Hi, I would like to ask about the compiling. I belived I compiled the
code. No warning came up while doing it. I took out the -m32 with the #
symbol, like here.


# --- LINUX i386 and ia64 ---

l_i386: $(NAME).l_i386
l_ia64: $(NAME).l_ia64

.SUFFIXES: .l_i386 .l_ia64 .l_arm

LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
 -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes \
 -Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)

UNIXINCLUDE =  -I../pd/src -I../../pd/src -I../../../pd/src \
 -I../../../../pd/src -I../../../../../pd/src
LINUXINCLUDE =  $(UNIXINCLUDE)

#tek ut allan i386

#.c.l_i386:
#$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -m32 -o $*.o -c $*.c
#$(CC) -m32 -shared -o $*.l_i386 $*.o -lc -lm
#strip --strip-unneeded $*.l_i386
#rm -f $*.o


--


Then when I run the help file I get this error code.

/home/pi/pure/pi-externs/gpio/gpio.l_i386:
/home/pi/pure/pi-externs/gpio/gpio.l_i386: cannot open shared object
file: No such file or directory
  gpio 17
... couldn't create

Where is the fault?

Best

Ingirafn

On 11/12/2013 12:31 PM, Julian Brooks wrote:

Hi Ingirafn,

This is the one that Jaime put together.

Best of luck with it all,

Julian


On 12 November 2013 11:20, Ingirafn Steinarsson ingir...@this.is
mailto:ingir...@this.is wrote:

Hello. I found this thread and I am trying to compile the on the
raspberry pi. I think I managed to but I was wondering where the
gpio-help.pd files mentioned exist .

Best

Ingirafn


___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list






___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-21 Thread Josh Downing
Awesome! I got it working! Thanks for all the help!

One more question, does anyone know if you can set the internal
pullup/pulldown for the GPIO pins from within PD and if so how you can set
this?

Thanks,
Josh


On Wed, Jun 19, 2013 at 5:52 PM, J Oliver jaime.oliv...@gmail.com wrote:

 On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:

 click enable 1, open 1, and then output 0.

 ok.

 No error messages but where should I expect to see the high/low state of
 GPIO 17?

 it should come out of the object into a number box or toggle as far as I
 can remember...
 put a number box in the outlet of the gpio object.

 J

 Should this be reflected in the bang object in the script (white for low
 and black for high)?


  I have the poll input check box checked. When I toggle the voltage on
 GPIO 17 from 3.3V to GND I do not see anything change in the script. I am
 able to see the high/low state of the pin 17 change by using the readall
 command from LXTerminal so I know that I'm switching the voltage correctly
 on the right pin, just not seeing how I get this status in pure data using
 the gpio-help.pd script. Any thought on how I do this?

 Sorry I have very little experience with pure data and am just learning.

 Thanks,
 Josh


 On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliv...@gmail.comwrote:

 you need to be root.

 start pd with sudo. unless there is a more permanent solution by now?

 best,

 J


 On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndown...@gmail.comwrote:

 Thanks for the help guys! So I deleted the -m32 from the makefile and
 then everything seemed to build okay. I then added the correct path for the
 extension in pure data and loaded the gpio-help.pd patch without getting
 an error message. In the gpio-help.pd patch I would click enable 1 and
 then click open 1 and after clicking open 1 I would get an error
 message: /sys/class/gpio/gpio17/value: No such file or directory.

 I then realized that I probably needed to install wiringPi. I downloaded
 this and installed it. However I would still get the previous error message
 within PD. I then decided to manually try to create the file using commands
 in LXTerminal. I did this using this command, echo 17 |sudo tee
 /sys/class/gpio/export. I then noticed that the gpio17 folder and
 accompanying files were created. I was also able to correctly read the
 state of the pin using gpio readall command from LXTerminal.

 I then loaded the gpio-help.pd file again in PD. Now once I click
 open 1 instead of the no such file or directory error I get
 /sys/class/gpio/gpio17/value: Permision denied error. Is there someway I
 can use this GPIO library within the PD visual interface without getting
 permission denied errors? Also, shouldn't clicking enable 1 within the
 gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and
 accompanying files? How can I get this to work within PD without having to
 run the commands from LXTerminal to create the folder/files? Do I need to
 somehow indicate to pure data the path of wirngPi?

 Almost there! Really appreciate your guys patience with me and help on
 this!

 Josh


 On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-18 23:37, Josh Downing wrote:
 
 
  cc -DPD -O2 -funroll-loops -fomit-frame-pointer
  -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
  -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
  -I../../pd/src -I../../../pd/src -I../../../../pd/src
  -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
  unrecognized command line option ?-m32? make: *** [gpio.l_i386]
  Error 1
 
  Do you know what this error message could mean?

 it means that the makefile has a compiler flag -m32 which is not
 known to the compiler.

  What should I expect as the output from compiling like this?

 nothing. the build failed.

 you could try editing your makefile and removing the -m32
 occurences, and see what you get then.

 make a backup of the makefile, before you go ahead.

 fgamsrd
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
 /KcAoKpb6waukrnp35DZQGFYmP88XAVD
 =0t/E
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 **
 Jaime E Oliver LR
 www.jaimeoliver.pe




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread Julian Brooks
Hey Josh,

In the gpio folder, do you have 'gpio.l_arm' ?
i386 is for a different processor type and the rpi is arm.

Keep going, you're nearly there:)

Julian


On 18 June 2013 22:37, Josh Downing jndown...@gmail.com wrote:

 Sorry for attaching the pics. Will avoid this in the future.

 Julian, you are right, I have not compiled it. I did not know how to do
 this. When I navigate to the directory that I have unzipped the files
 (home/pi/pd-externals/gpio) and then type make it prints the following:

 cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
 -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses
 -Wno-switch  -I../pd/src -I../../pd/src -I../../../pd/src
 -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c
 cc1: error: unrecognized command line option ‘-m32’
 make: *** [gpio.l_i386] Error 1

 Do you know what this error message could mean? What should I expect as
 the output from compiling like this? Not sure what I should be looking for.
 I did notice that this output looks like what is listed in the
 makefile.include that is in the root directory of the zipped archive
 (pi-externs.tgz).

 Josh




 On Tue, Jun 18, 2013 at 5:48 AM, Julian Brooks jbee...@gmail.com wrote:

 i'm not very familiar with the specific help-patch, but i do know a
 bit of Pd

 The joy of understatement.

 Josh,

 sounds like you haven't compiled the external yet.

 My memory (and I'm guessing here, don't have a Pi to confirm atm) is
 this: from the command line
 cd (change directory) to the gpio folder (wherever you've put it on the
 pI)
 and type 'make'.  Check the command line doesn't spit any errors and in
 theory there should be a gpio external sat in the gpio folder at the end of
 it.

 Maybe you've done this already and it's compiled happily?

 In that case you need to tell Pd where the external is - a good place to
 put it would be in the 'externals' folder.  puredata.info is your friend
 here.

 Regards,

 Julian




 On 18 June 2013 08:18, IOhannes m zmoelnig zmoel...@iem.at wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-17 22:03, Josh Downing wrote:
  How do I install this external? I can open the gpio-help.pd file
  in pure data but when I try to open it I get the attached error
  message (pd_error_message.png).

 meta
 for the future, would you mind posting the *text* of the error message
 into your mail, rather than creating a snapshot?
 it allows users who read their emails in text-based mail readers to
 understand your question and eventually answer it.
 also it does not waste bandwidth for no extra information...
 /meta


 what's the content of gpio.l_i386?
 what does ls -l gpio.l_i386 show?
 what does ldd gpio.l_i386 show?

  (gpio_help_configuration.png) for how I configured Jaime's
  gpio-help.pd

 the main problem you have, is that the object does not create (dashed
 border), so it doesn't do anything.
 apart from that, how does your screenshot differ from the original
 help-patch?
 i'm not very familiar with the specific help-patch, but i do know a
 bit of Pd, and might be able to help if i could understand the problem.


 fgamsdr
 IOhannes

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE
 cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u
 =81Kk
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2013-06-18 23:37, Josh Downing wrote:
 
 
 cc -DPD -O2 -funroll-loops -fomit-frame-pointer
 -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
 -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
 -I../../pd/src -I../../../pd/src -I../../../../pd/src
 -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
 unrecognized command line option ?-m32? make: *** [gpio.l_i386]
 Error 1
 
 Do you know what this error message could mean?

it means that the makefile has a compiler flag -m32 which is not
known to the compiler.

 What should I expect as the output from compiling like this?

nothing. the build failed.

you could try editing your makefile and removing the -m32
occurences, and see what you get then.

make a backup of the makefile, before you go ahead.

fgamsrd
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
/KcAoKpb6waukrnp35DZQGFYmP88XAVD
=0t/E
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread Josh Downing
Thanks for the help guys! So I deleted the -m32 from the makefile and
then everything seemed to build okay. I then added the correct path for the
extension in pure data and loaded the gpio-help.pd patch without getting
an error message. In the gpio-help.pd patch I would click enable 1 and
then click open 1 and after clicking open 1 I would get an error
message: /sys/class/gpio/gpio17/value: No such file or directory.

I then realized that I probably needed to install wiringPi. I downloaded
this and installed it. However I would still get the previous error message
within PD. I then decided to manually try to create the file using commands
in LXTerminal. I did this using this command, echo 17 |sudo tee
/sys/class/gpio/export. I then noticed that the gpio17 folder and
accompanying files were created. I was also able to correctly read the
state of the pin using gpio readall command from LXTerminal.

I then loaded the gpio-help.pd file again in PD. Now once I click open
1 instead of the no such file or directory error I get
/sys/class/gpio/gpio17/value: Permision denied error. Is there someway I
can use this GPIO library within the PD visual interface without getting
permission denied errors? Also, shouldn't clicking enable 1 within the
gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and
accompanying files? How can I get this to work within PD without having to
run the commands from LXTerminal to create the folder/files? Do I need to
somehow indicate to pure data the path of wirngPi?

Almost there! Really appreciate your guys patience with me and help on this!

Josh


On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-18 23:37, Josh Downing wrote:
 
 
  cc -DPD -O2 -funroll-loops -fomit-frame-pointer
  -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
  -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
  -I../../pd/src -I../../../pd/src -I../../../../pd/src
  -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
  unrecognized command line option ?-m32? make: *** [gpio.l_i386]
  Error 1
 
  Do you know what this error message could mean?

 it means that the makefile has a compiler flag -m32 which is not
 known to the compiler.

  What should I expect as the output from compiling like this?

 nothing. the build failed.

 you could try editing your makefile and removing the -m32
 occurences, and see what you get then.

 make a backup of the makefile, before you go ahead.

 fgamsrd
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
 /KcAoKpb6waukrnp35DZQGFYmP88XAVD
 =0t/E
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread Jaime Oliver
you need to be root.

start pd with sudo. unless there is a more permanent solution by now?

best,

J


On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndown...@gmail.com wrote:

 Thanks for the help guys! So I deleted the -m32 from the makefile and
 then everything seemed to build okay. I then added the correct path for the
 extension in pure data and loaded the gpio-help.pd patch without getting
 an error message. In the gpio-help.pd patch I would click enable 1 and
 then click open 1 and after clicking open 1 I would get an error
 message: /sys/class/gpio/gpio17/value: No such file or directory.

 I then realized that I probably needed to install wiringPi. I downloaded
 this and installed it. However I would still get the previous error message
 within PD. I then decided to manually try to create the file using commands
 in LXTerminal. I did this using this command, echo 17 |sudo tee
 /sys/class/gpio/export. I then noticed that the gpio17 folder and
 accompanying files were created. I was also able to correctly read the
 state of the pin using gpio readall command from LXTerminal.

 I then loaded the gpio-help.pd file again in PD. Now once I click open
 1 instead of the no such file or directory error I get
 /sys/class/gpio/gpio17/value: Permision denied error. Is there someway I
 can use this GPIO library within the PD visual interface without getting
 permission denied errors? Also, shouldn't clicking enable 1 within the
 gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and
 accompanying files? How can I get this to work within PD without having to
 run the commands from LXTerminal to create the folder/files? Do I need to
 somehow indicate to pure data the path of wirngPi?

 Almost there! Really appreciate your guys patience with me and help on
 this!

 Josh


 On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-18 23:37, Josh Downing wrote:
 
 
  cc -DPD -O2 -funroll-loops -fomit-frame-pointer
  -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
  -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
  -I../../pd/src -I../../../pd/src -I../../../../pd/src
  -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
  unrecognized command line option ?-m32? make: *** [gpio.l_i386]
  Error 1
 
  Do you know what this error message could mean?

 it means that the makefile has a compiler flag -m32 which is not
 known to the compiler.

  What should I expect as the output from compiling like this?

 nothing. the build failed.

 you could try editing your makefile and removing the -m32
 occurences, and see what you get then.

 make a backup of the makefile, before you go ahead.

 fgamsrd
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
 /KcAoKpb6waukrnp35DZQGFYmP88XAVD
 =0t/E
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
**
Jaime E Oliver LR
www.jaimeoliver.pe
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread Josh Downing
Thanks Jaime, that fixed my error problems. No errors now but I can't seem
to figure out how to set the patch up to configure GPIO 17 as an input and
then to read the state. I modified gpio-help.pd to do this by changing
output 1 to output 0 (according to the patch output 0 should configure
the pin as an input). I then click enable 1, open 1, and then output
0. No error messages but where should I expect to see the high/low state
of GPIO 17? Should this be reflected in the bang object in the script
(white for low and black for high)? I have the poll input check box
checked. When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see
anything change in the script. I am able to see the high/low state of the
pin 17 change by using the readall command from LXTerminal so I know that
I'm switching the voltage correctly on the right pin, just not seeing how I
get this status in pure data using the gpio-help.pd script. Any thought on
how I do this?

Sorry I have very little experience with pure data and am just learning.

Thanks,
Josh


On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliv...@gmail.comwrote:

 you need to be root.

 start pd with sudo. unless there is a more permanent solution by now?

 best,

 J


 On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndown...@gmail.com wrote:

 Thanks for the help guys! So I deleted the -m32 from the makefile and
 then everything seemed to build okay. I then added the correct path for the
 extension in pure data and loaded the gpio-help.pd patch without getting
 an error message. In the gpio-help.pd patch I would click enable 1 and
 then click open 1 and after clicking open 1 I would get an error
 message: /sys/class/gpio/gpio17/value: No such file or directory.

 I then realized that I probably needed to install wiringPi. I downloaded
 this and installed it. However I would still get the previous error message
 within PD. I then decided to manually try to create the file using commands
 in LXTerminal. I did this using this command, echo 17 |sudo tee
 /sys/class/gpio/export. I then noticed that the gpio17 folder and
 accompanying files were created. I was also able to correctly read the
 state of the pin using gpio readall command from LXTerminal.

 I then loaded the gpio-help.pd file again in PD. Now once I click open
 1 instead of the no such file or directory error I get
 /sys/class/gpio/gpio17/value: Permision denied error. Is there someway I
 can use this GPIO library within the PD visual interface without getting
 permission denied errors? Also, shouldn't clicking enable 1 within the
 gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and
 accompanying files? How can I get this to work within PD without having to
 run the commands from LXTerminal to create the folder/files? Do I need to
 somehow indicate to pure data the path of wirngPi?

 Almost there! Really appreciate your guys patience with me and help on
 this!

 Josh


 On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.atwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-18 23:37, Josh Downing wrote:
 
 
  cc -DPD -O2 -funroll-loops -fomit-frame-pointer
  -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
  -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
  -I../../pd/src -I../../../pd/src -I../../../../pd/src
  -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
  unrecognized command line option ?-m32? make: *** [gpio.l_i386]
  Error 1
 
  Do you know what this error message could mean?

 it means that the makefile has a compiler flag -m32 which is not
 known to the compiler.

  What should I expect as the output from compiling like this?

 nothing. the build failed.

 you could try editing your makefile and removing the -m32
 occurences, and see what you get then.

 make a backup of the makefile, before you go ahead.

 fgamsrd
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
 /KcAoKpb6waukrnp35DZQGFYmP88XAVD
 =0t/E
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 **
 Jaime E Oliver LR
 www.jaimeoliver.pe


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-19 Thread J Oliver
On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:
 click enable 1, open 1, and then output 0.
ok.
 No error messages but where should I expect to see the high/low state of GPIO 
 17?
it should come out of the object into a number box or toggle as far as I can 
remember...
put a number box in the outlet of the gpio object.

J

 Should this be reflected in the bang object in the script (white for low and 
 black for high)?

  I have the poll input check box checked. When I toggle the voltage on GPIO 
 17 from 3.3V to GND I do not see anything change in the script. I am able to 
 see the high/low state of the pin 17 change by using the readall command 
 from LXTerminal so I know that I'm switching the voltage correctly on the 
 right pin, just not seeing how I get this status in pure data using the 
 gpio-help.pd script. Any thought on how I do this?
 
 Sorry I have very little experience with pure data and am just learning.
 
 Thanks,
 Josh
 
 
 On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliv...@gmail.com 
 wrote:
 you need to be root. 
 
 start pd with sudo. unless there is a more permanent solution by now?
 
 best,
 
 J
 
 
 On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndown...@gmail.com wrote:
 Thanks for the help guys! So I deleted the -m32 from the makefile and then 
 everything seemed to build okay. I then added the correct path for the 
 extension in pure data and loaded the gpio-help.pd patch without getting an 
 error message. In the gpio-help.pd patch I would click enable 1 and then 
 click open 1 and after clicking open 1 I would get an error message: 
 /sys/class/gpio/gpio17/value: No such file or directory.
 
 I then realized that I probably needed to install wiringPi. I downloaded this 
 and installed it. However I would still get the previous error message within 
 PD. I then decided to manually try to create the file using commands in 
 LXTerminal. I did this using this command, echo 17 |sudo tee 
 /sys/class/gpio/export. I then noticed that the gpio17 folder and 
 accompanying files were created. I was also able to correctly read the state 
 of the pin using gpio readall command from LXTerminal.
 
 I then loaded the gpio-help.pd file again in PD. Now once I click open 1 
 instead of the no such file or directory error I get 
 /sys/class/gpio/gpio17/value: Permision denied error. Is there someway I 
 can use this GPIO library within the PD visual interface without getting 
 permission denied errors? Also, shouldn't clicking enable 1 within the 
 gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and 
 accompanying files? How can I get this to work within PD without having to 
 run the commands from LXTerminal to create the folder/files? Do I need to 
 somehow indicate to pure data the path of wirngPi?
 
 Almost there! Really appreciate your guys patience with me and help on this!
 
 Josh
 
 
 On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.at wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 2013-06-18 23:37, Josh Downing wrote:
 
 
  cc -DPD -O2 -funroll-loops -fomit-frame-pointer
  -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
  -Wno-unused -Wno-parentheses -Wno-switch  -I../pd/src
  -I../../pd/src -I../../../pd/src -I../../../../pd/src
  -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error:
  unrecognized command line option ?-m32? make: *** [gpio.l_i386]
  Error 1
 
  Do you know what this error message could mean?
 
 it means that the makefile has a compiler flag -m32 which is not
 known to the compiler.
 
  What should I expect as the output from compiling like this?
 
 nothing. the build failed.
 
 you could try editing your makefile and removing the -m32
 occurences, and see what you get then.
 
 make a backup of the makefile, before you go ahead.
 
 fgamsrd
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/
 
 iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ
 /KcAoKpb6waukrnp35DZQGFYmP88XAVD
 =0t/E
 -END PGP SIGNATURE-
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 -- 
 **
 Jaime E Oliver LR
 www.jaimeoliver.pe
 
 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-18 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2013-06-17 22:03, Josh Downing wrote:
 How do I install this external? I can open the gpio-help.pd file
 in pure data but when I try to open it I get the attached error 
 message (pd_error_message.png).

meta
for the future, would you mind posting the *text* of the error message
into your mail, rather than creating a snapshot?
it allows users who read their emails in text-based mail readers to
understand your question and eventually answer it.
also it does not waste bandwidth for no extra information...
/meta


what's the content of gpio.l_i386?
what does ls -l gpio.l_i386 show?
what does ldd gpio.l_i386 show?

 (gpio_help_configuration.png) for how I configured Jaime's 
 gpio-help.pd

the main problem you have, is that the object does not create (dashed
border), so it doesn't do anything.
apart from that, how does your screenshot differ from the original
help-patch?
i'm not very familiar with the specific help-patch, but i do know a
bit of Pd, and might be able to help if i could understand the problem.


fgamsdr
IOhannes

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE
cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u
=81Kk
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-18 Thread Julian Brooks
i'm not very familiar with the specific help-patch, but i do know a
bit of Pd

The joy of understatement.

Josh,

sounds like you haven't compiled the external yet.

My memory (and I'm guessing here, don't have a Pi to confirm atm) is this:
from the command line
cd (change directory) to the gpio folder (wherever you've put it on the pI)
and type 'make'.  Check the command line doesn't spit any errors and in
theory there should be a gpio external sat in the gpio folder at the end of
it.

Maybe you've done this already and it's compiled happily?

In that case you need to tell Pd where the external is - a good place to
put it would be in the 'externals' folder.  puredata.info is your friend
here.

Regards,

Julian




On 18 June 2013 08:18, IOhannes m zmoelnig zmoel...@iem.at wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-17 22:03, Josh Downing wrote:
  How do I install this external? I can open the gpio-help.pd file
  in pure data but when I try to open it I get the attached error
  message (pd_error_message.png).

 meta
 for the future, would you mind posting the *text* of the error message
 into your mail, rather than creating a snapshot?
 it allows users who read their emails in text-based mail readers to
 understand your question and eventually answer it.
 also it does not waste bandwidth for no extra information...
 /meta


 what's the content of gpio.l_i386?
 what does ls -l gpio.l_i386 show?
 what does ldd gpio.l_i386 show?

  (gpio_help_configuration.png) for how I configured Jaime's
  gpio-help.pd

 the main problem you have, is that the object does not create (dashed
 border), so it doesn't do anything.
 apart from that, how does your screenshot differ from the original
 help-patch?
 i'm not very familiar with the specific help-patch, but i do know a
 bit of Pd, and might be able to help if i could understand the problem.


 fgamsdr
 IOhannes

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE
 cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u
 =81Kk
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-18 Thread Josh Downing
Sorry for attaching the pics. Will avoid this in the future.

Julian, you are right, I have not compiled it. I did not know how to do
this. When I navigate to the directory that I have unzipped the files
(home/pi/pd-externals/gpio) and then type make it prints the following:

cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch  -I../pd/src -I../../pd/src -I../../../pd/src
-I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c
cc1: error: unrecognized command line option ‘-m32’
make: *** [gpio.l_i386] Error 1

Do you know what this error message could mean? What should I expect as the
output from compiling like this? Not sure what I should be looking for. I
did notice that this output looks like what is listed in the
makefile.include that is in the root directory of the zipped archive
(pi-externs.tgz).

Josh




On Tue, Jun 18, 2013 at 5:48 AM, Julian Brooks jbee...@gmail.com wrote:

 i'm not very familiar with the specific help-patch, but i do know a
 bit of Pd

 The joy of understatement.

 Josh,

 sounds like you haven't compiled the external yet.

 My memory (and I'm guessing here, don't have a Pi to confirm atm) is this:
 from the command line
 cd (change directory) to the gpio folder (wherever you've put it on the pI)
 and type 'make'.  Check the command line doesn't spit any errors and in
 theory there should be a gpio external sat in the gpio folder at the end of
 it.

 Maybe you've done this already and it's compiled happily?

 In that case you need to tell Pd where the external is - a good place to
 put it would be in the 'externals' folder.  puredata.info is your friend
 here.

 Regards,

 Julian




 On 18 June 2013 08:18, IOhannes m zmoelnig zmoel...@iem.at wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 2013-06-17 22:03, Josh Downing wrote:
  How do I install this external? I can open the gpio-help.pd file
  in pure data but when I try to open it I get the attached error
  message (pd_error_message.png).

 meta
 for the future, would you mind posting the *text* of the error message
 into your mail, rather than creating a snapshot?
 it allows users who read their emails in text-based mail readers to
 understand your question and eventually answer it.
 also it does not waste bandwidth for no extra information...
 /meta


 what's the content of gpio.l_i386?
 what does ls -l gpio.l_i386 show?
 what does ldd gpio.l_i386 show?

  (gpio_help_configuration.png) for how I configured Jaime's
  gpio-help.pd

 the main problem you have, is that the object does not create (dashed
 border), so it doesn't do anything.
 apart from that, how does your screenshot differ from the original
 help-patch?
 i'm not very familiar with the specific help-patch, but i do know a
 bit of Pd, and might be able to help if i could understand the problem.


 fgamsdr
 IOhannes

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 Comment: Using GnuPG with Icedove - http://www.enigmail.net/

 iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE
 cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u
 =81Kk
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-14 Thread Julian Brooks
Meant to add:

Any other issues give us a shout and if I can help, I will.


On 13 June 2013 09:56, Julian Brooks jbee...@gmail.com wrote:

 Hi Josh,

 The thread you're after is this one:
 gpio on the raspberry pi from within pd ?

 (ooh - big font)

 And Jaime's helpfile's attached.


 That should do it.


 Julian



 On 13 June 2013 06:37, Josh Downing jndown...@gmail.com wrote:

 I'm trying to figure out how to use the [gpio] external and I'm totally
 lost on how to install it and then how to use it inside PD on my raspberry
 pi. I did download the external from Miller Puckette's website but that is
 about as far as I have been able to get. I would like to be able to
 configure 4 GPIO pins as inputs and read their state within my PD patch.

 Could anyone provide me with any help on how I would go about installing
 this patch and using it in PD on the pi? Also, I found a thread in the list
 serve archive where someone had attached a draft of instructions on how to
 install and use the GPIO external but unfortunately the attached file was
 not available. Could someone send me these instructions if you have them?

 Thanks,
 Josh

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] how to install and use GPIO external

2013-06-13 Thread Julian Brooks
Hi Josh,

The thread you're after is this one:
gpio on the raspberry pi from within pd ?

(ooh - big font)

And Jaime's helpfile's attached.


That should do it.


Julian



On 13 June 2013 06:37, Josh Downing jndown...@gmail.com wrote:

 I'm trying to figure out how to use the [gpio] external and I'm totally
 lost on how to install it and then how to use it inside PD on my raspberry
 pi. I did download the external from Miller Puckette's website but that is
 about as far as I have been able to get. I would like to be able to
 configure 4 GPIO pins as inputs and read their state within my PD patch.

 Could anyone provide me with any help on how I would go about installing
 this patch and using it in PD on the pi? Also, I found a thread in the list
 serve archive where someone had attached a draft of instructions on how to
 install and use the GPIO external but unfortunately the attached file was
 not available. Could someone send me these instructions if you have them?

 Thanks,
 Josh

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




gpio-help.pd
Description: Binary data
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] how to install and use GPIO external

2013-06-12 Thread Josh Downing
I'm trying to figure out how to use the [gpio] external and I'm totally
lost on how to install it and then how to use it inside PD on my raspberry
pi. I did download the external from Miller Puckette's website but that is
about as far as I have been able to get. I would like to be able to
configure 4 GPIO pins as inputs and read their state within my PD patch.

Could anyone provide me with any help on how I would go about installing
this patch and using it in PD on the pi? Also, I found a thread in the list
serve archive where someone had attached a draft of instructions on how to
install and use the GPIO external but unfortunately the attached file was
not available. Could someone send me these instructions if you have them?

Thanks,
Josh
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list