Beware that analogue inputs (can) have noise (they fluctuate a little). <div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="color: rgb(85, 85, 85); font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 23px; ">The <code style="white-space: nowrap; ">analogRead()</code> command converts the input voltage range, 0 to 5 volts, to a digital value between 0 and 1023.</span><br>

<br></div><div>If you can settle with 12 inputs the Uno will suffice:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://arduino.cc/en/Main/ArduinoBoardUno">http://arduino.cc/en/Main/ArduinoBoardUno</a></div>

<div><br></div><div><br></div><div>p.s.: Multiplexing/de-multiplexing is the ability of addressing (or conversely be addressed) of several outputs with fewer inputs. You have chips that do that, example with 3 binary digits you can multiplex to 8 outputs, with 000 being the first, 001 the second, etc,.. up to the 111, which would be the 8th. People also call it MUX and DEMUX.</div>

<div><br><div class="gmail_quote">On Sun, Apr 10, 2011 at 2:44 PM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Pedro, thank you for this quick response. <br>- Yes, size does matter, because it all needs to fit in a stombox. But the boards don&#39;t seem to be to large anyway...<br>- Price matters too (i&#39;m not gonna buy the one at at 130 or something).<br>


- What is multiplex? I need something like 12 simple switches (digital inputs??), and maybe 3 or 4 analog inputs (i v&#39;e read on their website that one can have up to 6, is that right?). The only thing that really matters concerning the analog inputs is the &quot;resolution&quot;. I just read somwhere on their website that one board outputs integers from 0 to a little more than 1000 for it&#39;s analog inputs. If this is true, this would mean than i would get a resolution that&#39;s a little less than 10 times higher than that of my gamepad. But there seems to be different boards with different a difference resolution (i&#39;m assuming it&#39;s 8, 16 or 32 bit, am i right?). I don&#39;t know if i can order any pre-assembled model with any board. <br>


<br>I also saw that the board could power LEDs. This could be very interesting, because i&#39;m going to assign a switch to the connection of the expression pedal (analog) with certain parts of my patch. So for instance at startup the pedal controls effect 1, and if i push the button i goes to effect 2, etc., and only goes back to effect 1 after it&#39;s reached the last pedal-controlled effect. So it&#39;d be nice to have one LED for each effect on my stompbox so that i know exactly which one is currently controlled by the pedal. Do you think I could program this easily?<br>

<font color="#888888">
<br>Pierre</font><div><div></div><div class="h5"><br><div class="gmail_quote">2011/4/10 Pedro Lopes <span dir="ltr">&lt;<a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</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>They have a lot of models (not accounting for spin-offs done by other folks, which some are great - long live open hardware), I think there are some more parameters for choosing an arduino model:</div><div>- Does size matters? </div>




<div>- Does price matters?</div><div>- 8 buttons + 1 potentiometer (in a pedal). Extendability up to 12. </div><div>  - do you wanna multiplex[1], or simple coding?</div>

<div><br></div><div> Maybe if you really want a lot of inputs, Duemillianuove will not suffice, and maybe Mega is the way to go, but its more expensive and bigger. </div><div><br></div><div>[1] <a href="http://www.arduino.cc/playground/Learning/4051" target="_blank">http://www.arduino.cc/playground/Learning/4051</a><br>




<br><div class="gmail_quote"><div><div></div><div>On Sun, Apr 10, 2011 at 2:14 PM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>

Hi all,<br>I sorry to start yet another thread about arduino, but i&#39;m too lazy to search the archives and i suppose that they are upgrading the different models frequently.<br>I have been using a hacked gamepad-turned-stompbox to control my live patches, and right now i feel that it&#39;s time to build something else that would suit my needs more closely.<br>





I have to choose between a decent gamepad that i could hack and a arduino board. Only, i don&#39;t know anything about arduino. So it&#39;d be nice if a list member could help me a little bit.<br>Here&#39;s what i have right now :<br>





- 8 buttons + 1 potentiometer (in a pedal). <br>I&#39;d like to have more buttons (I could have 12 using the game controller, can i have more with a arduino board?). And it&#39;d be nice if could have more &quot;analog&quot; pots (i could have up to 4 using the gamepad, but they&#39;re hard to solder...). <br>





Also, i&#39;d like to know the &quot;resolution&quot; of the analog inputs of a arduino board. Is it higher than that of a gamepad? That&#39;d be cool because i could have a smoother control over certain values in my patch. <br>





<br>And finally, what do i need to connect the arduino board to Pd? Is it the HID object or something different? <br><br>Any help welcome.<br><br>Cheers!<br><font color="#888888"><br>Pierre<br>
</font><br></div></div>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes (MSc)<br>contact: <a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a> / <a href="http://pedrolopesresearch.wordpress.com/" target="_blank">http://pedrolopesresearch.wordpress.com/</a> | <a href="http://twitter.com/plopesresearch" target="_blank">http://twitter.com/plopesresearch</a><br>





</div>
</blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes (MSc)<br>contact: <a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a> / <a href="http://pedrolopesresearch.wordpress.com/" target="_blank">http://pedrolopesresearch.wordpress.com/</a> | <a href="http://twitter.com/plopesresearch" target="_blank">http://twitter.com/plopesresearch</a><br>


</div>