If you make your own Arduino sketch, you can send a
header (like 'a1' for example or printString("a1")) followed by
printByte(32), then printInteger(int) and finally printByte(13) and parse
the human readeable data into PD with my ascii abstractions.
It will produce messages in PD like :
a1 0
to
a1 1024
You can then use route.
Tom
----- Original Message -----
Sent: Thursday, June 22, 2006 11:34
AM
Subject: [PD] Pduino inputs
Hi Hans and the PD list,
We are trying to use the PD
Arduino firmware + PD patch that Hans has released. See http://at.or.at/hans/pd/objects.html
and http://arduino.cc/ for more info. Our
goal is to use it a inputs only. (for now)
We realized that some
analog inputs values were way too high. It worked, then it broked for some
unknown reason. (apparently none) Then it worked again and broke again. So, we
can say it is still unstable.
We think that it mighth be because of
some equations in the Pduino Arduino code. We changed line 119 from :
transmitByte = transmitByte + (2^(i+1-startPin)*digitalData);
to :
transmitByte = transmitByte + (2^(i+1+startPin)*digitalData);
Then, the analog-in stopped giving strangely high data. We found it
strange the use of negative exponents (when startPin is 7). Was that a luck or
what ? We had lot of fun debugging that. ;-D
---
Regarding the
digital inputs. In both cases, they were behaving strangely. Their state are
constantly changing. Some work, but some not. Maybe it is just electric noise
: should we ground everyother pin ? Probably.
In the PDuino PD patch,
are the serial streams always parsed as being the same length ? It is supposed
to be so, but might not in every case. Maybe it would be better to use the
[match] object. (because the selector, meaning that it it the beginning of the
list, is 255) Maybe sometimes, because of calculation error (?), the number
255 is sent again.
Cheers,
--
Alexandre
Quessy
http://alexandre.quessy.net
_______________________________________________
PD-list@iem.at
mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list