If you're down for even more microcontroller hacking, the ATTiny series can be convinced to bitbang USB, including HID: <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.xs4all.nl/~dicks/avr/usbtiny/">http://www.xs4all.nl/~dicks/avr/usbtiny/</a><div>
<br></div><div><a href="http://www.xs4all.nl/~dicks/avr/usbtiny/"></a>You'll probably want to use an ATTiny2313 if you want more than 3 inputs without doing dirty ADC, mux, or shift register tricks.<br>--<div>/jbm<br>
<div><br><div class="gmail_quote">On Sat, Nov 13, 2010 at 2:18 PM, Jonathan Foote <span dir="ltr"><<a href="mailto:jtfoote@ieee.org">jtfoote@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
One more option if you are down with some microcontroller hacking:<br>
<br>
Get a AVR usb dev board (AT90USBKEY2, $30 at the usual places), and<br>
with the LUFA open-source USB stack, you can make the board look like<br>
a USB HID keyboard (or mouse, or...) such that any input pin change<br>
can generate any arbitrary key events you want. No drivers, no hassle,<br>
should wake up a sleeping box just like a regular USB keyboard.<br>
<br>
On Sat, Nov 13, 2010 at 11:38 AM,<br>
<div class="im"><<a href="mailto:travis%2Bml-noisebridge@subspacefield.org">travis+ml-noisebridge@subspacefield.org</a>> wrote:<br>
</div><div><div></div><div class="h5">> So, I've often wondered what the best way to control a computer with<br>
> simple NO/NC inputs would be.<br>
><br>
> I used to rig buttons and such to the parallel port.<br>
><br>
> But computers don't have parallel ports much any more.<br>
><br>
> I also used to hook them to RS-232 ports.<br>
><br>
> But those are going away too.<br>
><br>
> So what's left?<br>
><br>
> Last I heard, several years ago, the USB drivers were still somewhat<br>
> flaky.  Is it better now?<br>
><br>
> Also, HOW exactly do I hook up to USB?  With parallel it was just some<br>
> passive circuits.  (Perhaps the answer here is "use Arduino")<br>
><br>
> And, finally, how do I avoid polling loops?  (Perhaps again the<br>
> answer is "use arduino").<br>
><br>
> And, for low-power scenarios, is there any obvious way to make a<br>
> system that waits in a very low power mode, then wakes up on certain<br>
> events?<br>
><br>
> Things that come to mind are rigging something to soft power-on (can<br>
> this be done on a laptop?) or Wake-on-LAN (but that requires something<br>
> capable of sending custom ethernet packets, which itself might consume<br>
> a fair amount of power).<br>
> --<br>
> Good code works on most inputs; correct code works on all inputs.<br>
> My emails do not have attachments; it's a digital signature that your mail<br>
> program doesn't understand. | <a href="http://www.subspacefield.org/~travis/" target="_blank">http://www.subspacefield.org/~travis/</a><br>
> If you are a spammer, please email <a href="mailto:john@subspacefield.org">john@subspacefield.org</a> to get blacklisted.<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Noisebridge-discuss mailing list<br>
> <a href="mailto:Noisebridge-discuss@lists.noisebridge.net">Noisebridge-discuss@lists.noisebridge.net</a><br>
> <a href="https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss" target="_blank">https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss</a><br>
><br>
><br>
_______________________________________________<br>
Noisebridge-discuss mailing list<br>
<a href="mailto:Noisebridge-discuss@lists.noisebridge.net">Noisebridge-discuss@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss" target="_blank">https://www.noisebridge.net/mailman/listinfo/noisebridge-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Josh Myer 650.248.3796<br> <a href="mailto:josh@joshisanerd.com">josh@joshisanerd.com</a><br>
</div></div></div>