<div dir="ltr">Here is another very cheap solution:<br><br><a href="http://www.pjrc.com/teensy/">http://www.pjrc.com/teensy/</a><br><br>The small board has 25 digital I/Os and 7 analog for $16, and the larger one has 46 digital I/Os and 12 analog.<br>
If your competitors are close enough you can use one board for multiple inputs. Since you need to hook key presses which is measures by tens of milli-seconds in the best case, I believe long wires would pose no problems (propagation delay and bandwidth are not a problem).<br>
<br>They even have ready made examples of emulating a mouse, a keyboard, a generic HID device, etc.<br><br>Shipping costs would be $10-$16 on airmail, depending on package weight ($16 is for 2 pounds, about 0.9Kg, enough for at least 3 boards).<br>
<br>An example using it:<br>
<br>
<a href="http://blog.makezine.com/archive/2011/04/the-awesome-button.html">http://blog.makezine.com/archive/2011/04/the-awesome-button.html</a><br>
<br>Udi<br><br><div class="gmail_quote">On Wed, Apr 6, 2011 at 5:08 PM, Udi Finkelstein <span dir="ltr"><<a href="mailto:Linux-IL@udif.com">Linux-IL@udif.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">I think any analog DAQ based solution will be expensive. Use too many analog levels, and it will not be accurate. Use a small number of levels, and the price per port for analog connection will drive the price too high.<br>
<br>You can try using computer mice.<br>cheap 2 button+scroll wheel starts at 17NIS on zap.<br>Such a mouse can provide at least 5 events:<br><br>right button<br>left button<br>middle button (scroll wheel press)<br>scroll up<br>
scroll down<br><br>You can then take apart the mouse and repackage it, maybe replacing the wheel with 3 distinct switches.<br><br>Ofcourse you might need powered hubs if you intend to drive 30 mice.<br>You could try taking eight 4 port unpowered hubs (also starts at 17 NIS on zap), and if you computer has 8 free USB ports (many do these days), you could fit 30 mice, and hope that each port can drive 4 mice + hub. You will also have 2 spare ports (8*4-30)for the console keyboard/mouse.<br>
<br>Another direction would be to use an arduino board.<br><a href="http://www.seeedstudio.com/depot/microcontrollers-arduino-compatible-c-132_133.html" target="_blank">http://www.seeedstudio.com/depot/microcontrollers-arduino-compatible-c-132_133.html</a><br>
The cheapest $19 board has 14 digital inputs plus 6 analog ones which you can treat as digital if you like.<br>20 input pins can serve 5 users (4 input pins/user) or 6 users (3 input pins per user if you wire them smartly - 1 qualifier signal that is grounded by all 4 switches, and 2 more that are getting a 2-bit binary code.<br>
<br>seeedstudio has free worldwide shipping for orders above $50.<br><font color="#888888"><br>Udi</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/4/6 yosi yarchi <span dir="ltr"><<a href="mailto:yosi.yarchi@gmail.com" target="_blank">yosi.yarchi@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#ffffff">
Hi<br>
<br>
This is interesting idea. However, it support voting between 2 options,
only, while I need at least 4 options.<br>
I thought that combination of analog DAQ and 4 push buttons with analog
output may help here.<br>
Does someone have an idea about such combination (analog DAQ+edge unit)?<br>
<br>
With best regards<br>
Yosi Yarchi<br>
<br>
<br>
<br>
<br>
<br>
On 04/06/2011 10:55 AM, Jason Friedman wrote:
<blockquote type="cite">
<div dir="ltr">I think the best solution would be to use a data
acquisition device, either USB or PCI.
<div><br>
</div>
<div>Measurement computing sell relatively cheap devices, e.g. this
USB one for $99:</div>
<div><a href="http://www.mccdaq.com/usb-data-acquisition/USB-1024-Series.aspx" target="_blank">http://www.mccdaq.com/usb-data-acquisition/USB-1024-Series.aspx</a></div>
<div><br>
</div>
<div>can measure 24 digital channels (you could get two if you need
30).</div>
<div><br>
</div>
<div>Each "competitor" could have a small switch, which connects
their input line to say a 5V power supply.</div>
<div><br>
</div>
<div>You can then write a very simple program to detect when each
competitor presses their switch</div>
<div>(with sub-millisecond accuracy!).</div>
<div><br>
</div>
<div>These devices apparently have linux support.</div>
<div><br>
</div>
<div>Jason<br>
<br>
<div class="gmail_quote">On Wed, Apr 6, 2011 at 2:44 PM, yosi yarchi <span dir="ltr"><<a href="mailto:yosi.yarchi@gmail.com" target="_blank">yosi.yarchi@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hi
all<br>
<br>
<br>
I need application that will be able to collect and process inputs from
30 (!) competitors, and will display the results very fast. The ideal
solution could be to collect the inputs via SMS: each competitor send
his answer, the application collect the answers (related to phone
number) and process them. However, I can't assume that the competitors
have mobile phones (they may be little childs...).<br>
<br>
<br>
I thought to use 30 USB numerical keyboards as input devices, connected
with cables to 3 hubs, connected to the computer.<br>
<br>
However, I don't have experience with USB drivers at linux...<br>
<br>
<br>
Is it feasible? What should be the main guidelines for the solution?<br>
<br>
<br>
With best regards<br>
<br>
Yosi Yarchi<br>
<br>
<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Jason Friedman<br>
Postdoctoral scholar<br>
Macquarie Centre for Cognitive Science<br>
Macquarie University, NSW 2109 Australia<br>
email: <a href="mailto:write.to.jason@gmail.com" target="_blank">write.to.jason@gmail.com</a><br>
web: <a href="http://curiousjason.com" target="_blank">http://curiousjason.com</a><br>
</div>
</div>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>