Ok, i replaced mapping/debytemask and the rest as you suggested, but it didn&#39;t work. Then i replaced 0 and 1 in the debyte object by 8 and 9, to no avail. <br><br>I&#39;m afraid I can&#39;t find a fix alone, as i have no idea what the incoming data from the board looks like. <br>
<br>Anyway, thanks for helping me. <br><br>Pierre<br><br><div class="gmail_quote">2011/7/6 Ingo <span dir="ltr">&lt;<a href="mailto:ingo@miamiwave.com">ingo@miamiwave.com</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;">
It should be here:<br>
<br>
[arduino] / [pd convert_to_symbolic_commands] / [pd digital messages] /<br>
[mapping/debytemask]<br>
<br>
I was using the Pduino-0.5beta8 arduino-test.pd<br>
<div class="im"><br>
<br>
Ingo<br>
<br>
________________________________________<br>
Von: Pierre Massat [mailto:<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>]<br>
</div>Gesendet: Mittwoch, 6. Juli 2011 19:01<br>
An: Ingo<br>
Cc: Hans-Christoph Steiner; <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
<div><div></div><div class="h5">Betreff: Re: [PD] Arduino (is drivin me mad<br>
<br>
Thank you Ingo. Unfortunately I can&#39;t even locate the mapping/debytemask<br>
object to be replaced...<br>
<br>
Pierre<br>
2011/7/6 Ingo &lt;<a href="mailto:ingo@miamiwave.com">ingo@miamiwave.com</a>&gt;<br>
I assume that the error might be somehow caused by the fact that the digital<br>
pins are not offset by two as it should be the case since pin 0 &amp; 1 ought to<br>
be handled separately from the rest of the digital ins.<br>
<br>
BTW the debyte patch should replace [mapping/debytemask] plus the following<br>
message boxes and the [unpack float float] object.<br>
<br>
Ingo<br>
<br>
<br>
&gt; It looks like I changed pin 8 and 9 to be output as pin 0 and 1 for some<br>
&gt; reason. You should change the two message boxes at the left from<br>
&gt;<br>
&gt; [0 $1(  [1 $1(  to<br>
&gt;<br>
&gt; [8 $1(  [9 $1(<br>
&gt;<br>
&gt; to get the correct pin numbering.<br>
&gt;<br>
&gt; Ingo<br>
&gt;<br>
&gt;<br>
&gt; &gt; -----Ursprüngliche Nachricht-----<br>
&gt; &gt; Von: Ingo [mailto:<a href="mailto:ingo@miamiwave.com">ingo@miamiwave.com</a>]<br>
&gt; &gt; Gesendet: Mittwoch, 6. Juli 2011 05:46<br>
&gt; &gt; An: &#39;Pierre Massat&#39;; &#39;Hans-Christoph Steiner&#39;<br>
&gt; &gt; Cc: &#39;Ingo&#39;; <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt; &gt; Betreff: AW: [PD] Arduino (is drivin me mad<br>
&gt; &gt;<br>
&gt; &gt; &gt; Please tell me that all hope is not lost ...<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I looked it up and I found my fix. The errors are getting obvious here:<br>
&gt; &gt;<br>
&gt; &gt; Arduino / convert_to_symbolic_commands / digital messages / debyte<br>
&gt; &gt;<br>
&gt; &gt; If you replace “debyte” with this patch “pd debyte” it should work<br>
&gt; &gt; although<br>
&gt; &gt; I am not sure if pins higher than 9 were taken care of.<br>
&gt; &gt; If the bytes higher than 9 are still causing problems you might have to<br>
&gt; &gt; set<br>
&gt; &gt; the first moses to a higher number like 8 or so.<br>
&gt; &gt; I am not sure if it can interfere with anything else and I am also not<br>
&gt; &gt; sure<br>
&gt; &gt; if it works with boards other than Diecimila and Duemilanove.<br>
&gt; &gt;<br>
&gt; &gt; The problem is not “debyte” – it’s the numbers coming in that just get<br>
&gt; &gt; fixed<br>
&gt; &gt; with this workaround!<br>
&gt; &gt;<br>
&gt; &gt; Ingo<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; #N canvas 11 14 450 290 10;<br>
&gt; &gt; #N canvas 252 114 541 378 debyte 0;<br>
&gt; &gt; #X obj 32 161 &amp; 1;<br>
&gt; &gt; #X obj 82 161 &amp; 2;<br>
&gt; &gt; #X obj 162 345 outlet;<br>
&gt; &gt; #X obj 32 181 change;<br>
&gt; &gt; #X obj 82 181 change;<br>
&gt; &gt; #X obj 32 20 inlet;<br>
&gt; &gt; #X obj 264 181 change;<br>
&gt; &gt; #X obj 315 181 change;<br>
&gt; &gt; #X obj 366 181 change;<br>
&gt; &gt; #X obj 417 181 change;<br>
&gt; &gt; #X obj 162 181 change;<br>
&gt; &gt; #X obj 213 181 change;<br>
&gt; &gt; #X msg 32 221 0 \$1;<br>
&gt; &gt; #X msg 82 221 1 \$1;<br>
&gt; &gt; #X msg 162 221 2 \$1;<br>
&gt; &gt; #X msg 213 221 3 \$1;<br>
&gt; &gt; #X msg 264 221 4 \$1;<br>
&gt; &gt; #X msg 315 221 5 \$1;<br>
&gt; &gt; #X msg 366 221 6 \$1;<br>
&gt; &gt; #X msg 417 221 7 \$1;<br>
&gt; &gt; #X obj 162 308 unpack;<br>
&gt; &gt; #X obj 205 345 outlet;<br>
&gt; &gt; #X obj 162 161 &amp; 4;<br>
&gt; &gt; #X obj 213 160 &amp; 8;<br>
&gt; &gt; #X obj 264 161 &amp; 16;<br>
&gt; &gt; #X obj 32 201 == 1;<br>
&gt; &gt; #X obj 82 201 == 2;<br>
&gt; &gt; #X obj 162 201 == 4;<br>
&gt; &gt; #X obj 213 201 == 8;<br>
&gt; &gt; #X obj 264 201 == 16;<br>
&gt; &gt; #X obj 315 201 == 32;<br>
&gt; &gt; #X obj 315 160 &amp; 32;<br>
&gt; &gt; #X obj 366 201 == 64;<br>
&gt; &gt; #X obj 417 201 == 128;<br>
&gt; &gt; #X obj 366 161 &amp; 64;<br>
&gt; &gt; #X obj 417 160 &amp; 128;<br>
&gt; &gt; #X obj 32 41 moses 4;<br>
&gt; &gt; #X obj 162 104 trigger float float float float float float;<br>
&gt; &gt; #X obj 71 61 moses 253;<br>
&gt; &gt; #X connect 0 0 3 0;<br>
&gt; &gt; #X connect 1 0 4 0;<br>
&gt; &gt; #X connect 3 0 25 0;<br>
&gt; &gt; #X connect 4 0 26 0;<br>
&gt; &gt; #X connect 5 0 36 0;<br>
&gt; &gt; #X connect 6 0 29 0;<br>
&gt; &gt; #X connect 7 0 30 0;<br>
&gt; &gt; #X connect 8 0 32 0;<br>
&gt; &gt; #X connect 9 0 33 0;<br>
&gt; &gt; #X connect 10 0 27 0;<br>
&gt; &gt; #X connect 11 0 28 0;<br>
&gt; &gt; #X connect 12 0 20 0;<br>
&gt; &gt; #X connect 13 0 20 0;<br>
&gt; &gt; #X connect 14 0 20 0;<br>
&gt; &gt; #X connect 15 0 20 0;<br>
&gt; &gt; #X connect 16 0 20 0;<br>
&gt; &gt; #X connect 17 0 20 0;<br>
&gt; &gt; #X connect 18 0 20 0;<br>
&gt; &gt; #X connect 19 0 20 0;<br>
&gt; &gt; #X connect 20 0 2 0;<br>
&gt; &gt; #X connect 20 1 21 0;<br>
&gt; &gt; #X connect 22 0 10 0;<br>
&gt; &gt; #X connect 23 0 11 0;<br>
&gt; &gt; #X connect 24 0 6 0;<br>
&gt; &gt; #X connect 25 0 12 0;<br>
&gt; &gt; #X connect 26 0 13 0;<br>
&gt; &gt; #X connect 27 0 14 0;<br>
&gt; &gt; #X connect 28 0 15 0;<br>
&gt; &gt; #X connect 29 0 16 0;<br>
&gt; &gt; #X connect 30 0 17 0;<br>
&gt; &gt; #X connect 31 0 7 0;<br>
&gt; &gt; #X connect 32 0 18 0;<br>
&gt; &gt; #X connect 33 0 19 0;<br>
&gt; &gt; #X connect 34 0 8 0;<br>
&gt; &gt; #X connect 35 0 9 0;<br>
&gt; &gt; #X connect 36 0 0 0;<br>
&gt; &gt; #X connect 36 0 1 0;<br>
&gt; &gt; #X connect 36 1 38 0;<br>
&gt; &gt; #X connect 37 0 22 0;<br>
&gt; &gt; #X connect 37 1 23 0;<br>
&gt; &gt; #X connect 37 2 24 0;<br>
&gt; &gt; #X connect 37 3 31 0;<br>
&gt; &gt; #X connect 37 4 34 0;<br>
&gt; &gt; #X connect 37 5 35 0;<br>
&gt; &gt; #X connect 38 0 37 0;<br>
&gt; &gt; #X connect 38 1 0 0;<br>
&gt; &gt; #X connect 38 1 1 0;<br>
&gt; &gt; #X restore 168 99 pd debyte;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ________________________________________<br>
&gt; &gt; Von: Pierre Massat [mailto:<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>]<br>
&gt; &gt; Gesendet: Dienstag, 5. Juli 2011 22:23<br>
&gt; &gt; An: Hans-Christoph Steiner<br>
&gt; &gt; Cc: Ingo; <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt; &gt; Betreff: Re: [PD] Arduino (is drivin me mad<br>
&gt; &gt;<br>
&gt; &gt; You tried with your &quot;StandardFirmata&quot;, to no avail.<br>
&gt; &gt;<br>
&gt; &gt; Please tell me that all hope is not lost, doc...<br>
&gt; &gt;<br>
&gt; &gt; :Pierre<br>
&gt; &gt; 2011/7/5 Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;<br>
&gt; &gt; Should I try to upload a older firmata?<br>
&gt; &gt;<br>
&gt; &gt; :Pierre<br>
&gt; &gt;<br>
&gt; &gt; 2011/7/5 Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; The Uno board was troublesome back when I first tried it, but that was a<br>
&gt; &gt; while ago.  I didn&#39;t make that StandardFirmata_2_2_for_Uno_0_3 firmware,<br>
&gt; &gt; so<br>
&gt; &gt; I don&#39;t know what changes it has.  Is anyone having these problems on<br>
&gt; &gt; boards<br>
&gt; &gt; older than an Uno?<br>
&gt; &gt;<br>
&gt; &gt; .hc<br>
&gt; &gt;<br>
&gt; &gt; On Jul 5, 2011, at 3:32 PM, Pierre Massat wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; It makes no difference at all.<br>
&gt; &gt;<br>
&gt; &gt; Here&#39;s what happens :<br>
&gt; &gt; Inputs 2 through 7 work fine.<br>
&gt; &gt; Inputs 8 and 9 work fine.<br>
&gt; &gt;<br>
&gt; &gt; But if i use any of the inputs within the 2-7 group, and then use any<br>
&gt; &gt; input<br>
&gt; &gt; of the second group (8 and 9), i have to trigger the later twice before<br>
&gt; i<br>
&gt; &gt; can see something is happening.<br>
&gt; &gt;<br>
&gt; &gt; It goes like this :<br>
&gt; &gt; (in group 2 to 7)<br>
&gt; &gt; First guy : &quot;Pushed button 3.&quot;<br>
&gt; &gt; Second guy (Pd) : &quot;Ok, pushed button 3.&quot;<br>
&gt; &gt; First guy : &quot;Pushed button 7.&quot;<br>
&gt; &gt; Second guy : &quot;K, you pushed button 7.&quot;<br>
&gt; &gt; First guy : &quot;Pushed button 8.&quot;<br>
&gt; &gt; Second guy : &quot;Come again?&quot;<br>
&gt; &gt; First guy : &quot;PUSHED BUTTON 8!&quot;<br>
&gt; &gt; Second guy : &quot;Oh, yeah, button 8...&quot;<br>
&gt; &gt; First guy ; &quot;Pushed button 3.&quot;<br>
&gt; &gt; Second guy : &quot;I&#39;m sorry, what button?&quot;<br>
&gt; &gt; First guy : &quot;BUTTON 3!!&quot;<br>
&gt; &gt; Second guy : &quot;Yep, button 3.<br>
&gt; &gt;<br>
&gt; &gt; I hope it is clear now what the problem is.<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt; 2011/7/5 Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;<br>
&gt; &gt; Ok, I checked in Windows XP, with a custom sketch, and all of my inputs<br>
&gt; &gt; work<br>
&gt; &gt; flawlessly.<br>
&gt; &gt; (The IDE seem to work much better in Windows than in Linux btw).<br>
&gt; &gt;<br>
&gt; &gt; So the problem has to be somewhere between firmata and pduino.<br>
&gt; &gt;<br>
&gt; &gt; I will try with the latest pduino...<br>
&gt; &gt;<br>
&gt; &gt; Thanks for your help!<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt;<br>
&gt; &gt; 2011/7/5 Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; It would good to nail down the source of this and fix it.  Which version<br>
&gt; &gt; of<br>
&gt; &gt; Firmata are you using? Which firmware?  Also, there was a bug like that<br>
&gt; a<br>
&gt; &gt; while back that was fixed, so make sure you have the latest Pd patch<br>
&gt; too:<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://at.or.at/hans/pd/objects.html#pduino" target="_blank">http://at.or.at/hans/pd/objects.html#pduino</a><br>
&gt; &gt;<br>
&gt; &gt; .hc<br>
&gt; &gt;<br>
&gt; &gt; On Jul 5, 2011, at 2:49 PM, Ingo wrote:<br>
&gt; &gt;<br>
&gt; &gt; I fixed it by replacing the mapping object by a custom patch which deals<br>
&gt; &gt; with the first two switches seperately.<br>
&gt; &gt; I’ll look it up tomorrow and send you my fix.<br>
&gt; &gt;<br>
&gt; &gt; &gt;And where does the problem lie? In the board, firmata, or pduino?<br>
&gt; &gt;<br>
&gt; &gt; It suppose fermata since the wrong numbers arrive at pduino.<br>
&gt; &gt;<br>
&gt; &gt; Ingo<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ________________________________________<br>
&gt; &gt; Von: Pierre Massat [mailto:<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>]<br>
&gt; &gt; Gesendet: Dienstag, 5. Juli 2011 20:41<br>
&gt; &gt; An: Ingo Scherzinger<br>
&gt; &gt; Cc: Ingo Scherzinger<br>
&gt; &gt; Betreff: Re: [PD] Arduino (is drivin me mad<br>
&gt; &gt;<br>
&gt; &gt; Can we fix that??<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt; 2011/7/5 Ingo Scherzinger &lt;<a href="mailto:ingo@fixitinthemix.de">ingo@fixitinthemix.de</a>&gt;<br>
&gt; &gt; I happens when switching from the first two switches to the others<br>
&gt; within<br>
&gt; &gt; a<br>
&gt; &gt; 8-bit block. Since the block has the wrong header it will ignore the<br>
&gt; &quot;on&quot;<br>
&gt; &gt; message and send the first &quot;off&quot;. So you have to press the button twice.<br>
&gt; &gt; Once pressed it works until you press another button within that block<br>
&gt; and<br>
&gt; &gt; return to the first one.<br>
&gt; &gt;<br>
&gt; &gt; Ingo<br>
&gt; &gt;<br>
&gt; &gt; ________________________________________<br>
&gt; &gt; Von: Pierre Massat [mailto:<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>]<br>
&gt; &gt; Gesendet: Dienstag, 5. Juli 2011 19:56<br>
&gt; &gt; An: Ingo Scherzinger<br>
&gt; &gt; Betreff: Re: [PD] Arduino (is drivin me mad<br>
&gt; &gt;<br>
&gt; &gt; Glad to know i&#39;m not the only one with this problem! Sorry for starting<br>
&gt; a<br>
&gt; &gt; new thread.<br>
&gt; &gt; I have problems with inputs 8 and 9, or 9 and 10 (the first two on the<br>
&gt; &gt; second digital input socket).<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt; 2011/7/5 Ingo Scherzinger &lt;<a href="mailto:ingo@miamiwave.com">ingo@miamiwave.com</a>&gt;<br>
&gt; &gt; This is the same problem I had described several times before. There is<br>
&gt; an<br>
&gt; &gt; error in the 8-bit block where the digital ins 2+3 are coming in. It can<br>
&gt; &gt; be<br>
&gt; &gt; traced somewhere in the mapping section. I&#39;ll try to finally look it up<br>
&gt; &gt; tomorrow.<br>
&gt; &gt;<br>
&gt; &gt; Ingo<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ________________________________________<br>
&gt; &gt; Von: <a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a> [mailto:<a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a>] Im Auftrag<br>
&gt; von<br>
&gt; &gt; Pierre Massat<br>
&gt; &gt; Gesendet: Dienstag, 5. Juli 2011 19:36<br>
&gt; &gt; An: pd-list<br>
&gt; &gt; Betreff: [PD] Arduino (is drivin me mad<br>
&gt; &gt;<br>
&gt; &gt; Hi All,<br>
&gt; &gt;<br>
&gt; &gt; I apologie if this is off-topic. Please let me know if you think it is.<br>
&gt; &gt;<br>
&gt; &gt; I have been working on my arduino-based pedal, and im faced with a<br>
&gt; &gt; peculiar<br>
&gt; &gt; problem right now. I&#39;m using 8 digital inputs ( 6 on the first socket of<br>
&gt; &gt; the<br>
&gt; &gt; board, inputs 2 through 8, and 2 on the second digital socket, inputs 9<br>
&gt; &gt; and<br>
&gt; &gt; 10). The first 6 inputs work perfectly, but when i want to use any of<br>
&gt; the<br>
&gt; &gt; last two inputs (9 and 10), i have to trigger them twice before they<br>
&gt; start<br>
&gt; &gt; working. Then i&#39;m faced with the exact same problem when i get back to<br>
&gt; the<br>
&gt; &gt; first 6 inputs. I am pretty sure that i used the very same wiring for<br>
&gt; all<br>
&gt; &gt; 8<br>
&gt; &gt; inputs.<br>
&gt; &gt;<br>
&gt; &gt; So... I thought that maybe this could be a problem with firmata or<br>
&gt; pduino<br>
&gt; &gt; (no offense, Hans!). I have been spending the last hour trying to write<br>
&gt; a<br>
&gt; &gt; simple program in the arduino software in order to print in serial<br>
&gt; monitor<br>
&gt; &gt; the values of my digital inputs.<br>
&gt; &gt;<br>
&gt; &gt; Now my question... Is the arduino software just really really bad? Or<br>
&gt; was<br>
&gt; &gt; it<br>
&gt; &gt; just not designed to work on an ubuntu machine? It is randomly very slow<br>
&gt; &gt; at<br>
&gt; &gt; start-up, it randomly disables the serial port menu in Tools, it<br>
&gt; randomly<br>
&gt; &gt; decides to prevent me from uploading the program in the board, or warns<br>
&gt; me<br>
&gt; &gt; that serial port dev/ttyACM0 is already in use, or can&#39;t be found. The<br>
&gt; &gt; fact<br>
&gt; &gt; that i unplug and replug the board, or change the usb port, or restart<br>
&gt; the<br>
&gt; &gt; software doesn&#39;t seem to make any difference.<br>
&gt; &gt;<br>
&gt; &gt; This is beginning to look more like witchcraft than computer science to<br>
&gt; &gt; me.<br>
&gt; &gt;<br>
&gt; &gt; Please help me, or i&#39;ll teach it how to fly out my window.<br>
&gt; &gt;<br>
&gt; &gt; Thank you.<br>
&gt; &gt;<br>
&gt; &gt; Pierre<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; &gt; UNSUBSCRIBE and account-management<br>
&gt; &gt; -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; --<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; Man has survived hitherto because he was too ignorant to know how to<br>
&gt; &gt; realize<br>
&gt; &gt; his wishes.  Now that he can realize them, he must either change them,<br>
&gt; or<br>
&gt; &gt; perish.    -William Carlos Williams<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; --<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; Computer science is no more related to the computer than astronomy is<br>
&gt; &gt; related to the telescope.      -Edsger Dykstra<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>