M12 lens mount for PS3Eye camera hacking
by jasonwebb, published
The [PS3Eye camera](http://www.amazon.com/Sony-PlayStation-Camera-Bulk-Packaging-Pc/dp/B0072I2240/ref=sr_1_2?ie=UTF8&qid=1367711281&sr=8-2&keywords=ps3eye) has become very popular in the [multi-touch community](http://nuigroup.com) for it's fast framerate, low-cost and high hackability. Any time you want need a decent, cheap infrared camera for computer-vision projects, the PS3Eye is a good place to start! For example, I'm using it for eye-tracking in my [Eyewriter 2.1 project](http://jason-webb.info/wiki/index.php?title=Eyewriter_2.1), and a pair of them are at the heart of the fancy new [Duo finger-tracking system](http://duo3d.com/)!
For a long time, if you wanted to hack a PS3Eye camera you needed to buy all of the parts from suppliers on the web, which gets expensive and tedious pretty quickly.
You still have to buy lenses and filters, but you can save yourself a little bit of cash by printing your own M12 lens mount! This mount is specifically designed for the PS3Eye camera's hole spacing and physical dimensions, but I've included the OpenSCAD file used to generate the mount so you can hack it for other board systems.
There is surprisingly little slop in the thread; it holds the M12 lens really nice and tight
**About the OpenSCAD script**
I generated the 3D model for the mount using OpenSCAD, and I've tried to make things as parametric as I could. It relies on MCAD's unit's library, as well as [aubenc](http://www.thingiverse.com/aubenc)'s sweet ["Poor man's openscad screw library"](http://www.thingiverse.com/thing:8796). Both are included in the downloads for this Thing, but must be put in a sub-folder called "lib".
You can read more about the development process for this part on my blog at: jason-webb.info/2013/05/fully-functional-3d-printed-m12-lens-mount-for-ps3eye-camera-hacking/
Recent Commentsview all
The lens in the picture is a 25mm lens from Secucity, but I would strongly recommend staying away from them. Took about a month to reach me and the customer service was terrible.
Instead, you can get good, cheap lenses quickly from m12lenses.com
Liked Byview all
Give a Shout Out
Download the STL included and slice it up with the following settings in your favorite program:
* 100% infill
+ 0.15mm layer height or less
* 0 shells
**Attach the mount to your camera board**
You will need two #000-120 "Micro Phillips" screws. Ideally you should grab some self-tapping ("boss") screws, but they are hard to source on the web. McMaster-Carr carries a 10 pack of the required screws, part number **92482A147**.
I've heard that you can also attach the mount using hot glue, but I can't vouch for this. It sounds like a great, cheap option, but I'm unsure of how long it'd last and whether it would damage the board.
You must be logged in to post a comment.