Hi

i had been trying get distances as numbers from a ultrasound distance
sensor HC_SRO4 from the echo pin .
while trying to do that i am getting an error message in the console window
and the number input attached to the echo pin through the route object is
remaining plum at zero
the error message that i am getting in the console window is as follows:
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 224
UNKNOWN_INPUT_COMMAND: 0 224
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 224
UNKNOWN_INPUT_COMMAND: 0 28672
UNKNOWN_INPUT_COMMAND: 0 224
UNKNOWN_INPUT_COMMAND: 0 224
UNKNOWN_INPUT_COMMAND: 0 224
 please suggest how to get distances through the pd patch
I am attaching the sketches
Thanks
Sujay
#N canvas 392 99 518 261 10;
#X msg 76 102 close;
#X obj 83 62 hradio 15 1 0 16 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X msg 83 80 open \$1;
#X msg 83 41 0;
#X obj 82 21 loadbang;
#N canvas 419 284 450 300 set 0;
#X obj 79 61 inlet;
#X msg 80 87 set \$1;
#X obj 81 116 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 26 62 pd set;
#X text 156 31 change this so that it matches the number of the COM
port you select in the Arduino software \, in Tools->Serial_port;
#X obj 125 145 arduino 1;
#X obj 125 167 route digital;
#X obj 126 192 route 12;
#X text 186 192 <--- 12 is the echo pin in the arduino sketch;
#X floatatom 126 219 5 0 0 0 - - -;
#X msg 148 122 pinMode 12 input;
#X obj 150 80 t b;
#X obj 148 100 del 40;
#X connect 0 0 7 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 1 0 13 0;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 3 0;
#X connect 5 0 3 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 11 0;
#X connect 12 0 7 0;
#X connect 13 0 14 0;
#X connect 14 0 12 0;

Attachment: ultra_1.ino
Description: Binary data

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to