I am currently in the planning phase for a high-resolution slide scanning build using an OpenFlexure setup.
My goal is to maximize the magnification and clarity/sharpness for deep-zoom tiling for use with an OpenSeaDragon viewer. I’m using a 60x plan achromat air-gap objective.
I’ll be using a Raspberry Pi Camera v2, and I want to get the most out of the 60x objective without the sensor becoming a bottleneck. To help scale the image to fit the camera’s pixel size better, I’m thinking about upgrading the standard 50mm tube lens to a 75mm version (like the Thorlabs AC127-075-A). Does this seem reasonable? Does this make sense?
Before I start ordering parts or trying to 3D print anything, I had a few basic questions:
3D Printing / CAD: If I use a 75mm lens instead of a 50mm, how do I adjust the printed parts? Is there a setting in the OpenSCAD files to make the tube longer, or do I need to manually stretch the spacer piece in CAD?
Tube Length / Focus: Since the 75mm lens sits further away, will extending the tube length mess up my focus or ruin the image quality?
Dark Corners (Vignetting): Has anyone tried a 75mm lens with a regular Pi Camera v2? Will I get weird dark corners or cut-off edges in the picture?
Lighting / Glare: Any simple tricks for cutting down glare and getting better contrast with a high-power 60x lens?
Any advice, tips, or pointers would be hugely appreciated! Sorry if my questions are a bit asinine, this is my first foray into both microscopy and 3D printing.
Hi @connor. The 50mm tube lens is selected to match a ‘standard objective lens image circle’ to the Pi camera v2. The design is in the knowledgebase
Many objective lenses have a larger image circle, so actually cover more area than the camera sensor. To use that larger image circle you would need a shorter focal length tube lens, not a longer one. However you would then start to run up against the pixel spacing on the camera begining to limit the effective resolution.
Alternatively you can use the same lens and a camera with a larger sensor with more pixels. The Pi HQ camera is exactly that. It is not yet supported by default in the OpenFlexure software, but there are threads here giving some information.
Slide scanning and tiling, with deep zoom using OpenSeadragon is a standard feature of the OpenFlexure software v3.0.0-beta1. It would probably be useful to build a standard OpenFlexure Microscope, to get a feel for how far from your needs it is.
I’ll start by saying I agree with William, while you could use a 75mm lens I would not recommend it. You will have a smaller field of view, so you will have more pixels/mm. But those extra pixels are beyond the optical resolution so you won’t see any more detail (assuming everything is aligned well).
That being said, it is an open project so you are welcome to build modified versions. If you did want to change the lens you can create a new optics dictionary changing tube_lens_f to the focal length and tube_length_ffd to the front focal distance of the lens:
You can then rebuild the optic module in SCAD. William has pointed to the Knowledge Base information on the design. There is further information in the OpenFlexure Enhancement Proposal about the optics (OFEP2). Section 3 explains the new implementation which is how it is calculated now.
Still I would definitely start with the standard configuration.