Ok, I checked in Windows XP, with a custom sketch, and all of my inputs work flawlessly. <br>(The IDE seem to work much better in Windows than in Linux btw). <br><br>So the problem has to be somewhere between firmata and pduino.<br>
<br>I will try with the latest pduino...<br><br>Thanks for your help!<br><br>Pierre<br><br><div class="gmail_quote">2011/7/5 Hans-Christoph Steiner <span dir="ltr">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div><br></div><div>It would good to nail down the source of this and fix it.  Which version of Firmata are you using? Which firmware?  Also, there was a bug like that a while back that was fixed, so make sure you have the latest Pd patch too:</div>
<div><br></div><div><a href="http://at.or.at/hans/pd/objects.html#pduino" target="_blank">http://at.or.at/hans/pd/objects.html#pduino</a></div><div><br></div><div>.hc</div><br><div><div><div></div><div class="h5"><div>On Jul 5, 2011, at 2:49 PM, Ingo wrote:</div>
<br></div></div><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: medium;"><div link="blue" vlink="blue" lang="DE">
<div><div></div><div class="h5"><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;"><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">I fixed it by replacing the mapping object by a custom patch which deals with the first two switches seperately.<u></u><u></u></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;"><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">I’ll look it up tomorrow and send you my fix.<u></u><u></u></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;"><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"><u></u> <u></u></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;">
<font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">&gt;And where does the problem lie? In the board, firmata, or pduino?<u></u><u></u></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;">
<font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"><u></u> <u></u></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;"><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">It suppose fermata since the wrong numbers arrive at pduino.<u></u><u></u></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;"><font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB"><u></u> <u></u></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: &#39;Courier New&#39;;">
<font face="Courier New" size="2"><span style="font-size: 10pt;" lang="EN-GB">Ingo<u></u><u></u></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><u></u> <u></u></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"><u></u> <u></u></span></font></div>
<div style="border-style: none none none solid; border-left: 1.5pt solid blue; padding: 0cm 0cm 0cm 4pt;"><div><div class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;; text-align: center;" align="center">
<font face="Times New Roman" size="3"><span style="font-size: 12pt;"><hr size="2" width="100%" align="center"></span></font></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;">
<b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">Von:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"><span> </span>Pierre Massat [<a href="mailto:pimassat@gmail.com" style="color: blue; text-decoration: underline;" target="_blank">mailto:pimassat@gmail.com</a>]<span> </span><br>
<b><span style="font-weight: bold;">Gesendet:</span></b><span> </span>Dienstag, 5. Juli 2011 20:41<br><b><span style="font-weight: bold;">An:</span></b><span> </span>Ingo Scherzinger<br><b><span style="font-weight: bold;">Cc:</span></b><span> </span>Ingo Scherzinger<br>
<b><span style="font-weight: bold;">Betreff:</span></b><span> </span>Re: [PD] Arduino (is drivin me mad</span></font><u></u><u></u></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;">
<font face="Times New Roman" size="3"><span style="font-size: 12pt;"><u></u> <u></u></span></font></div><p class="MsoNormal" style="margin: 0cm 0cm 12pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Can we fix that??<br>
<br>Pierre<u></u><u></u></span></font></p><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">2011/7/5 Ingo Scherzinger &lt;<a href="mailto:ingo@fixitinthemix.de" style="color: blue; text-decoration: underline;" target="_blank">ingo@fixitinthemix.de</a>&gt;<u></u><u></u></span></font></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I happens when switching from the first two switches to the others within a<br>
8-bit block. Since the block has the wrong header it will ignore the &quot;on&quot;<br>message and send the first &quot;off&quot;. So you have to press the button twice.<br>Once pressed it works until you press another button within that block and<br>
return to the first one.<br><br>Ingo<br><br>________________________________________<br>Von: Pierre Massat [mailto:<a href="mailto:pimassat@gmail.com" style="color: blue; text-decoration: underline;" target="_blank">pimassat@gmail.com</a>]<br>
Gesendet: Dienstag, 5. Juli 2011 19:56<br>An: Ingo Scherzinger<br>Betreff: Re: [PD] Arduino (is drivin me mad<u></u><u></u></span></font></div><div><div><p class="MsoNormal" style="margin: 0cm 0cm 12pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;">
<font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>Glad to know i&#39;m not the only one with this problem! Sorry for starting a<br>new thread.<br>I have problems with inputs 8 and 9, or 9 and 10 (the first two on the<br>
second digital input socket).<br><br>Pierre<br>2011/7/5 Ingo Scherzinger &lt;<a href="mailto:ingo@miamiwave.com" style="color: blue; text-decoration: underline;" target="_blank">ingo@miamiwave.com</a>&gt;<br>This is the same problem I had described several times before. There is an<br>
error in the 8-bit block where the digital ins 2+3 are coming in. It can be<br>traced somewhere in the mapping section. I&#39;ll try to finally look it up<br>tomorrow.<br><br>Ingo<br><br><br><br>________________________________________<br>
Von:<span> </span><a href="mailto:pd-list-bounces@iem.at" style="color: blue; text-decoration: underline;" target="_blank">pd-list-bounces@iem.at</a><span> </span>[mailto:<a href="mailto:pd-list-bounces@iem.at" style="color: blue; text-decoration: underline;" target="_blank">pd-list-bounces@iem.at</a>] Im Auftrag von<br>
Pierre Massat<br>Gesendet: Dienstag, 5. Juli 2011 19:36<br>An: pd-list<br>Betreff: [PD] Arduino (is drivin me mad<br><br>Hi All,<br><br>I apologie if this is off-topic. Please let me know if you think it is.<br><br>I have been working on my arduino-based pedal, and im faced with a peculiar<br>
problem right now. I&#39;m using 8 digital inputs ( 6 on the first socket of the<br>board, inputs 2 through 8, and 2 on the second digital socket, inputs 9 and<br>10). The first 6 inputs work perfectly, but when i want to use any of the<br>
last two inputs (9 and 10), i have to trigger them twice before they start<br>working. Then i&#39;m faced with the exact same problem when i get back to the<br>first 6 inputs. I am pretty sure that i used the very same wiring for all 8<br>
inputs.<br><br>So... I thought that maybe this could be a problem with firmata or pduino<br>(no offense, Hans!). I have been spending the last hour trying to write a<br>simple program in the arduino software in order to print in serial monitor<br>
the values of my digital inputs.<br><br>Now my question... Is the arduino software just really really bad? Or was it<br>just not designed to work on an ubuntu machine? It is randomly very slow at<br>start-up, it randomly disables the serial port menu in Tools, it randomly<br>
decides to prevent me from uploading the program in the board, or warns me<br>that serial port dev/ttyACM0 is already in use, or can&#39;t be found. The fact<br>that i unplug and replug the board, or change the usb port, or restart the<br>
software doesn&#39;t seem to make any difference.<br><br>This is beginning to look more like witchcraft than computer science to me.<br><br>Please help me, or i&#39;ll teach it how to fly out my window.<br><br>Thank you.<br>
<br>Pierre<br><br><u></u><u></u></span></font></p></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: &#39;Times New Roman&#39;;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><u></u> <u></u></span></font></div>
</div></div></div></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" style="color: blue; text-decoration: underline;" target="_blank">Pd-list@iem.at</a><span> </span>mailing list<br>UNSUBSCRIBE and account-management -&gt;<span> </span><a href="http://lists.puredata.info/listinfo/pd-list" style="color: blue; text-decoration: underline;" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></span></blockquote></div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><br>
<span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<br style="font-family: Tahoma;"></div><div>----------------------------------------------------------------------------<br style="font-family: Tahoma;"></div><div><br></div><div>Man has survived hitherto because he was too ignorant to know how to realize his wishes.  Now that he can realize them, he must either change them, or perish.    -William Carlos Williams</div>
<br></span></span> </div><br></div></blockquote></div><br>