While looking for something else, I found a site which explains the possibilty of using a cheap optical mouse as a scientific motion sensor. I am not sure if this would be useful to the HA community, but it is an interesting idea for sure.
Visit the site
Visit the site