Feb 28, 2022

Confocal fluorescent microscope design in OpticStudio

Category: Product News
How to design a confocal fluorescent microscope in OpticStudio

This blog post shows how to design a confocal fluorescent microscope in OpticStudio using a combination of the Sequential and Non-Sequential Modes. The system is designed in two major parts: from the laser source to the microscope objective, and from the microscope objective to the tube lens and detector. This post provides a walk-through of the design of the confocal microscope. It also discusses how to build a merit function for optimization and how to use the Convert to NSC Group tool to convert the system from Sequential Mode to Non-Sequential Mode.

Confocal fluorescent microscopy is a means of obtaining high-resolution 3D images of a sample and is especially useful in the life sciences and the semiconductor industry. To generate such high-quality results, the microscopes are designed in two major parts: from the laser source to the microscope objective, and from the microscope objective to the detector. This post will provide a walk-through of the design to show how to accurately model confocal microscopes in OpticStudio. The microscope objective used in this example is the "Microscope Objective 60x" available in Zemax Design Templates (or file example K_007 previously in Zebase), which is available to all Subscription licenses running OpticStudio 20.2 or above.

System overview

A confocal fluorescent microscope's optical system consists of a laser illumination source, a focusing lens, a collimating lens, a microscope objective, a tube lens, and a detector. These optics are configured in the following orientation:

Confocal flourescent microscope system overview

The purple beam represents the propagation of the laser source. The thicker red beam represents the in-focus fluorescence captured by the detector. The thinner red beam is included to illustrate the purpose of the second pinhole. The first pinhole is placed between the laser focusing and collimating optics. The second pinhole is placed after the tube lens in front of a photodetector. The placement of these pinholes at conjugate points is what makes this design a confocal microscope.

Note: While this microscope is not designed to be a scanning confocal fluorescent microscope, a group of laser collimating optics is included in the example design to serve as a reference template for where to modify the design into a scanning confocal microscope.

Designing the laser focusing system

The design for the laser focusing system will first be done in Sequential Mode. The constraints for the example system’s laser portion are as follows:

Wavelength 488 nm (Argon ion laser) & F, d, C
Beam Diameter 2.5 mm
Number of Lenses 2
Lens Center Thickness 3.0 mm
Lens Semi-Diameter 5.0 mm

First create the surfaces needed for focusing optics, selecting any glass(es) for the materials column. Vary only the radii of the lens surfaces. Using the glass substitution template option in the material column is optional.  Apply the default merit function settings, optimizing on minimum RMS spot radius, as shown below. 

Set some preliminary radii before running a local optimization on the lens. Then, if you wish to change the glasses in your system, run a hammer optimization. After you have reached a satisfactory doublet, freeze all variables and add another surface to the end of your system. This surface will act as a dummy surface placeholder for your pinhole.

Put 70 mm between the pinhole and the first surface of the collimating optics. Add the surfaces for a collimating lens to the end of the system. In this example, the lens thickness is 6mm. Then go to the System Explorer and under the Aperture tab, check the box for “Afocal Image Space”. The collimated beam diameter needs to be smaller than the entrance pupil diameter of the objective. Vary and adjust the thicknesses and radii to meet this constraint.

In the merit function wizard, create a new merit function, this time optimizing for minimum RMS wavefront error. Then click okay and optimize. The output light from the system should now be collimated. Add a dummy surface to the system 40mm after the pinhole location to represent the location of the dichroic mirror. 40mm after the pinhole location, add the K_007 objective to the system. The final system should look similar to the following:

Designing the tube lens

To design the tube lens, begin by opening a new file and opening Zemax Design Templates and opening "Microscope Objective 60x" (or file example K_007 previously in Zebase, see the Help Files section The Libraries Tab > Design Templates Group > Design Templates for more details). Add a 1mm thick glass plate 40mm after the last objective element to model the decenter introduced by the dichroic mirror in the full system. Use the tilt/decenter icon to tilt the 1mm thick glass surface by -45 degrees about x.

Add four lenses to the end of the system to become the tube lens elements. Put 40mm between the dichroic mirror and the first surface of your tube lens and then decenter the tube lens elements in the y-axis to accommodate the shift introduced by the plate. Insert a surface after the tube lens coordinate breaks a fixed thickness of 1mm.

The system constraints:

Wavelengths 521 nm (Fluorescein) & F, d, C
(Primary Wavelength = d)
Lateral Chromatic Aberration < Airy Disc radius
Total Track Length < 270 mm
Air Center Thickness (Ta)
(tube lenses only)
0.8 mm < Ta < 10 mm
Glass Center Thickness (Tg)
(tube lenses only)
1.0 mm < Tg < 6.0 mm
Merit Function Default RMS Spot Radius


Field X Y Weight
1 0 0 3
2 0.06 0 1
3 0 0.06 1
4 0 -0.06 1
5 0.12 0 1
6 0 0.12 1
7 0 -0.12 1
Vary the radii and thicknesses of each surface and set the material to solve type to substitute. Your final optimized system should resemble the following.

Conversion to Non-Sequential Mode

Open the file for the first system. Select File...Convert to NSC Group, and ensure that all boxes in the Convert To NSC Group window are checked. Press OK

In the System Explorer, change the Non-Sequential settings to the following.

Insert a Source Ellipse object type in front of the system. Set both the X and Y Half-Width parameters to 1.350 mm. Set the Wavenumber to 1, so that the source only emits 488 nm light.

Insert a Standard Surface object type at Surface 5 referenced to Surface 4. Adjust its Z Position so that it sits at the focal point of the focusing lens system. Then, insert a Standard Lens object at Surface 9, referenced to Object 8 so that it sits 40mm away from the second surface. This is your dichroic mirror. Tilt the mirror about X by -45 degrees.

Next, use the Modify Reference Object button to reference each part of the K_007 objective to the object before it with the first surface of the objects referenced globally.

Tilt the first objective surface by 90 degrees about x and move it -40mm in the Y-axis. Maintain the same global Z-position as the dichroic mirror. Then use Modify Reference Object to reference it to the dichroic mirror.

Next, incorporate the tube lens system into the Non-Sequential file. Convert only the tube lens surfaces from Sequential Mode. In the Non-Sequential Component Editor, use the Modify Reference Object to reference each tube lens to the lens before it. Then, highlight all surfaces and right-click to select “Copy Objects.” Paste these objects into the end of your total non-sequential system. Correct the reference objects of the tube lenses so that they are all relative to the lens before. The first tube lens should be referenced to the first lens of the microscope objective by changing the reference object number. Decenter the tube lens in the y-axis and set the tilt about Z in the first tube lens to be 180 degrees. Then, use the Modify Reference Object button to reference the tube lens to the dichroic mirror. The tilt about x should be -45 after this step.

Next, coat each lens surface in the system with the AR coating. For the dichroic mirror, set the front surface (facing the objective) to be coated with FLUORESCEIN and the back surface to be coated with the ideal coating I.99. FLUORESCEIN reflects 488nm and passes 521 nm and is not included in the default coating file. It must be added manually by the user. The data for the Fluorescein coating is included in the downloads below.

Finally, add two objects to the end of the system. Make one type a Standard Surface and the other a Detector Color. The Standard Surface material should be set to material type Absorb to model a pinhole. Distance this pinhole to be conjugated to the previous pinhole in the system. Place the detector close behind the pinhole to capture the image.

To read the full article and learn about the three methods that can be used to model the sample of the fluorescent microscope click here.

To try out Zemax capabilities please download a free trial here.

Lisa Li