<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi<br>
<br>
Regarding the solution of mouse or numeric keypad (with USB hubs), I
have no clear idea about the technical obstacles. I think that main
ones are:<br>
<br>
(1) bypass X system, and direct the events from particular sources
(those mouses or numeric keyboards) to my app.<br>
(2) process the events by myself, with knowledge about the source
device (the particular mouse or numeric keyboard).<br>
<br>
Have you any ideas regarding available support in linux for (1) and (2)?<br>
<br>
With best regards<br>
Yosi Yarchi<br>
<br>
On 04/06/2011 05:08 PM, Udi Finkelstein wrote:
<blockquote
cite="mid:BANLkTinyKsPTgJxeZnSrBn1jjkk5aCw-Aw@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
href="http://www.seeedstudio.com/depot/microcontrollers-arduino-compatible-c-132_133.html">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>
<br>
Udi<br>
<br>
<div class="gmail_quote">2011/4/6 yosi yarchi <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:yosi.yarchi@gmail.com">yosi.yarchi@gmail.com</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true" href="mailto:Linux-il@cs.huji.ac.il"
target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true" href="mailto:write.to.jason@gmail.com"
target="_blank">write.to.jason@gmail.com</a><br>
web: <a moz-do-not-send="true" href="http://curiousjason.com"
target="_blank">http://curiousjason.com</a><br>
</div>
</div>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a moz-do-not-send="true" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a moz-do-not-send="true"
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>
</blockquote>
<br>
</body>
</html>