In case your pointing machine is a mouse, flip it over. The possibilities are you’ll see a crimson LED gentle for those who’re not significantly old-school and your mouse has a ball, this gentle serves because the illumination for a quite simple digicam sensor. The mouse electronics do their factor by on the lookout for motion within the ensuing picture, but it surely must be attainable to drag out the info and repurpose the sensor as a digital digicam. [Doctor Volt] has a brand new video exhibiting simply that with the innards of a Logitech peripheral.
The mouse incorporates a microcontroller and the digicam half, which happily has an SPI interface. The right register to question the sensor data was deduced, and as if my magic, a picture appeared. An M12 lens supplied focus with a helpful 3D printed mount, and the board went again into the mouse case as a housing. The photographs have one thing of the Recreation Boy digicam about them, being low-res and monochrome, but it surely’s nonetheless a neat hack.
In the event you’d like to provide it a go you’ll find the code in a GitHub repository. You would possibly discover it price discovering a gaming mouse although, for the a lot greater decision sensor.