Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
Compare cell phone plans using Wirefly's innovative plan comparison tool ×

Submission + - How can I capture a switch event on a USB port? 4

wilderbeest writes: My 90-year old neighbour is very much into clocks, and maintains our local church clock here in North Woochester, UK. As it's quite a way up the spire and he isn't getting any younger, he would like to monitor the accuracy of the clockwork using his computer from home.

I've come up with the following solution: An Alix 2d3 with a Huawei E220 3G modem attached to it, and Zeroshell installed on the Alix. That all works well, Zeroshell connects to my VPN and I can place the thing in the church spire as they have electricity up there. We also installed a micro switch on a part of the clock that rotates once every 5 minutes, and we get a switch on / off from that micro switch.

Now comes the hard part: I need some sort of component that I can plug into the USB port of my Alix 2d3 and connect it to the micro switch so can capture the event, timestamp it and write it to a remote database.

Any ideas? Can I use something like a USB mouse and mod it?

Slashdot Top Deals

The most difficult thing in the world is to know how to do a thing and to watch someone else doing it wrong, without commenting. -- T.H. White