mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
''Note:'' You can download [[Media:Microscope-jakob-documentation.pdf|this documentation as PDF file]]. | |||
== Introduction == | |||
Goal of the workshop was to repurpose a possible cheap USB webcam into a microscope. Max Neupert, the organizer of this workshop, told us how to achieve this and instructed us throughout the winter term 2012/13. | |||
The basic concept Max told us is pretty simple: just disassemble the camera, mount the lens upside down and shoot some great photos with the new microscope. | |||
== Disassembling the Camera == | |||
The "Hama PC-Webcam AC-150" served as a basis, which costs about € 5 when ordering via Amazon. It has a resolution of 640x480 pixels and six LEDs to lighten the scene. Beyond this, the camera supports UVC (USB Video Class), which is important for viewing live images directly on the screen. | |||
As mentioned before, the first step was to disassemble the camera. After cracking the case, six LEDs had to be removed. In order to do so, we had to heat the solder at the back side of the PCB (printed circuit board). The last important step was to mount the lens with hot glue upside down onto the PCB. A photo showing this state of the microscope will follow soon. | |||
<gallery> | |||
File:Microscope-jakob-camera-disassembling-1.jpg|PCB without camera case<br/>next to its original package | |||
File:Microscope-jakob-camera-disassembling-2.jpg|PCB with unsoldered<br/>LEDs in front | |||
</gallery> | |||
== Building a Case == | |||
[[File:Microscope-case-jakob-side-view.png|195px|thumb|right|Side view]] | |||
[[File:Microscope-case-jakob-rendered.jpg|195px|thumb|right|Rendered image of first draft]] | |||
Since a microscope is designed to show very small objects, it is not appropriate to hold the camera in the hand because of uncontrollable hand movements. Therefore we needed to build a case that holds the microscope and gives the possibility to do little adjustments in height (that’s our zoom). | |||
My approach basically consists of two sleds that lie on one another where the contact surface is a plane in the angle of 15 degrees to the table. Pushing the lower carriage to the left will force the upper carriage to move upwards. The first image on the right shows a technical side view drawing, the second one shows a rendered image. | |||
[[File:Microscope-jakob-case-sketchup-model.png|195px|right|thumb|SketchUp model of case ([[Media:Microscope-case-jakob-sketchup-model.zip|Download]])]] | |||
After building a prototype out of Balsa wood, I was able to prove that the construction works fine. Nevertheless, some minor changes to the model have been done before printing the parts with a [[GMU:RapMan|RapMan 3D printer]]. In the image below, that shows the two printed sleds carrying the microscope, one can notice that a M4 threaded rod was stuck through the lower sled and two counter nuts were fastened at each side of the sled, whereas the original plan was to have a screw head lying in a little pocket. | |||
{| | |||
| [[File:Microscope-jakob-case-sleds-printed-case-wood.jpg|450px|left|thumb|border|Printed sleds with microscope already mounted, case built out of Balsa wood]] | |||
|} | |||
A M4 thread has a pitch of 0.7 mm, which means that one rotation about its own axis will move the lower sled 0.7 mm and therefore the upper sled about 0.2 mm. As a result, the microscope can be adjusted very fine in its height. | |||
''Note:'' As the 3D printer is broken at the moment, the case is built out of Balsa wood. An image of the actual model will be uploaded as soon as possible. | |||
== WebcamCapture Application == | |||
[[File:Microscope-jakob-webcam-capture-screenshot.png|195px|right|thumb|Screenshot of application (the display of my mobile phone served as investigation object)]] | |||
Because of the lack of simple applications which just show the current image of the webcam, I wrote a little program that does exactly this. | |||
The application can be downloaded [[Media:Microscopy-WebcamCapture.zip|here]], but note that the program only runs under Windows and [http://www.microsoft.com/en-us/download/details.aspx?id=24872| .NET Framework 4] has to be installed. | |||
Usage: | |||
* '''Space bar''' - Save image to file | |||
* '''R''' - Record video to AVI file | |||
* '''N''' - Add suffix to filename (such as "display" or "knife-edge") | |||
* '''Escape''' - Exit application |
Revision as of 21:28, 18 November 2012
Note: You can download this documentation as PDF file.
Introduction
Goal of the workshop was to repurpose a possible cheap USB webcam into a microscope. Max Neupert, the organizer of this workshop, told us how to achieve this and instructed us throughout the winter term 2012/13.
The basic concept Max told us is pretty simple: just disassemble the camera, mount the lens upside down and shoot some great photos with the new microscope.
Disassembling the Camera
The "Hama PC-Webcam AC-150" served as a basis, which costs about € 5 when ordering via Amazon. It has a resolution of 640x480 pixels and six LEDs to lighten the scene. Beyond this, the camera supports UVC (USB Video Class), which is important for viewing live images directly on the screen.
As mentioned before, the first step was to disassemble the camera. After cracking the case, six LEDs had to be removed. In order to do so, we had to heat the solder at the back side of the PCB (printed circuit board). The last important step was to mount the lens with hot glue upside down onto the PCB. A photo showing this state of the microscope will follow soon.
Building a Case
Since a microscope is designed to show very small objects, it is not appropriate to hold the camera in the hand because of uncontrollable hand movements. Therefore we needed to build a case that holds the microscope and gives the possibility to do little adjustments in height (that’s our zoom).
My approach basically consists of two sleds that lie on one another where the contact surface is a plane in the angle of 15 degrees to the table. Pushing the lower carriage to the left will force the upper carriage to move upwards. The first image on the right shows a technical side view drawing, the second one shows a rendered image.
After building a prototype out of Balsa wood, I was able to prove that the construction works fine. Nevertheless, some minor changes to the model have been done before printing the parts with a RapMan 3D printer. In the image below, that shows the two printed sleds carrying the microscope, one can notice that a M4 threaded rod was stuck through the lower sled and two counter nuts were fastened at each side of the sled, whereas the original plan was to have a screw head lying in a little pocket.
A M4 thread has a pitch of 0.7 mm, which means that one rotation about its own axis will move the lower sled 0.7 mm and therefore the upper sled about 0.2 mm. As a result, the microscope can be adjusted very fine in its height.
Note: As the 3D printer is broken at the moment, the case is built out of Balsa wood. An image of the actual model will be uploaded as soon as possible.
WebcamCapture Application
Because of the lack of simple applications which just show the current image of the webcam, I wrote a little program that does exactly this.
The application can be downloaded here, but note that the program only runs under Windows and .NET Framework 4 has to be installed.
Usage:
- Space bar - Save image to file
- R - Record video to AVI file
- N - Add suffix to filename (such as "display" or "knife-edge")
- Escape - Exit application