<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>It would good to nail down the source of this and fix it. &nbsp;Which version of Firmata are you using? Which firmware? &nbsp;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">http://at.or.at/hans/pd/objects.html#pduino</a></div><div><br></div><div>.hc</div><br><div><div>On Jul 5, 2011, at 2:49 PM, Ingo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div lang="DE" link="blue" vlink="blue"><div class="Section1" style="page: Section1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; ">I fixed it by replacing the mapping object by a custom patch which deals with the first two switches seperately.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; ">I’ll look it up tomorrow and send you my fix.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; ">&gt;And where does the problem lie? In the board, firmata, or pduino?<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; ">It suppose fermata since the wrong numbers arrive at pduino.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 10pt; font-family: 'Courier New'; "><font size="2" face="Courier New"><span lang="EN-GB" style="font-size: 10pt; ">Ingo<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p>&nbsp;</o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p>&nbsp;</o:p></span></font></div><div style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-width: initial; border-color: initial; border-left-style: solid; border-left-color: blue; border-left-width: 1.5pt; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 4pt; "><div><div class="MsoNormal" align="center" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; text-align: center; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><hr size="2" width="100%" align="center" tabindex="-1"></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold; ">Von:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; "><span class="Apple-converted-space">&nbsp;</span>Pierre Massat [<a href="mailto:pimassat@gmail.com" style="color: blue; text-decoration: underline; ">mailto:pimassat@gmail.com</a>]<span class="Apple-converted-space">&nbsp;</span><br><b><span style="font-weight: bold; ">Gesendet:</span></b><span class="Apple-converted-space">&nbsp;</span>Dienstag, 5. Juli 2011 20:41<br><b><span style="font-weight: bold; ">An:</span></b><span class="Apple-converted-space">&nbsp;</span>Ingo Scherzinger<br><b><span style="font-weight: bold; ">Cc:</span></b><span class="Apple-converted-space">&nbsp;</span>Ingo Scherzinger<br><b><span style="font-weight: bold; ">Betreff:</span></b><span class="Apple-converted-space">&nbsp;</span>Re: [PD] Arduino (is drivin me mad</span></font><o:p></o:p></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div><p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 12pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">Can we fix that??<br><br>Pierre<o:p></o:p></span></font></p><div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; ">2011/7/5 Ingo Scherzinger &lt;<a href="mailto:ingo@fixitinthemix.de" style="color: blue; text-decoration: underline; ">ingo@fixitinthemix.de</a>&gt;<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><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 "on"<br>message and send the first "off". 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; ">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<o:p></o:p></span></font></div><div><div><p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 12pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><br>Glad to know i'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; ">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'll try to finally look it up<br>tomorrow.<br><br>Ingo<br><br><br><br>________________________________________<br>Von:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:pd-list-bounces@iem.at" style="color: blue; text-decoration: underline; ">pd-list-bounces@iem.at</a><span class="Apple-converted-space">&nbsp;</span>[mailto:<a href="mailto:pd-list-bounces@iem.at" style="color: blue; text-decoration: underline; ">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'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'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't be found. The fact<br>that i unplug and replug the board, or change the usb port, or restart the<br>software doesn'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'll teach it how to fly out my window.<br><br>Thank you.<br><br>Pierre<br><br><o:p></o:p></span></font></p></div></div></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "><o:p>&nbsp;</o:p></span></font></div></div></div>_______________________________________________<br><a href="mailto:Pd-list@iem.at" style="color: blue; text-decoration: underline; ">Pd-list@iem.at</a><span class="Apple-converted-space">&nbsp;</span>mailing list<br>UNSUBSCRIBE and account-management -&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://lists.puredata.info/listinfo/pd-list" style="color: blue; text-decoration: underline; ">http://lists.puredata.info/listinfo/pd-list</a><br></div></span></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br style="font-family: Tahoma; "></div><div>----------------------------------------------------------------------------<br style="font-family: Tahoma; "></div><div><br class="khtml-block-placeholder"></div><div>Man has survived hitherto because he was too ignorant to know how to realize his wishes.&nbsp;&nbsp;Now that he can realize them, he must either change them, or perish. &nbsp; &nbsp;-William Carlos Williams</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>