The complete construction of a custom, real-time confocal scanning imaging system is described. This system, which can be readily used for video-rate microscopy and microendoscopy, allows for an array of imaging geometries and applications not accessible using standard commercial confocal systems, at a fraction of the cost.
Confocal microscopy has become an invaluable tool in biology and the biomedical sciences, enabling rapid, high-sensitivity, and high-resolution optical sectioning of complex systems. Confocal microscopy is routinely used, for example, to study specific cellular targets1, monitor dynamics in living cells2-4, and visualize the three dimensional evolution of entire organisms5,6. Extensions of confocal imaging systems, such as confocal microendoscopes, allow for high-resolution imaging in vivo7 and are currently being applied to disease imaging and diagnosis in clinical settings8,9.
Confocal microscopy provides three-dimensional resolution by creating so-called “optical sections” using straightforward geometrical optics. In a standard wide-field microscope, fluorescence generated from a sample is collected by an objective lens and relayed directly to a detector. While acceptable for imaging thin samples, thick samples become blurred by fluorescence generated above and below the objective focal plane. In contrast, confocal microscopy enables virtual, optical sectioning of samples, rejecting out-of-focus light to build high resolution three-dimensional representations of samples.
Confocal microscopes achieve this feat by using a confocal aperture in the detection beam path. The fluorescence collected from a sample by the objective is relayed back through the scanning mirrors and through the primary dichroic mirror, a mirror carefully selected to reflect shorter wavelengths such as the laser excitation beam while passing the longer, Stokes-shifted fluorescence emission. This long-wavelength fluorescence signal is then passed to a pair of lenses on either side of a pinhole that is positioned at a plane exactly conjugate with the focal plane of the objective lens. Photons collected from the focal volume of the object are collimated by the objective lens and are focused by the confocal lenses through the pinhole. Fluorescence generated above or below the focal plane will therefore not be collimated properly, and will not pass through the confocal pinhole1, creating an optical section in which only light from the microscope focus is visible. (Fig 1). Thus the pinhole effectively acts as a virtual aperture in the focal plane, confining the detected emission to only one limited spatial location.
Modern commercial confocal microscopes offer users fully automated operation, making formerly complex imaging procedures relatively straightforward and accessible. Despite the flexibility and power of these systems, commercial confocal microscopes are not well suited for all confocal imaging tasks, such as many in vivo imaging applications. Without the ability to create customized imaging systems to meet their needs, important experiments can remain out of reach to many scientists.
In this article, we provide a step-by-step method for the complete construction of a custom, video-rate confocal imaging system from basic components. The upright microscope will be constructed using a resonant galvanometric mirror to provide the fast scanning axis, while a standard speed resonant galvanometric mirror will scan the slow axis. To create a precise scanned beam in the objective lens focus, these mirrors will be positioned at the so-called telecentric planes using four relay lenses. Confocal detection will be accomplished using a standard, off-the-shelf photomultiplier tube (PMT), and the images will be captured and displayed using a Matrox framegrabber card and the included software.
The choice of laser wavelength, dichroic mirror, and optical filters should be determined based on the specific dyes being used in the experiment. For example, confocal imaging of a sample stained with Alexa Fluor 488 is best accomplished using a 488 nm laser, a 500 nm long-pass dichroic mirror, and a 30 nm bandwidth bandpass mirror centered at 515 nm. In contrast, confocal imaging of the red dye Alexa Fluor 647 would require a different set of components. The microscope in this protocol was built to visualize any dye that absorbs strongly at 400 nm and emits beyond 450 nm. We therefore chose a 406 nm excitation laser and a 425 nm long-pass dichroic to reflect the laser beam. Excited fluorophores can be selectively imagined by selecting the appropriate emission filters. It is important to use proper optical mounting hardware throughout the protocol where indicated; improper or makeshift hardware will not hold alignment as well and can be a safety hazard.
1. Setting up the resonant galvanometric mirror and relay optics
An important concept in building any kind of confocal scanning system is telecentricity. In a telecentric optical system, lenses are spaced from each other by the sum of their focal lengths, such that the magnification of the system is simply defined by the ratio of the focal lengths1. This enables the construction of an optical relay system where the magnifications, and thus the system properties, are easily defined by the choice of lenses. Another important concept involves so-called “stationary” optical planes, also referred to as “aperture planes”. An aperture plane is a position along the optical path where the light beam does not undergo any kind of lateral movement. In this microscope design, there are three important aperture planes: the first and second scanning mirrors, and the back-aperture of the objective lens. In order to achieve optimal beam scanning at the focal plane of the objective, the beam entering the back aperture of the objective lens must be stationary, sweeping only in angle. In order to create this stationary, angle-swept plane, we need to place the first and second scanning mirrors at conjugate, telecentric planes to the objective back-aperture. Lenses placed between the mirrors and the objective lens serve to relay the angle-scanned beam between these stationary planes (Fig 2). The scanning mirrors are mounted on two scanning galvos, each of which is responsible for scanning a given direction of the imaging plane (X and Y). To obtain the required line scan rate for video-rate imaging, a high-frequency resonant galvo is required to scan the x-axis (also known as the “fast” axis). These galvos utilize a sensitive, closed-loop feedback circuitry to create a sinusoidal scan pattern and are capable of operating at very high frequencies; we selected an 8 kHz galvo for this build.
2. Setting up the second scanning mirror and rotating the microscope
3. Setting up the scan, tube, and objective lenses
Next we will set up the second set of relay lenses, formally referred to as the “scan lens” and “tube lens”. It is important to choose the right combination of lenses so as to achieve the correct magnification at the objective focus and optimize the final image resolution. First, to achieve the maximum numerical aperture (NA) of any given objective lens, the laser beam striking the back of the objective must fill the back aperture completely; only then will the objective lens be able to create the tightest focus. Objective lenses have a range of back aperture sizes; chose a lens magnification ratio to slightly overfill the back aperture of the selected objective. Second, in order to achieve the right magnification, the objective lens must be matched with the tube lens focal length for which it was designed. Unfortunately, different microscope objective manufacturers have chosen to use different tube lens focal lengths, so it is important to build a microscope with the correct tube lens for the specific objective lens employed. Furthermore, certain manufacturers, such as Zeiss, design their tube lenses to compensate for the specific chromatic aberrations of their matched objective, such that using an improper objective-tube lens pair will in fact introduce new aberrations that would not otherwise be present. We typically prefer Olympus objectives, as all chromatic compensation is performed in the objective itself, making the objective/tube lens pairing easier. Although the microscope will still work if the objective and tube lens do not match, the actual microscope magnification will likely not match the magnification listed on the objective lens. For this particular microscope build, the optimal back aperture size was determined to be 4 mm, requiring a 1:4 magnification ratio between the scan lens and tube lens. For this custom microscope build, we will use a scan lens length of 75 mm and a tube lens length of 300 mm.
4. Setting up and aligning the confocal pinhole and detector
5. Preparing the system for confocal scanning microendoscopy
In this build we use a coherent image fiber, which consists of a bundle of many thousands of fiber cores; such an arrangement allows an image to be transmitted through the fiber and easily reconstructed and/or expanded at the other end (Fig 4). The coherent fiber bundle used in the construction of this endoscope is polished at both ends, making it a so-called “contact-mode” microendoscope. An in-focus image will therefore only be formed when the microendoscope tip is brought in close contact with an object. In this pseudo-confocal arrangement, the microscope’s scanning action focuses the laser on one fiber core at a time, while the confocal pinhole ensures that no out-of-focus light from the surrounding fibers is allowed to pass through to the detector. For different imaging applications, a set of lenses can be added on the distal tip to allow for forward-facing, long-distance fluorescence imaging. Microoptic lenses, as well as gradient refractive index (GRIN) lenses can easily be adapted for this use, and can be affixed to the distal fiber tip using optical quality glues.
6. Representative Results:
Figure 6 shows an example of a finished upright confocal scanning microscope configured for microendoscopy. The laser and emission beams have been drawn as a guide to the eye. A fiber mount holds the image fiber in place during microendoscopy operation. This fiber mount can be readily replaced with a xy or xyz translation stage for use as an upright microscope platform. ThorLabs parts PT3 (XYZ translation) or two stacked PT1 stages (XY translation) work well for this application, along with a right-angle bracket such as ThorLabs part AP90.
A video-rate framegrabber card is used to generate images from the incoming signal. Figure 7 shows a representative test image taken of a lower-case “m” printed on a white business card using the video-rate microscope scanning system. Bleached white paper contains fluorophores that are excited by UV and blue light, resulting in the bright background behind dark letter “m”. An emission filter centered at 515 nm was chosen to collect this fluorescent emission. A minor distortion of the image can be observed, especially near the lateral edges of the image frame. This distortion results from the sinusoidal scanning pattern of the 8kHz gavlo mirror, and will be discussed in detail below.
Figure 1. Diagram demonstrating the operating principle of a confocal microscope. Rays originating from the objective focus are relayed back through the system and focused through the confocal pinhole (red). Rays originating either above (blue) or below (green) the objective focus do not emerge from the objective collimated, and therefore are not efficiently transmitted through the confocal pinhole.
Figure 2. Diagram showing all light paths through the beam scanning system. The scanning mirrors sit at planes telecentric with the stationary, objective back aperture plane. Pairs of lenses between the stationary planes act to relay the scanned beams. The first two relay lenses have equal focal lengths, forming a 1:1 telescope. The second pair of lenses, known formally as the scan lens and tube lens, do not need to be equal in focal length, and often serve as a beam expanding telescope to ensure the objective back-aperture is overfilled. Light emitted from the sample travels back through the scanning system and is passed through the dichroic mirror. A short focus lens focuses the emission light through the confocal pinhole, which is then collimated by a lens. A final lens focuses the confocal-filtered emission onto a photomultiplier tube. Click here to view a full-sized version of this image.
Figure 3. (a) Overview diagram of the scanning electronics setup. The microscope’s overall reference signal and timebase is the “sync” TTL output of the fast axis resonant galvo mirror, which generates a TTL pulse at the end of each line scanned (i.e., when the galvo has completed a scan cycle). This provides the H-sync signal to the framegrabber card. The galvo’s sync output is also connected to the V-sync control board, which incrementally increases its output voltage in response to each H-sync pulse to generate the sawtooth waveform that drives the slow scanning axis. Once all lines have been scanned, the V-sync board resets the sawtooth waveform and generates a TTL pulse that serves as the framegrabber’s V-sync signal. The final input to the framegrabber card is the analog signal from the photomultiplier tube (Note that many PMTs generate negative output voltage; be sure to design your circuit and choose your hardware accordingly). The video-rate images are generated and displayed in the Matrox framegrabber software. (b) Example control circuit. In this design, the voltage of each H-Sync pulse is “added”/integrated at the op amp integrator to generate the sawtooth waveform ramp; pulses are concomitantly counted at the TTL counter stage. When the desired number of lines has been reached (i.e., when the raster scan is complete), the counter generates an active-low “carry out” pulse, which drives the Schmitt trigger to generate a reset pulse for the integrator. This resets both the counter and the op amp integrator, readying the circuit for the next cycle. Appropriate component choice makes this circuit widely applicable to a variety of raster sizes. This is only one implementation; numerous other implementations are possible and may be preferred under certain circumstances. Also, this circuit is designed for use with Matrox framegrabber cards, which detect and correct image phase automatically. If the circuit is to be used with other framegrabbers, phase correction circuitry or software may be required. Click here to view a full-sized version of this image.
Figure 4. Image transmission through a coherent fiber bundle. In this schematic, the lenses on either side of the bundle are in place to scale both the image projected onto the fiber bundle input as well as expand the image on the fiber bundle output.
Figure 5. Example of a fiber bundle mounted in a 5-axis mount. A small 1” diameter aluminum block was bored so that the image fiber bundle could be inserted. The fiber was epoxied inside the aluminum block at both the top and bottom of the block for stability.
Figure 6. Image of the completed microscopy system with the microendoscope attached. To better visualize the light paths, the excitation beam path is drawn in blue, while the emission beam path after the dichroic mirror is drawn as a red line.
Figure 7. Example image generated by the video-rate confocal scanning microscopy system. A dark lower case letter “m” appears on the bright fluorescence background of a white business card.
This video-rate imaging system makes use of a resonant galvanometric mirror operating at about 8 kHz. Resonant mirrors can be quite loud when run at full power, and their high pitch can be bothersome or even dangerous at sufficient exposure times. Though not demonstrated here, it is recommended to shield the resonant galvanometric mirror inside a transparent case to significantly reduce the system volume and/or to wear appropriate hearing protective gear, such as earplugs.
The resonant galvanometric mirror scans in a sinusoidal pattern. However, framegrabber cards read in signal assuming a completely linear sweep rate in both the horizontal and vertical directions. Since a sinusoidal sweep slows down at the edges of the scan, image compression artifacts can be observed along the fast (horizontal) image axis. One way to minimize this problem is to purposely drive the resonant galvo mirror scanning range significantly larger than the relay lens diameter. In doing this, only the nearly linear central sweep of the sinusoidal scan pattern will traverse the sample, minimizing image distortions. Another approach would be to post-process collected images to linearize the fast axis. This can be accomplished by imaging a known fluorescent pattern (such as a grid) and using the known pattern dimensions to create a processing script that unwarps the collected images.
This particular scanning system was designed for the purpose of in vivo imaging, which often requires an upright oriented video-rate microscope. For cellular imaging experiments, inverted microscopes are more typically used. The design presented here can be easily changed to build such an inverted microscope; all that is required is a rotation of the final 2” diameter mirror. Instead of orienting the mirror to direct the scanning beam downward, the mirror can direct the beam upward. Placing the objective lens at the same distance from the mirror along with a sample stage would allow for imaging in an inverted geometry. If the imaging system is being built solely for microendoscopic imaging, there is no reason to “fold” the microscope design vertically at all. Instead, the entire scanning system can be built on a single horizontal breadboard with the objective lens oriented parallel to the optical table.
Note that the microscope in this build uses a fixed pinhole configuration; while this provides for the greatest build simplicity and ease of alignment, users desiring a more versatile system might consider incorporating a variable pinhole, as can be found in most commercial confocal microscopes. By allowing the user to adjust the size of the pinhole to compensate for samples of varying emission intensity, this allows the user to better optimize the tradeoff between signal strength and resolution for a given sample.
The choice of image fiber selected for the microscope is important. We recommend using Sumitomo coherent image fibers due to their close fiber core spacing and low relative autofluorescence. Image fibers manufactured by Fujikura have been found to have high amounts of autofluorescence10, which can overwhelm weak fluorescence signals from a sample and limit the ultimate sensitivity of the microendoscope. Sumitomo manufactured fibers, such as the 8-30N used in this particular setup, have much lower autofluorescence levels than their Fujikura equivalents. While leeched fiber bundles might be considered attractive for microendoscopy, their design typically places individual fiber cores too far apart, meaning that the fiber cores sparsely sample objects, leaving out significant regions of potential interest.
Finally, it should be noted that while the microscope described here will be useful in a variety of in vitro and in vivo applications and can be created for a fraction of the cost of a full-featured commercial system, it does not have features such as transmitted light detection, an eyepiece for viewing, or a beam path for non-confocal widefield epifluorescence. While it is possible to construct a system with these features from scratch, readers desiring such a system may wish to modify an existing commercial system to meet their needs rather than initiate an entirely new build.
The authors have nothing to disclose.
The authors would like to thank ThorLabs for their support of this project. AJN wishes to acknowledge the support of an NSF Graduate Fellowship.
This work was partially funded by the National Institutes of Health through the NIH Director’s New Innovator Award Program, grant number 1 DP2 OD007096-01. Information on the New Innovator Award Program is at http://nihroadmap.nih.gov/newinnovator/. The authors would like to thank Tom Hayes for use of the Harvard Electronics lab.
Part Name | Manufacturer | Item Number | Specifications | Quantity |
515 nm Band Pass Filter | Chroma | HQ515/50M | 46 FWHM | 1 |
Achromatic Doublet Lens 25.4mm Dia. x 50mm FL, MgF2 Coating | Edmund Optics | NT49-766 | 1 | |
Achromatic Doublet Lens 25.4mm Dia. x 76.2mm FL, MgF2 Coating | Edmund Optics | NT49-768 | 1 | |
Achromatic Doublet Lens 25.4mm Dia. x 88.9mm FL, MgF2 Coating | Edmund Optics | NT49-769 | 2 | |
Achromatic Doublet Lens 50mm Dia. x 300mm FL, MgF2 Coating | Edmund Optics | NT45-179 | 1 | |
8 kHz R High Frequency Optical Scanner | Electro-Optical Products Corporation (EOPC) | SC-30 | 8 kHz | 1 |
AGC Driver | Electro-Optical Products Corporation (EOPC) | ACG:8K | ||
H7422-PA Photosensor Module | Hamamatsu | H7422-PA | Current limiting recommended | 1 |
M9012 Power Supply | Hamamatsu | M9012 | For use with H7422-PA | 1 |
HC PL APO CS Objective | Leica | 11506284 | 10x/0.40 | 1 |
Solios eA/XA Framegrabber Card | Matrox | Solios eA/XA | MIL software required; OEM interconnects recommended | 1 |
12V Power Supply | Meanwell | LPV-100-12 | +12V, 8.5A | 1 |
5x Microscope Objective Lens | Newport | M-5X | 0.10 NA, 25.4 mm Focal Length | 1 |
Coherent Image Fiber | Sumitomo | 8-30N | 1 | |
1/4″-20 Cap Screw and Hardware Kit | ThorLabs | HW-KIT2 | 1 | |
100 μm Mounted Pinhole | ThorLabs | P100S | Ideal for building spatial filters | 1 |
30 mm Cage Cube Clamp | ThorLabs | B6C | 1 | |
30 mm Cage System Cube, 4-Way | ThorLabs | C4W | 1 | |
406 nm, 5 mW, B Pin Code, SM Fiber Pigtailed Laser Diode, FC/PC | ThorLabs | LPS-406-FC | Product obsolete; replaced by LP405-SF10 | 1 |
5-Minute Epoxy, 1 Ounce | ThorLabs | G14250 | 1 | |
6 Axis Kinematic Optic Mount | ThorLabs | K6X | 1 | |
8-32 Cap Screw and Hardware Kit | ThorLabs | HW-KIT1 | 1 | |
8-32 Setscrew and Hardware Kit | ThorLabs | HW-KIT3 | 1 | |
Adapter with External RMS Threads and Internal SM1 Threads | ThorLabs | SM1A4 | 1 | |
Adj. FC/PC and FC/APC Collimator, f = 2.0 mm, ARC: 400-600 nm | ThorLabs | CFC-2X-A | f = 2.0 mm | 1 |
Adjustable Fiber Collimator Adapter, SM1 Threaded | ThorLabs | AD9.5F | 1 | |
Aluminum Breadboard, 12″ x 18″ x 1/2″ | ThorLabs | MB1218 | 1/4″-20 Threaded | 2 |
Benchtop Laser Diode/TEC Controller | ThorLabs | ITC4001 | 1 A/96 W | 1 |
DMLP 425 nm Long-Pass Dichroic Mirror | ThorLabs | DMLP425 | 1 | |
Kinematic Mount for Ø1″ Optics | ThorLabs | KM100 | 3 | |
LD/TEC Mount for ThorLabs Fiber-Pigtailed Laser Diodes | ThorLabs | LM9LP | 1 | |
Lens Mount for Ø18 mm Optics | ThorLabs | LMR18 | One retaining ring included | 1 |
Lens Mounts for 2″ Optics | ThorLabs | LMR2S | With internal and external threading; retainer ring included | 2 |
Mini Series Cage Assembly Rod, 6″ Long, Ø4 mm, Qty. 1 | ThorLabs | SR6 | 4 | |
Ø1.0″ Pedestal Pillar Post, 8-32 Taps, 1″ Long | ThorLabs | RS1P8E | 4 | |
Ø1″ Pillar Post Extension, Length=0.5 | ThorLabs | RS05 | 4 | |
Ø1″ Pillar Post Extension, Length=0.75″ | ThorLabs | RS075 | 4 | |
Ø1″ Protected Silver Mirror, 3.2 mm Thick | ThorLabs | ME1-P01 | 1 | |
Ø1″ SM1 Rotating Adjustable Focusing Element, L = 1″ | ThorLabs | SM1V10 | 1 | |
Ø2″ Protected Silver Mirror, 3.2 mm Thick | ThorLabs | ME2-P01 | 2 | |
P100S – Ø100 μm Mounted Pinhole | ThorLabs | P100S | 1 | |
Polaris Low Drift Ø1″ Kinematic Mirror Mount | ThorLabs | POLARIS-K1 | Low drift | 1 |
SM1 Lens Tube, L = 1″ | ThorLabs | SM1L-10 | One retaining ring included | 4 |
SM1 Threaded 30 mm Cage Plate, 0.35″ Thick | ThorLabs | CP02 | 2 | |
SM1 to M25 Optical Component Threading Adaptor | ThorLabs | SM1A24 | External SM1 Threads and Internal M25.5×0.5 Threads | 1 |
Small Beam Diameter Galvo System | ThorLabs | GVSM001 | 1 | |
Small Clamping Fork | ThorLabs | CF125 | 1/25″ counterbored slot, universal | 15 |
Spatial Filter System | ThorLabs | KT310 | Pinhole sold separately | 1 |
TE-Cooled Mount for 5.6 & 9 mm Lasers | ThorLabs | TCLDM9 | 1 | |
Vertical Bracket for Breadboards | ThorLabs | VB01 | Each | 2 |
Plan-Apochromat | Zeiss | 1101-957 | 20x/0.75 NA | 1 |