Re: [PD] pduino digital read problems

2009-11-20 Thread olsen


Hans-Christoph Steiner wrote:


Oops, yes indeed, I just updated that.

I'm actually thinking that the digitalIns and analogIns messages are 
just extra complications without much benefit.  I am thinking that 
setting pinMode to analog or input should just send that message 
too.  How does that sound?

makes sense to me too!
ø




.hc

On Nov 19, 2009, at 3:13 PM, altern wrote:

aso it was a problem with the documentation. great, now it is working. 
thanks!!


Hans-Christoph Steiner(e)k dio:
If you look at the arduino-help.pd or arduino-test.pd, the message 
should be [digitalIns 1 1(.  The first number is the port# and the 
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins 
8-13, PORT2==analog pins).
If you are using Arduino 0017, you might want to upgrade the included 
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino
.hc
On Nov 19, 2009, at 6:16 AM, altern wrote:

hi

i am doing this small example to read a digital sensor with pduino. 
i test it with an arduino program that reads pin 2 and writes it to 
pin 13 and this works fine, i get a LED light on and off with my 
infrared sensor.


however when i try this very same setup in PD i dont get it to work. 
i am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from 
pin 2. I have not used digital sensors for ages with PD so i dont 
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am 
doing wrong


please help!

enrike

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
 
Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra






 



If you are not part of the solution, you are part of the problem.



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


--
ETs DNA will not be televised


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


Re: [PD] pduino digital read problems

2009-11-20 Thread olsen
would be nice to have the info about the port setting somewhere - either 
in the test or in the help - somehow it changes your layout of the 
arduino-test.pd.

i've attached a basic variation
ø



Hans-Christoph Steiner wrote:


I'm not sure what you mean, but Patches welcome!  :-D

.hc

On Nov 19, 2009, at 1:44 PM, olsen wrote:

wouldn't it be nice to have the info in the brackets somewhere in the 
arduino-help?


Hans-Christoph Steiner wrote:
If you look at the arduino-help.pd or arduino-test.pd, the message 
should be [digitalIns 1 1(.  The first number is the port# and the 
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins 
8-13, PORT2==analog pins).


If you are using Arduino 0017, you might want to upgrade the included 
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino
.hc
On Nov 19, 2009, at 6:16 AM, altern wrote:

hi

i am doing this small example to read a digital sensor with pduino. 
i test it with an arduino program that reads pin 2 and writes it to 
pin 13 and this works fine, i get a LED light on and off with my 
infrared sensor.


however when i try this very same setup in PD i dont get it to work. 
i am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from 
pin 2. I have not used digital sensors for ages with PD so i dont 
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am 
doing wrong


please help!

enrike

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
 
Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra

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


--
ETs DNA will not be televised








 



It is convenient to imagine a power beyond us because that means we 
don't have to examine our own lives., from The Idols of 
Environmentalism, by Curtis White







--
ETs DNA will not be televised
#N canvas 523 105 765 519 10;
#X obj 313 116 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
0;
#X obj 23 145 cnv 15 85 22 empty empty empty 20 12 0 14 -253938 -66577
0;
#X obj 155 170 cnv 15 60 22 empty empty empty 20 12 0 14 -253938 -66577
0;
#X msg 161 172 open 2;
#N canvas 128 22 525 433 serin 0;
#X obj 180 61 cnv 15 15 15 empty \$0-number-canvas 2 4 8 0 14 -233017
-1 0;
#X obj 200 225 s \$0-number-canvas;
#X obj 60 61 hradio 15 1 1 8 empty empty empty 0 -6 0 8 -225271 -1
-1 2;
#X obj 60 13 inlet;
#X msg 200 202 label \$1;
#X obj 200 180 makefilename %d;
#X obj 59 108 int;
#X msg 59 206 open \$1;
#X obj 59 377 outlet;
#X msg 201 306 set \$1 \$2;
#X obj 59 266 trigger bang anything;
#X obj 201 286 list;
#X obj 383 383 outlet;
#X obj 384 22 netreceive 34567;
#X obj 477 43 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0
1;
#X obj 384 41 bng 15 250 50 0 empty empty empty 0 -6 0 10 -262144 -1
-1;
#X obj 187 24 delay 15000;
#X text 345 379 close;
#X text 209 4 for open/close automation in Makefile;
#N canvas 698 22 318 215 reset 0;
#X obj 65 24 inlet;
#X obj 66 58 bang;
#X obj 66 150 send ARDUINO_TEST_RESET;
#X msg 66 129 0;
#X msg 111 99 1;
#X obj 111 120 send ARDUINO_PINMODE_RESET;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 1 0 4 0;
#X connect 3 0 2 0;
#X connect 4 0 5 0;
#X restore 172 111 pd reset guis;
#X connect 2 0 6 0;
#X connect 2 0 19 0;
#X connect 3 0 2 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 6 0 7 0;
#X connect 7 0 10 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X connect 13 0 15 0;
#X connect 13 1 14 0;
#X connect 15 0 16 0;
#X connect 15 0 12 0;
#X connect 16 0 2 0;
#X coords 0 -1 1 1 136 17 1 60 60;
#X restore 161 149 pd serin;
#X text 158 131 serial port #;
#X msg 221 172 close;
#X obj 85 104 hsl 150 17 0 1 0 0 empty ARDUINO_TEST_RESET analog_output_(0-1)
20 9 1 10 -225271 -1 -1 0 0;
#X obj 267 302 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 1
1;
#X msg 437 222 digitalIns 2 1;
#X msg 437 165 analogIns 0 0;
#N canvas 162 133 610 460 serin 0;
#X obj 59 337 outlet;
#X obj 59 266 trigger bang anything;
#X obj 201 286 list;
#X obj 60 61 tgl 15 0 junk_to_hide_inlet ARDUINO_TEST_RESET 0 5 9 1
12 -262130 -1 -1 0 1;
#X obj 75 61 tgl 15 0 junk_to_hide_inlet ARDUINO_TEST_RESET 1 5 9 1
12 -262130 -1 -1 0 1;
#X obj 90 61 tgl 15 0 junk_to_hide_inlet ARDUINO_TEST_RESET 2 5 9 1
12 -262130 -1 -1 0 1;
#X obj 105 61 tgl 15 0 junk_to_hide_inlet ARDUINO_TEST_RESET 3 5 9
1 

[PD] pduino digital read problems

2009-11-19 Thread altern

hi

i am doing this small example to read a digital sensor with pduino. i 
test it with an arduino program that reads pin 2 and writes it to pin 13 
and this works fine, i get a LED light on and off with my infrared sensor.


however when i try this very same setup in PD i dont get it to work. i 
am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from pin 
2. I have not used digital sensors for ages with PD so i dont remember 
the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am doing 
wrong


please help!

enrike

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


Re: [PD] pduino digital read problems

2009-11-19 Thread Hans-Christoph Steiner


If you look at the arduino-help.pd or arduino-test.pd, the message  
should be [digitalIns 1 1(.  The first number is the port# and the  
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins  
8-13, PORT2==analog pins).


If you are using Arduino 0017, you might want to upgrade the included  
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino

.hc

On Nov 19, 2009, at 6:16 AM, altern wrote:


hi

i am doing this small example to read a digital sensor with pduino.  
i test it with an arduino program that reads pin 2 and writes it to  
pin 13 and this works fine, i get a LED light on and off with my  
infrared sensor.


however when i try this very same setup in PD i dont get it to work.  
i am starting up arduino object to the right COM port, i can write  
manually to pin 13 and the LED flashes, but i dont get anything from  
pin 2. I have not used digital sensors for ages with PD so i dont  
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am  
doing wrong


please help!

enrike

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






Computer science is no more related to the computer than astronomy is  
related to the telescope.  -Edsger Dykstra




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


Re: [PD] pduino digital read problems

2009-11-19 Thread olsen

Hans-Christoph Steiner wrote:


If you look at the arduino-help.pd or arduino-test.pd, the message 
should be [digitalIns 1 1(.  The first number is the port# and the 
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins 
8-13, PORT2==analog pins).
wouldn't it be nice to have the info in the brackets somewhere in the 
arduino-help?





If you are using Arduino 0017, you might want to upgrade the included 
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino

.hc

On Nov 19, 2009, at 6:16 AM, altern wrote:


hi

i am doing this small example to read a digital sensor with pduino. i 
test it with an arduino program that reads pin 2 and writes it to pin 
13 and this works fine, i get a LED light on and off with my infrared 
sensor.


however when i try this very same setup in PD i dont get it to work. i 
am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from 
pin 2. I have not used digital sensors for ages with PD so i dont 
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am 
doing wrong


please help!

enrike

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




 



Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra




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


--
ETs DNA will not be televised

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


Re: [PD] pduino digital read problems

2009-11-19 Thread Hans-Christoph Steiner


I'm not sure what you mean, but Patches welcome!  :-D

.hc

On Nov 19, 2009, at 1:44 PM, olsen wrote:

wouldn't it be nice to have the info in the brackets somewhere in  
the arduino-help?


Hans-Christoph Steiner wrote:
If you look at the arduino-help.pd or arduino-test.pd, the message  
should be [digitalIns 1 1(.  The first number is the port# and the  
second is whether to enable it or not.  (PORT0==pins 0-7,  
PORT1==pins 8-13, PORT2==analog pins).


If you are using Arduino 0017, you might want to upgrade the  
included Firmata library with the latest version (check the README  
for how)

http://at.or.at/hans/pd/objects.html#pduino
.hc
On Nov 19, 2009, at 6:16 AM, altern wrote:

hi

i am doing this small example to read a digital sensor with  
pduino. i test it with an arduino program that reads pin 2 and  
writes it to pin 13 and this works fine, i get a LED light on and  
off with my infrared sensor.


however when i try this very same setup in PD i dont get it to  
work. i am starting up arduino object to the right COM port, i can  
write manually to pin 13 and the LED flashes, but i dont get  
anything from pin 2. I have not used digital sensors for ages with  
PD so i dont remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am  
doing wrong


please help!

enrike

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
 Computer 
 science is no more related to the computer than astronomy is  
related to the telescope.  -Edsger Dykstra

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


--
ETs DNA will not be televised










It is convenient to imagine a power beyond us because that means we  
don't have to examine our own lives., from The Idols of  
Environmentalism, by Curtis White






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


Re: [PD] pduino digital read problems

2009-11-19 Thread altern
aso it was a problem with the documentation. great, now it is working. 
thanks!!


Hans-Christoph Steiner(e)k dio:


If you look at the arduino-help.pd or arduino-test.pd, the message 
should be [digitalIns 1 1(.  The first number is the port# and the 
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins 
8-13, PORT2==analog pins).


If you are using Arduino 0017, you might want to upgrade the included 
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino

.hc

On Nov 19, 2009, at 6:16 AM, altern wrote:


hi

i am doing this small example to read a digital sensor with pduino. i 
test it with an arduino program that reads pin 2 and writes it to pin 
13 and this works fine, i get a LED light on and off with my infrared 
sensor.


however when i try this very same setup in PD i dont get it to work. i 
am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from 
pin 2. I have not used digital sensors for ages with PD so i dont 
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am 
doing wrong


please help!

enrike

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




 



Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra







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


Re: [PD] pduino digital read problems

2009-11-19 Thread Hans-Christoph Steiner


Oops, yes indeed, I just updated that.

I'm actually thinking that the digitalIns and analogIns messages are  
just extra complications without much benefit.  I am thinking that  
setting pinMode to analog or input should just send that message  
too.  How does that sound?


.hc

On Nov 19, 2009, at 3:13 PM, altern wrote:

aso it was a problem with the documentation. great, now it is  
working. thanks!!


Hans-Christoph Steiner(e)k dio:
If you look at the arduino-help.pd or arduino-test.pd, the message  
should be [digitalIns 1 1(.  The first number is the port# and the  
second is whether to enable it or not.  (PORT0==pins 0-7,  
PORT1==pins 8-13, PORT2==analog pins).
If you are using Arduino 0017, you might want to upgrade the  
included Firmata library with the latest version (check the README  
for how)

http://at.or.at/hans/pd/objects.html#pduino
.hc
On Nov 19, 2009, at 6:16 AM, altern wrote:

hi

i am doing this small example to read a digital sensor with  
pduino. i test it with an arduino program that reads pin 2 and  
writes it to pin 13 and this works fine, i get a LED light on and  
off with my infrared sensor.


however when i try this very same setup in PD i dont get it to  
work. i am starting up arduino object to the right COM port, i can  
write manually to pin 13 and the LED flashes, but i dont get  
anything from pin 2. I have not used digital sensors for ages with  
PD so i dont remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am  
doing wrong


please help!

enrike

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
 Computer 
 science is no more related to the computer than astronomy is  
related to the telescope.  -Edsger Dykstra








If you are not part of the solution, you are part of the problem.



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


Re: [PD] pduino digital read problems

2009-11-19 Thread altern
sounds ok to me but i use arduino very little so i my opinion should not 
count too much :)


Hans-Christoph Steiner(e)k dio:


Oops, yes indeed, I just updated that.

I'm actually thinking that the digitalIns and analogIns messages are 
just extra complications without much benefit.  I am thinking that 
setting pinMode to analog or input should just send that message 
too.  How does that sound?


.hc

On Nov 19, 2009, at 3:13 PM, altern wrote:

aso it was a problem with the documentation. great, now it is working. 
thanks!!


Hans-Christoph Steiner(e)k dio:
If you look at the arduino-help.pd or arduino-test.pd, the message 
should be [digitalIns 1 1(.  The first number is the port# and the 
second is whether to enable it or not.  (PORT0==pins 0-7, PORT1==pins 
8-13, PORT2==analog pins).
If you are using Arduino 0017, you might want to upgrade the included 
Firmata library with the latest version (check the README for how)

http://at.or.at/hans/pd/objects.html#pduino
.hc
On Nov 19, 2009, at 6:16 AM, altern wrote:

hi

i am doing this small example to read a digital sensor with pduino. 
i test it with an arduino program that reads pin 2 and writes it to 
pin 13 and this works fine, i get a LED light on and off with my 
infrared sensor.


however when i try this very same setup in PD i dont get it to work. 
i am starting up arduino object to the right COM port, i can write 
manually to pin 13 and the LED flashes, but i dont get anything from 
pin 2. I have not used digital sensors for ages with PD so i dont 
remember the right way to set them up.


I send this message to arduino
pinMode 2 0

i also tried sending before
digitalIns 1

but nothing comes from comport outlet. so i am not sure what i am 
doing wrong


please help!

enrike

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
 
Computer science is no more related to the computer than astronomy is 
related to the telescope.  -Edsger Dykstra






 



If you are not part of the solution, you are part of the problem.






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