Time to do some damage, but first heat up the hot glue gun.
Go ahead and put the paper down on the mouse and make some markings, I made little X's where the center was so I knew where to start drilling. Try taping it, if it moves on you too much. Now make some holes, doooo ittt.
Before you glue the IR sensor fully in, it might be a good idea to tape it down and test the readings, they should be the same or close to what it is when they are not going through the holes. If the readings are good, go ahead and put some molten plastic of doooom on there and by doom I mean thermoplastic adhesive.
ok close her up, you're done with the hardware!
now we need to make the arduino communicate with the computer, lucky we have amazing people like Ben Fry and Casey Reas that make groovy things like Processing
. If you don't know a lot about it, fret not! I will give you a pile of code to compile. No assembly required. But you really should learn processing, its amazing and a great stepping stone into more fun things like C++https://gist.github.com/4507774
make sure on line 41 you set the correct serial number, 4 happens to be mine, but will likely be different for yours. When you run the code it lists all serial ports run this code in processing: https://gist.github.com/4238638
. and if all else fails just go from 0-10 (or however high it goes for you) until you get readings.
your awesome meter: [ ==============
MIRROR, GET YOUR MIRROR!! SEEE YOUR AWESOMENESS. sorry caps lock cruise control... it happens.
don't forget to check out my twitter: hilukasz
or my blog: hellowoo.com/blog
for more fun projects and all of my shenanigans.
and don't forget to let me know if you do any fun derivatives of this project. I would love to hear about them!