<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>If you make your own Arduino sketch, you can send a 
header (like 'a1'&nbsp;for example or printString("a1")) followed by 
printByte(32), then&nbsp;printInteger(int) and finally printByte(13) and parse 
the human readeable data into PD with my ascii abstractions.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It will produce messages in&nbsp;PD&nbsp;like : 
</FONT></DIV>
<DIV><FONT face=Arial size=2>a1 0 </FONT></DIV>
<DIV><FONT face=Arial size=2>to </FONT></DIV>
<DIV><FONT face=Arial size=2>a1 1024</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>You can then use route.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Tom</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=listes@sourcelibre.com href="mailto:listes@sourcelibre.com">Alexandre 
  Quessy</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=pd-list@iem.at 
  href="mailto:pd-list@iem.at">pd-list send</A> ; <A title=hans@eds.org 
  href="mailto:hans@eds.org">Hans-Christoph Steiner</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 22, 2006 11:34 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [PD] Pduino inputs</DIV>
  <DIV><BR></DIV>Hi Hans and the PD list, <BR><BR>We are trying to use the PD 
  Arduino firmware + PD patch that Hans has released. See <A 
  href="http://at.or.at/hans/pd/objects.html">http://at.or.at/hans/pd/objects.html</A> 
  and <A href="http://arduino.cc/">http://arduino.cc/</A> for more info. Our 
  goal is to use it a inputs only. (for now) <BR><BR>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. <BR><BR>We think that it mighth be because of 
  some equations in the Pduino Arduino code. We changed line 119 from : 
  <BR>transmitByte = transmitByte + (2^(i+1-startPin)*digitalData);<BR>to : 
  <BR>transmitByte = transmitByte + (2^(i+1+startPin)*digitalData); 
  <BR><BR>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<BR><BR>--- <BR>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. <BR><BR>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. <BR clear=all><BR>Cheers, <BR><BR>-- <BR>Alexandre 
  Quessy<BR><A 
  href="http://alexandre.quessy.net">http://alexandre.quessy.net</A> 
  <P>
  <HR>

  <P></P>_______________________________________________<BR>PD-list@iem.at 
  mailing list<BR>UNSUBSCRIBE and account-management -&gt; 
  http://lists.puredata.info/listinfo/pd-list<BR></BLOCKQUOTE></BODY></HTML>