[Raguaviva] shows us in this video how he’s using an optical mouse as a low quality camera for his DS. This seems like a pretty cool hack, but we’re at a loss to think of a good use for it. As he gets to the end of the video, he seems to also have trouble thinking of a good use for it. Do you guys have any ideas?
41 thoughts on “DS Optical Mouse Camera”
Use it as a…
mouse? Wait that is what it is already.
Maybe you could make a barcode reader?
There is an official expansion pack that attaches an optical mouse to the bottom of the DS. Google magukiddo. The A2030 chip used in that can also take photos… IIRC 8×8 greyscale photos.
One good reason for being able to take photos would be to create games that involve tracing or otherwise detecting what the surface under the mouse looks like.
It Could be used to create a line following robot that can track its position visually and then pass that information to a laptop through the DS’s wifi.
or you could stick a lens on it and make a really low res digital microscope.
if it was possible to get the full 1500+ fps off the sensor, then it would be a bit more useful.
but for tracking purposes its a nice solution. (tracking goes up to 0.3m/s)
One use might be to use it as a mouse, but have various colors on mousepad type thing, and move your mouse to launch a program or control music software on a ds, might be a neat way to switch instruments or turn on effects say while the mouse is on red have distortion on and the intensity of the color could be the amount of distortion.
Portable text scanner?
Could use it as a motion sensor but you’d have a network connection in there somewhere.
>Portable text scanner?
Someone’s already made an optical mouse scanner…
I could use this as a precision solar tracker on my solar thermal generator. I was planning on looking into the image sensors in an optical mouse for exactly this, and it looks simple enough to do with this information. I have a solar energy system that has to track a spot within a centimeter or so and this is an off-the-shelf sensor for it.
you could make a over prices poorer version of many application for it.
have an idea for an app.. decent web cam for motion tracking/touchless input interfaces are a bit pricy but an optical mouse is cheep…use a cheep op mouse instead of a web cam…..5.00 op mouse or 15.00 webcam
Maybe make a QR code reader from it.
(Is the resolution high enough for this??)
why not just use it to replace the little pointing stick for the bottom screen. use can use it to scroll around, and clicking emulates tapping.
Aw, when I read the post, I thought someone used the DSi’s outside cam as an optical mouse. =\
here is what would be brilliant. combine the mouse camera with a micro processor or fpga to track the bands of a low cost interferometer in real time. This would enable optical precision cnc machines for very low cost.
you may use it as a bar code scanner
High precision line-follower robot? (Without using the DS…
PD: The SammyDestruction idea is veeery good, it’s a cheap way to see where your robot is, or furthermore, making that your robot map the room…
Ben Bangerter: Good idea. That way we can have low cost position feedback for CNCs
How about using the optical mouse fitted with a lens as a low-res motion sensor/security alarm? Changes within the frame beyond a threshold trigger a motion alarm? I remember people doing this with EPROMS in the 80’s. like the line-follower robot idea above too.
While I can think of no uses as-is, with the addition of some optics this could be quite a useful little motion sensor. Since you usually only care about “where something changed” instead of “what something changed” the low resolution would not be a hindrance (unless you are caring about tiny things changing). In fact, I believe it would be an advantage in that it wouldn’t require as much CPU power to process the data from the sensor as would a higher resolution device.
I developed an optical motion sensor using an Avago sensor a couple of years ago. Adapting a different lens arrangement allows the sensor assembly to be suspended above the running surface by a few inches. You can read about it on my website at http://home.roadrunner.com/~maccody/robotics/croms-1/croms-1.html
I thought about this idea in the past. I called it a “roach eye”. A sufficiently large optical flow, as seen by the sensor, would cause the line that drives the LED to drive more current. The increased current flow could be used to signal an alarm. With a robot, the signal would cause the main robot CPU to access the mouse sensor to read the pixel data. The pixel data could then be compared to a reference data set to determine if a response was needed. Using the mouse sensor for a “roach eye” would require some significant lens design to provide a sufficiently wide-angle field of view. Of course, multiple sensors could be used. This would be like an insect’s compound eye.
While the sensor does have a frame rate of 1500 fps, it is not possible to read out the image data at a rate to support that frame rate. The data interface is serial.
what mouse/ sensor is he using?
all mice I own have chips which don’t export the image data :/
Maybe use it to get really detailed scans of a mousepad?
You could use this for a line follower. I know they don’t do much, but most line following robots need a large line, like a piece of electrical tape. This one could maybe follow a pencil line or something.
Think of an insects simple eyes (bee has 3 + 2 compound). In robotic applications it could be used as aux visual sensors. IE: edge detection.
I’ve been wondering the same thing.
Anyone else think his accent is freakin’ awesome? :P
Thinking of a use seems the big question?
Well how about using it as a BARCODE SCANNER?!
Seems just the right thing and it would probably be a hack many store/warehouse owners would love. Broken scanner? Well just replace it with a cheap mouse and this driver :). More advantages are that the ds can give ya wifi connection so you have a wireless scanner…
Anyway just an idea… Aha when scrolling back seems someone beat me to that idea :D.
But even further, how about fingerprints? Since it zooms in so much, how does your fingertip look underneath it? Slap some recognition software on it to recognize a print and use it to activate an electronic doorlock?
Anyway keep on hacking, people will allways find good use of your work ;)
Dont need the full image for this, but with the right optics on the front you could make a useful altimeter for RC planes. Use a GPS receiver and the mouse sensor and you can compare optical flow with gps velocity to get accurate ground height.
This Is Just The Start of People Cracking the USB on the DS. Before You Know it. People Will be Using Them As Mice Controllers for PCs. And Extending The Wifi to Bluetooth, then With phones. The List Goes On. Even GPRS springs to mind with enough time.
Sensors like these are about $2 from digikey… they can also pick up infra-red… maybe cheap security camera?
At last this is what i was looking for. Some wonderful infomation here keep up the good work. I cannot really contribute a decent comment as i am abit out of my deph I will be checking back here periodically for your new updates. london insurance 30 St Mary Axe, london, EC3A 8EP 020 7193 4776
what frame rate did you achieve?
Combine it with a flashing infrared led that will detect when you are looking at the camera due to the “red-eye effect”. This could then trigger turning on a light in a dark room, or turning off the tv if you fall asleep.
Hmmm! this guy found and made use of the cmos chip in the mouse. Cool! Who knows someone will make optical mouse into webcam :D
Maybe you could use it as a cheap proximity censer.
You could use it as the sensor in a smart bullet or miniature ballistic missile. Map the target with a higher resolution camera and pass the data to the on board computer. With a system to slightly move the sensor you could map your target and program subsequent bullets or missiles to follow using near field communication. Something like the rifle in Fifth Element. The hard part would be developing a method to change trajectory of the bullet in flight. Not impossible but difficult. But with accelerometers getting so small it’s doable.
You would probably use some sort of ruggedized MEMs device to move the sensor around. Now that would be a cool trick. But not impossible. On a hobbyist’s budget not doable unless you have access to a MEMs facility. So a passive arrangement would be preferable. The on board processing would have to be FAST! But with the new processors (32 bit ultra low power) ARM just announced (1mm x 1mm) the processing power is available. I have an old chip bonder so I’d give it a try. And as far as a power source you have to remember it’s only got to be powered up for a few seconds at most for most applications. Maybe a piezo boost pump arrangement rather than a battery so you could keep them in field conditions. You’re going to get a hell of a kick when the bullet is fired. Otherwise for a missile a charged cap so it doesn’t wake up pre-launch and detonate. I’m working on a system to change trajectory of a spinning bullet but it’s far from fruition at this time. Shotgun shell arrangements are the best platform for now because of the size constraints and the fact you can ad retractable wings. Mechanically more complex though. Hell, depending on the IR sensitivity of the sensor you could use it to hit living targets using some sort of signature analysis or hit vehicle engines or whatever. Good old fire and forget technology. You would have to use un-encapsulated parts and be really good at sub-miniature construction. The final cost would be around $5-$10 per round but for a smart bullet that’s cheap. And a shotgun round doesn’t rotate for stability. But nothing beyond the capabilities of some of the people who come here. And you could also produce a device that specifically DOES NOT target living creatures! YAY. Only assets. I’m planning on making a cat toy that follows my cats around and bug the hell out of them. Dual use, ha ha.
Hey, good work there. I have some doubts.
>Can the mouse camera capture color?
>Is it possible to make a windows program that will display the images captured by the mouse camera?
I think I have thought of a very feasible application for this hack if the answers of the questions turns out favourable.
Please be kind and respectful to help make the comments section excellent. (Comment Policy)