Difference between revisions of "Cheap Educational Scope"

From NebarnixWiki
Jump to navigationJump to search
(New Page)
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Problem Statement==
 
==Problem Statement==
 
I needed a quick idea for summer camp educational workshop that was 'sciencey'. I remembered seeing this [http://www.thingiverse.com/thing:31632| thingiverse link] a while back and sharing it with a friend of mine who is an elementary school teacher. I wanted to do this as a workshop but also to understand the operation behind it as I am ashamed to say that my knowledge of optics is pretty bad...  
 
I needed a quick idea for summer camp educational workshop that was 'sciencey'. I remembered seeing this [http://www.thingiverse.com/thing:31632| thingiverse link] a while back and sharing it with a friend of mine who is an elementary school teacher. I wanted to do this as a workshop but also to understand the operation behind it as I am ashamed to say that my knowledge of optics is pretty bad...  
 +
 +
I also wanted to understand the weak spots of the scope so that older kids could make a more advanced version that would be more capable or easier to use.
  
 
==The Eye==
 
==The Eye==
Line 6: Line 8:
  
 
Luckily I found some information on the human eye. Some of the really important ones are
 
Luckily I found some information on the human eye. Some of the really important ones are
*Visual acuity: 2 arcminutes  
+
*'''Visual acuity''': 2 arcminutes  
*Distance of Nearest Distinct Vision: 25cm (between this and infinity are good places to place your final virtual image)
+
*'''Distance of Nearest Distinct Vision''': 25cm (between this and infinity are good places to place your final virtual image). This actually varies from about 5cm in youth to 1m in the elderly.
*Translated visual acuity at the distance of nearest distinct vision: 145µm (wow, my eyes are amazing!!)
+
*'''Visual acuity at the distance of nearest distinct vision''': 145µm (wow, my eyes are amazing!!)
*Focal Length of the Eyeball: 2.2cm
 
  
**Reminder to myself to scan and stick in the raytrace model**
+
==The Cameras==
 +
Walmart! 33mm focal length lenses. Full lens diameter not usable, need to stop down with a 3mm stop.
 +
 
 +
==Terms==
 +
Optical magnification and apparent magnification and perceptual magnification (I totally made up that term) are very different things.
 +
 
 +
*'''Optical Magnification''' - The ratio of object magnitude to image magnitude. Makes more tangible sense for a real image.
 +
*'''Apparent Magnification''' - Takes into account the fact a detector will see angles, therefore, distances from the detector matter. This is the ratio of the angular size of the object placed at area of nearest focus (nearest distinct vision in humans, different for a camera) to the angular size of the virtual image at *it's distance.
 +
*'''Perceptual magnification''' (not an official term) - Same as apparent but uses the eye to object distance such that if you could put the instrument up to one eye and see it without the instrument through the other eye, '''even if the object is too close to focus on'''. Personally, this one makes the most sense.
  
 
==The 2-lens Matlab Model==
 
==The 2-lens Matlab Model==
 +
 +
The following script is a work in progress. It produces the following figure which could be a lot better but its what I have right now.
 +
 +
[[Image:2Lens_Microscope.png]]
  
 
<pre>
 
<pre>
 
clear;
 
clear;
 +
clc;
 +
 +
%% define all constants
 
%all units are in meters
 
%all units are in meters
Fo=.032;
+
%eye relief assumed to be zero
Fe=.032;
+
 
Dndv = .25;%.25 is the distance of "nearest distinct vision" in humans
+
Fo=.033; %objective focal length
Me = Dndv/Fe;  
+
Fe=.033; %eyepiece focal length
Di = 3.2*Fo; %random guess of 4
+
Pe = .003; %entrance pupil of 3mm (refine this to include mag effect)
Lt=Di+Fe; %tube is the image distance plus the focal length of the occular
+
Dndv = .25; %.25 is the distance of "nearest distinct vision" in humans
%M=f/(f-Do) for distance to the object  
+
Dvi = 1; %distance to final virtual image (between inf and Dndv)
 +
Aacuitydegrees = 2/60; %human visual foveal acuity is 2 arcminutes
 +
Wgreen = 550e-9; %wavelength of green light is 550nm
 +
 
 +
%% Find image/object distances and magnigication of the objective lens
 +
Di = 3.2*Fo; %random guess of 4 times (iterative solution)
 +
%M=f/(f-Do) for distance to the object (thin lens & def of magnification)
 
%M = -Di/Do
 
%M = -Di/Do
 
%M = (f-Di)/f for distance to the image
 
%M = (f-Di)/f for distance to the image
 
Mo = (Fo-Di)/Fo;
 
Mo = (Fo-Di)/Fo;
 
Do = -Di/Mo;
 
Do = -Di/Mo;
Pe = .003; %entrance pupil of 3mm
+
 
 +
%% Find iimage/object distances and magnigication of the eye lens
 +
%Thin lens equation. Dndv is a virtual image, so it is negative.
 +
Devi = 1/(1/Fo - 1/(-Dvi));
 +
%Total length = Obj<->image<->Eyepiece = Obj2image + Image2eyepiece
 +
Lt=Di+Devi
 +
Me = 1+Dvi/Fe;
 +
 
 +
%% Find the optical and apparent magnification of the system
 +
Mt = Mo*Me %Optical (virtual size to image size)
 +
 
 +
%Apparent (Different in what you can see naked eye vs magnified)
 +
%The angular size at DNVD vs the object you see through the eyepice at Dvi
 +
%This varies from person to person depending on DNDV
 +
Ma = atand((Mt*.001)/Dvi)/atand(.001/Dndv)
 +
 
 +
%perceptual (difference in what you see without moving your head)
 +
%The angualr size without optics vs with optics.
 +
%Note that you probably can't focus this close so the object would be blurry
 +
%This does not vary between individuals
 +
Mp = atand((Mt*.001)/Dvi)/atand(.001/(Do+Lt))
 +
 
 +
 
 +
%% Find the resolution of the system (and the max practical magnification)
 
Theta = atand((0.5*Pe) / Do);
 
Theta = atand((0.5*Pe) / Do);
 
NA = sind(Theta);
 
NA = sind(Theta);
Resolution =  (530e-9)/(2*NA); %green light resolution
+
Resolution =  Wgreen/(2*NA); %green light resolution
%human visual foveal acuity is 2 arcminutes
+
Dsep = 2*sind(Aacuitydegrees/2)*Dvi; %lowest resolveable distance at Dndv
Aacuitydegrees = 2/60;
+
Moptimal = (2*NA*Dsep)/Wgreen %550nm is green light
Dsep = 2*sind(Aacuitydegrees/2)*Dndv; %lowest resolveable distance at Dndv
+
 
Moptimal = (2*NA*Dsep)/(550e-9) %550nm is green light
+
% Plot the system
Total_Magnification = Mo*Me
+
%% Draw the lenses
 +
Hoo = 1e-3; %height of the objective object
 +
Hoi=Hoo*Mo; %height of the objective image
 +
Hei=Hoi*Me; %height of eyepiece image
 +
 
 +
Hol = (9.525e-3)/2; %height of the objective lens (radius)
 +
Hel = (9.525e-3)/2; %height of the eyepiece lens (radius)
 +
 
 +
clf;
 +
hold on;
 +
axis([-.02 .24 -.01 .006]);
 +
 
 +
 
 +
line([-1 .3],[0 0]); %axis
 +
 
 +
line([Do Do],[-Hol Hol],'Color','Green'); %objective lens
 +
plot([Do-Fo Do+Fo],[0 0],'*g'); %focal points
 +
 
 +
line([Do+Lt Do+Lt],[-Hel Hel],'Color','Red'); %eyepiece lens
 +
plot([Lt+Do-Fe Lt+Do+Fe],[0 0],'*r'); %focal points
 +
 
 +
 
 +
%% Draw the images
 +
draw_arrow([0 0],[0 Hoo],0.5); %initial object
 +
draw_arrow([Do+Di 0],[Do+Di Hoi],0.5); %objective image
 +
draw_arrow([Do+Lt-Dvi 0],[Do+Lt-Dvi Hei],0.5); %objective image
 +
 
 +
%axis([-.08 .22 -.02 .0075]);
 +
 
 +
%% Draw the First lens rays
 +
line([0 Do],[Hoo Hoo],'Color','Blue');
 +
line([Do Do+Di],[Hoo Hoi],'Color','Green');
 +
 
 +
line([0 Do],[Hoo 0],'Color','Blue');
 +
line([Do Do+Di],[0 Hoi],'Color','Green');
 +
 
 +
line([0 Do],[Hoo Hoi],'Color','Blue');
 +
line([Do Do+Di],[Hoi Hoi],'Color','Green'); 
 +
 
 +
%% Draw the Second lens rays
 +
line([Do+Di Do+Lt],[Hoi Hoi],'Color','Green'); 
 +
line([Do+Lt Do+Lt+Fe],[Hoi 0],'Color','Red'); 
 +
 
 +
line([Do+Di Do+Lt],[Hoi 0],'Color','Green');   
 +
 
 +
line([Do+Lt Do+Lt-Dvi],[Hoi Hei],'Color','Green','LineStyle',':');  %virtual rays
 +
line([Do+Di Do+Lt-Dvi],[Hoi Hei],'Color','Green','LineStyle',':');    %virtual rays
 +
 
 +
%axis auto;
 
</pre>
 
</pre>
 +
 +
==Two Lens Results==
 +
 +
The following are the summarized results from the script.
  
 
<pre>
 
<pre>
 +
RESULTS
 
-----------------------------
 
-----------------------------
RESULTS:
+
Do = 48mm (object-lens distance for an in focus image)
Do = 46.5mm (object-lens distance for an in focus image)
+
Devi = 31.9mm (Eye-lens to real image distance for virtual image at 1 meter)
Lt = 134.4mm (optical tube length)
+
Lt = 137.5mm (optical tube length, Do + Devi)
Moptimal = 17.0354
+
Moptimal = 66.1 (converted to optical so you can compare against Mt for sanity check)
Total_Magnification = -17.1875
+
Mt = -68.9 (optical magnification)
 +
Ma = -17.2 (apparent magnification)
 +
Mp = -12.8 (perceptual magnification)
 +
 
 
</pre>
 
</pre>
  
 +
==Three Lenses?==
 +
[[Image:Three-Lens-Microscope-Prototype.jpg|thumb|right|Lens-Rail prototype of the three-lens version]]
 +
The two lens design does work, but suffers from a horrible defect in that most of the rays passing the first lens miss the tiny, distant ocular lens entirely. A third larger diameter and focal length 'field lens' can be added slightly more than one focal length away from the ocular to redirect rays back towards the ocular lens. Experiments with this additional third lens show great promise and image quality far above the simple two lens design.
  
 
2013 Jasper Nance KE7PHI
 
2013 Jasper Nance KE7PHI
 +
 +
<br />
 +
<br />
 +
<br />
 +
<br />
 +
<nowiki>*</nowiki> I don't believe in the word "its" unless referring to plural neuters.

Latest revision as of 17:45, 3 February 2014

Problem Statement

I needed a quick idea for summer camp educational workshop that was 'sciencey'. I remembered seeing this thingiverse link a while back and sharing it with a friend of mine who is an elementary school teacher. I wanted to do this as a workshop but also to understand the operation behind it as I am ashamed to say that my knowledge of optics is pretty bad...

I also wanted to understand the weak spots of the scope so that older kids could make a more advanced version that would be more capable or easier to use.

The Eye

I first used ray tracing theory to understand the real and virtual image locations. I was hung up very quickly on the fact that without an eye, a virtual image is pretty useless. The eye is an integral part of a microscope!!!

Luckily I found some information on the human eye. Some of the really important ones are

  • Visual acuity: 2 arcminutes
  • Distance of Nearest Distinct Vision: 25cm (between this and infinity are good places to place your final virtual image). This actually varies from about 5cm in youth to 1m in the elderly.
  • Visual acuity at the distance of nearest distinct vision: 145µm (wow, my eyes are amazing!!)

The Cameras

Walmart! 33mm focal length lenses. Full lens diameter not usable, need to stop down with a 3mm stop.

Terms

Optical magnification and apparent magnification and perceptual magnification (I totally made up that term) are very different things.

  • Optical Magnification - The ratio of object magnitude to image magnitude. Makes more tangible sense for a real image.
  • Apparent Magnification - Takes into account the fact a detector will see angles, therefore, distances from the detector matter. This is the ratio of the angular size of the object placed at area of nearest focus (nearest distinct vision in humans, different for a camera) to the angular size of the virtual image at *it's distance.
  • Perceptual magnification (not an official term) - Same as apparent but uses the eye to object distance such that if you could put the instrument up to one eye and see it without the instrument through the other eye, even if the object is too close to focus on. Personally, this one makes the most sense.

The 2-lens Matlab Model

The following script is a work in progress. It produces the following figure which could be a lot better but its what I have right now.

2Lens Microscope.png

clear;
clc;

%% define all constants
%all units are in meters
%eye relief assumed to be zero

Fo=.033; %objective focal length
Fe=.033; %eyepiece focal length
Pe = .003; %entrance pupil of 3mm (refine this to include mag effect)
Dndv = .25; %.25 is the distance of "nearest distinct vision" in humans
Dvi = 1; %distance to final virtual image (between inf and Dndv)
Aacuitydegrees = 2/60; %human visual foveal acuity is 2 arcminutes
Wgreen = 550e-9; %wavelength of green light is 550nm

%% Find image/object distances and magnigication of the objective lens
Di = 3.2*Fo; %random guess of 4 times (iterative solution)
%M=f/(f-Do) for distance to the object (thin lens & def of magnification)
%M = -Di/Do
%M = (f-Di)/f for distance to the image
Mo = (Fo-Di)/Fo;
Do = -Di/Mo;

%% Find iimage/object distances and magnigication of the eye lens
%Thin lens equation. Dndv is a virtual image, so it is negative. 
Devi = 1/(1/Fo - 1/(-Dvi)); 
%Total length = Obj<->image<->Eyepiece = Obj2image + Image2eyepiece
Lt=Di+Devi
Me = 1+Dvi/Fe; 

%% Find the optical and apparent magnification of the system
Mt = Mo*Me %Optical (virtual size to image size)

%Apparent (Different in what you can see naked eye vs magnified)
%The angular size at DNVD vs the object you see through the eyepice at Dvi
%This varies from person to person depending on DNDV
Ma = atand((Mt*.001)/Dvi)/atand(.001/Dndv)

%perceptual (difference in what you see without moving your head)
%The angualr size without optics vs with optics. 
%Note that you probably can't focus this close so the object would be blurry
%This does not vary between individuals
Mp = atand((Mt*.001)/Dvi)/atand(.001/(Do+Lt))


%% Find the resolution of the system (and the max practical magnification)
Theta = atand((0.5*Pe) / Do);
NA = sind(Theta);
Resolution =  Wgreen/(2*NA); %green light resolution
Dsep = 2*sind(Aacuitydegrees/2)*Dvi; %lowest resolveable distance at Dndv
Moptimal = (2*NA*Dsep)/Wgreen %550nm is green light

% Plot the system
%% Draw the lenses
Hoo = 1e-3; %height of the objective object
Hoi=Hoo*Mo; %height of the objective image
Hei=Hoi*Me; %height of eyepiece image

Hol = (9.525e-3)/2; %height of the objective lens (radius)
Hel = (9.525e-3)/2; %height of the eyepiece lens (radius)

clf;
hold on;
axis([-.02 .24 -.01 .006]);


line([-1 .3],[0 0]); %axis

line([Do Do],[-Hol Hol],'Color','Green'); %objective lens
plot([Do-Fo Do+Fo],[0 0],'*g'); %focal points

line([Do+Lt Do+Lt],[-Hel Hel],'Color','Red'); %eyepiece lens
plot([Lt+Do-Fe Lt+Do+Fe],[0 0],'*r'); %focal points


%% Draw the images
draw_arrow([0 0],[0 Hoo],0.5); %initial object
draw_arrow([Do+Di 0],[Do+Di Hoi],0.5); %objective image
draw_arrow([Do+Lt-Dvi 0],[Do+Lt-Dvi Hei],0.5); %objective image

%axis([-.08 .22 -.02 .0075]);

%% Draw the First lens rays
line([0 Do],[Hoo Hoo],'Color','Blue');
line([Do Do+Di],[Hoo Hoi],'Color','Green'); 

line([0 Do],[Hoo 0],'Color','Blue'); 
line([Do Do+Di],[0 Hoi],'Color','Green'); 

line([0 Do],[Hoo Hoi],'Color','Blue'); 
line([Do Do+Di],[Hoi Hoi],'Color','Green');  

%% Draw the Second lens rays
line([Do+Di Do+Lt],[Hoi Hoi],'Color','Green');  
line([Do+Lt Do+Lt+Fe],[Hoi 0],'Color','Red');   

line([Do+Di Do+Lt],[Hoi 0],'Color','Green');    

line([Do+Lt Do+Lt-Dvi],[Hoi Hei],'Color','Green','LineStyle',':');  %virtual rays
line([Do+Di Do+Lt-Dvi],[Hoi Hei],'Color','Green','LineStyle',':');    %virtual rays

%axis auto;

Two Lens Results

The following are the summarized results from the script.

RESULTS
-----------------------------
Do = 48mm (object-lens distance for an in focus image)
Devi = 31.9mm (Eye-lens to real image distance for virtual image at 1 meter)
Lt = 137.5mm (optical tube length, Do + Devi)
Moptimal = 66.1 (converted to optical so you can compare against Mt for sanity check)
Mt = -68.9 (optical magnification)
Ma = -17.2 (apparent magnification)
Mp = -12.8 (perceptual magnification)

Three Lenses?

Lens-Rail prototype of the three-lens version

The two lens design does work, but suffers from a horrible defect in that most of the rays passing the first lens miss the tiny, distant ocular lens entirely. A third larger diameter and focal length 'field lens' can be added slightly more than one focal length away from the ocular to redirect rays back towards the ocular lens. Experiments with this additional third lens show great promise and image quality far above the simple two lens design.

2013 Jasper Nance KE7PHI





* I don't believe in the word "its" unless referring to plural neuters.