# 2 lens microscope with an iphone camera. Where should the imaging plane be?

I am trying to design a 2 lens microscope that can be attached to an iphone camera in Zemax. To optimize the point spread function I need to define an imaging plane at which it should be optimized. Should the imaging plane of the 2 lens system be positioned at the surface of the camera or behind it? Do I need to take into account the internal optical system of the phone to get meaningful results?

Any help would be highly appreciated!

• What magnification do you want? Microscope objective lens is defined by magnification / NA. If you know, what you want you only have to google BFL/FFL of your specific iphone model. Without this input you will no be able to solve your problem. – Stefan Bischof Nov 23 '17 at 0:41
• Typically it would be focussed at infinity if you are using the existing iPhone camera as the 'eyepiece' – Martin Beckett Nov 23 '17 at 0:49

Do I need to take into account the internal optical system of the phone to get meaningful results?

A tiny camera like that on a phone is well approximated by an infinity conjugate objective, unless it is focussing on really close objects. So you would design an infinity conjugate of the numerical aperture and color correction appropriate to your application.

So, at the very least, you need to work out the stop diameter from the camera's $f$ number and also the effective focal length.

However, the phone camera is probably not going to be perfectly corrected and its chromatic and wavefront aberration will hinder your ability to get the point spread function down to the pixel size. This may or may not be a problem, depending on your application. If the phone's PSF is too big for your application, then you do indeed need to know exactly what the lens system is so that these aberrations can be corrected in your lens.

You also need to do proper research on the autofocus software to see how the latter will react to an external lens. If the phone has a separate rangefinding infrared sensor, this is going to be grossly miscalibrated by the presence of an outside lens and will wreak havoc on you application. If, on the other hand, the autofocus software works through image processing to optimize sharpness of edges, then it will help you. You need to decide how you're going to interact with the image acquisition software: if it's an external range-finding sensor then you'll need to switch autofocus off and control the camera completely from your own microscope app that you will need to develop.