[PD] Pduino inputs

Alexandre Quessy listes at sourcelibre.com
Thu Jun 22 17:34:44 CEST 2006


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060622/8022573d/attachment.htm>


More information about the Pd-list mailing list