Build Your Own Lenses

For you (by johnnyoptic)Nikon, Canon, Leica, Pentax, Sigma, Tokina, and a host of other lens makers are all striving to bring you the sharpest lenses with all optical aberrations reduced to the minimum. That's too bad! Because with lenses, as with life, sometimes it's the imperfections that make things interesting.

The image on the left was shot with the imperfect optics of a homemade lens. Exploring the soft, dreamy world of DIY camera lenses in surprisingly easy. Let me show you.

There are two components necessary for a homemade camera lens suitable for use on a SLR or DSLR: the optics (to focus the light) and the mechanics (to hold the optics in place and hopefully provide a method of adjusting the focus and aperture).

The Optics

Any lens that focuses light (a double convex, plano convex, or positive meniscus) can theoretically be used as a camera lens. Magnifying glasses, lenses from binoculars, close-up "filters," reading glasses, are all potential camera lenses. A good source for purchasing lenses is Surplus Shed, where they typically cost $4.00 to $10.00. Or for a limited selection (mostly from science class materials) check Amazon.

Notice that I used the word theoretically above. There are limitations. Every lens has its focal length. When a lens is used to focus parallel rays of light, the focal length is the distance from the lens to the point of focus. This means that for a single element camera lens, the focal length determines the distance the lens needs to be from the film or sensor. This is very important for constructing your lens and it puts some limitations on the lenses that are useful. Assuming you want to use your lens with a SLR or DSLR, the focal length can be no shorter than about 45 mm because that is the approximate distance from the lens mount to the film/sensor plane. A lens with focal length shorter than 45 mm would have to be mounted inside the camera to reach proper focus on distant objects. That's not going to work. At the other extreme, a lens with a focal length of more than about 400 mm starts to get very awkward.

So unless you already know the focal length of your lens, you should measure it. You'll need a piece of paper, a ruler, and a distant light source such as a lamp across the room (do NOT use the sun for this). Project the light from the lamp through the lens and onto the paper. Adjust the distance between the lens and the paper until the image is at its sharpest. Now just measure the distance from the lens to the image on the paper. This is the focal length of the lens, or close to it. Ideally, the light source should be an infinite distance away, but I find that a light across the room gives me a pretty good approximation. (If you insist on precision, then also measure the distance from the object to the lens and use the formula below)

measuring focal length (by johnnyoptic)

Depending on how we address the mechanics of the lens, focal lengths in the range of 60 - 200 mm are good candidates for DIY camera lenses.

Starting Simple

Let's look at some examples, including different ways to address the mechanics.

The first lens uses a positive meniscus from Surplus Shed with an advertised focal length of 65 mm and a diameter of 47 mm (price: $6). As it turned out, Surplus Shed's measurement of the focal length is a bit off. The actual focal length of this lens turns out to be about 45 mm, so it will not quite focus to infinity. (The flange-to-focal-plane distance of a Nikon is 46.5 mm.) Interestingly, at a diameter of 47 mm, this lens exactly fits in a Nikon lens mount without falling into the camera. And that's how I use it: by just holding it against the mount with my fingers as I take the shot. It's not very practical. On the plus side, a 45 mm focal length meant that this lens is theoretically faster than f/ 1.0. And so, I call this lens the antipinhole.

the antipinhole

First Results: Optical Aberrations

With the lens resting in the lens mount, the focus is fixed at about 10 feet. The images are about a half a stop brighter than my Nikkor 50 mm at f/ 1.4 so I don't think it's quite f/ 1.0 but it is measurably faster than f/ 1.4. But the big surprise is low contrast and very large halos around any bright objects. And unlike what you might expect from a lens at about f/ 1.2, there is no thin plane of focus that snaps in. Instead, there seems to be a very broad area from about 7 feet to 14 feet that has nearly the same degree of focus. Of course, the low contrast, halos, and soft focus can all be put to good use as long as you are not looking for the crisp images produced by commercial lenses.

home

All of the distortions I mentioned above can be largely explained by the spherical aberration in this lens. Parallel rays of light passing through the lens near the center come to focus as expected at the focal length. However, light rays passing through the lens toward the edge focus at a different distance.

spherical aberration in the antipinhole

Spherical aberration is the largest cause of distortion on this lens but it is not the only cause. Color fringing (noticeable as blue and/or red fringes at high contrast transitions between black and white) from chromatic aberration is also present, and is caused by the fact that for a lens like this the focal length for short wavelengths (blue) is different than for long wavelengths (red).

Using An Achromat To Address Chromatic Aberration

Chromatic aberration can be significantly reduced by using achromatic lenses, which are made by combining a convex lens made of crown glass with a concave lens made of flint glass. Fortunately, inexpensive achromats are readily available. Binocular objectives are one source. Another is (you guessed it) Surplus Shed, where they sell a wide range of achromats including one with a focal length of 75 mm and a diameter of 53.5 mm.

Once again, spherical aberration resulted in soft, "glowing" images.

as thick as pea soup

Mechanics: Connection To The Camera

The mechanics involved in making lenses is often more challenging than the optics. But you have lots of options. One possibility is to go for a reusable, interchangeable-parts approach. Old style macro extension tubes, such as a set of Nikon K rings, provides a shortcut. One side of the K2 ring mounts to the camera and the other side has a thread that fits 52 mm filters. This 52 mm thread is a convenient standard to use for quickly connecting multiple lenses, spacers, focusers, and diaphragms into a working lens (and then disassembling it for the next experiment). Here is a 75 mm lens along with some aperture rings. Note that the achromat was friction mounted (thanks to a layer of masking tape) to three 58 mm rings that were recycled from some junk filters. A 52 to 58 mm step up ring allows this lens to fit my 52 mm standard.

homemade 75 mm lens and paper diaphragms

Adjustable Focus

Although functional, the preceding lens still doesn't have a mechanism for adjustable focus. Let's look at a few approaches to solve that problem. The first approach is to "recycle" the helical focuser from an old lens. Mounts and filter threads can be attached with Super Glue if necessary. This lens also includes an old iris diaphragm I found for $3 at a local surplus shop. Attaching rings from junk filters to both the focuser and the diaphragm will allow you to use them in an interchangeable system. This lens uses a 191 mm achromat ($9 from SurplusShed).

homemade 191 mm lens

Another approach is to use two tubes with slightly different diameters to build a sliding (telescoping) focuser. Cardboard mailing tubes or PVC pipes are possible sources for the sliding tubes. Sticky-back felt, from your local arts and crafts store, can be used to create a nice friction fit between the two tubes. Be sure to leave a lengthwise gap in the felt to allow air to escape as you are focusing. The felt can also be used to line the inside of the tubes to reduce reflected light inside your lens. Here's an example that uses this approach for a rather improbable 400 mm lens.

Yes, I have a big nose

If you are lucky enough to have access to bellows, you have an ideal focuser for homemade lenses.

Homemade lens: 115mm f2.8

Of course, you can also find more creative ways to mount your optics, such as using a 2 inch steel electrical conduit with a screw-in coupler to make a functioning focuser.

Lens of Steel

Results

Soft, Misty, Dreamy ... you choose the adjective.

Baby, It's Cold Outside

A good place to be a bee (by johnnyoptic)

Good Morning Sunshine

Coming up in part two of this series, I'll show you how you can get control over the glow from the spherical aberration of these simple lenses to produce wonderful soft focus effects or even sharp macro and telephoto images.

Click here for the next part: Homemade Lenses: What's All The Fuzz About?

John Swierzbin is a photographer obsessed with DIY lenses, if you wish to learn more about them. please visit the Homemade Lens Group as well as his photostream both on flickr. There, you'll be able to see many more examples of homemade lenses and the images they produce.

Get the DIYP greatness via RSS, newsletter and Twitter
Connect with the community: Facebook Page, Discussions
Share Ideas, Setups, Images and Projects on DIYP's Flickr, visit Readers Photos

Comments

OMG, I love the true DIY

OMG, I love the true DIY spirit in this post! Keep it coming, Sir! Please.

kits

  • May 18, 2010
  • kkjensen

'someone' <*nudge, wink*> should prepare and sell kits!

Re kits

  • May 18, 2010
  • udijw

Hehe, thanks.

It's first dibs for John Swierzbin, though.

DIY Lenses

Ahhh! Excelent post!

 

Funnily enouigh...I was thinking about doing exactly this a week ago after seeing an article that linked to the surplus shed.

i will deffinetly be trying this soon.

Johnny Optic is the man!

  • May 18, 2010
  • Desceigntist

Johnny Optic is the man!

Interesting

Very interesting; thanks.

Oh no!

  • May 19, 2010
  • iamunique127

Oh no, another project for me to pursue.

I'm just having too much fun!!

Inexpensive Fish Eye Lens

  • May 19, 2010
  • Anonymous

This is great stuff I will have to try it.

Lately I have been playing around with a peephole for a door. Mounted on a piece of plastic that just fits inside the camera lenes filter threads. The first one I tried had plastic lenses and produced images similar to what you have here but circular and looking much like a fish eye lens. I went and bought a better peephole with glass lenses and the results are surprisingly good. Almost on par with Lens Babies fish eye optics.

amazing post! thank you for

amazing post! thank you for your work!

Beautiful, but baffling

  • July 28, 2010
  • Anonymous

Beautiful images crafted with the spirit of autonomy. I admire your work, Mr. Swierzbin. 

But I'm also horribly confused as to the exact labor that goes into assembling these lenses. I'm a novice photographer becoming increasingly interested in DIY approaches/aesthetics, but I stare obliviously at the images of your constructed lenses. I see the material and read your generalized how-to, but I don't even know what some of these parts are or the requirements they demand. How does the tube adjusting control focus on your 400mm lens? How do you know what rings and filters to put on? I'd love to see a video of a lens construction.

Maybe I'm just ignorant, but I've researched all those parts and still have trouble piecing them together. I can't wait to find out though!

How would you attach the

  • August 3, 2010
  • Kenny

How would you attach the glass lens to the rest of the parts to be able to put it on the camera? I don't have anything to work around yet; I'm just interested in trying this eventually.

RE: Beautiful, but baffling

  • August 10, 2010
  • John Swierzbin (AKA johnnyoptic)

Thanks for the compliment.  I think the most important thing is to not be afraid to experiment.

To begin, don't worry about doing any construction at all.  Just find a magnifying glass and hold it in front of a camera with the lens removed.  Adjust the distance until you get a focused image.  It may not be the most convenient to use, but there's nothing to stop you from using the lens this way.  Then, using the skills we all learned (or tried to learn) in elementary school arts and crafts (construction paper, rulers, scissors, glue) you can piece together something to hold the lens in place.  Add a drilled out body cap as a cheap way to mount your homemade lens, and you should be in business.

Your point about a video is a good one.  I may have to do that.

Until then, I suggest that you check in to the Homemade Lens Group on flickr.  You can post specific questions about your projects and people will help walk you through the answers. 


This is easily accomplished

  • August 10, 2010
  • garrett

This is easily accomplished if you just fog up your lens.

 

...

Linda Evans

  • January 18, 2011
  • ehsmeng

It looks like the filter they used on the vintage soap "Dynasty" to make Linda Evans look pre-retired.

I am looking to make my own

  • January 31, 2011
  • Fiona Falconer

I am looking to make my own objective to be able to take retinal photos with my DSLR. I will be using two ophthalmic examination lenses with great optics, but I wonder if anyone has any ideas for how to house them together since they differ a bit in diameter. One is about 45mm (will be fitted closest to the sensor plane) while the other is only about 26mm.

I am envisioning some kind of rubber fitting between the two. I will be using a fixed focus, a sort of microscope setup optically, so the tube length between the lenses is not of such great importance, but I would like for it to be at least slightly adjustable.

Any insight is greatly appreciated! 

 

Re: I am looking to make my own

  • January 31, 2011
  • John Swierzbin (AKA johnnyoptic)

Fiona,  

This sounds like a very interesting project.  The first thing I suggest you do, if you haven't already, is to test the two lens setup with your camera in order to get the approximate lens spacing that is required for the magnification and focus distance that you need.  The test may be a bit clumsy because you will probably need to hand hold the lenses.  But this is a very important step to give you a sense of final lens spacing, and even to tell you if this combination will work at all.  The test will also give you a sense of exactly how sensitive the whole system is to slight movements of any of the components.  

Regarding the physical construction, one technique that I rely heavily on is to attach the lenses to the metal rings from photographic filters.  Filters come in various standard sizes with standardized threads.  In most cases the glass is easily removed.  Adapters are available to attach one size to another.  Spacers and extension tubes are available in these same standard threads.  And finally, adapters are available (or can be very easily constructed) to attach to the lens mount for any camera.  This also opens up the possibility to use standard bellows.

I generally attach the filter rings to my lenses using a strong adhesive.  You can choose one that has your desired degree of permanence.  I've had good luck with both epoxy and superglue.  

At the risk of being to repetitive, I'd like to direct you to the Homemade Lens Group on flickr.  There's an active group of photographer / lens-makers who can help you will all sorts of ideas.  

 

Thanks for your reply! I am

  • January 31, 2011
  • Fiona Falconer

Thanks for your reply!

I am quite familiar with these lenses and their optics, so I will be photographing in the focal plane of the second lens (about 1cm from the eye), the tube length is thus less important, since the focal plane of the first lens will place the image on the sensor plane. The light rays between the lenses will be parallel, like a microscope. I would like slight adjustability to allow for different refractive errors of the patients and/or inability to photograph at exactly 11mm from the eye.

If I were to remove the glass from a filter, and wanted to install my ophthalmic lens in the rim, how would i compensate for the difference in diameter? What material should I mount the smaller lens in so that it will fit into the filter ring? Or maybe there are filter rings in a diameter of about 26mm?

This is all very exciting to me, as I hope to be able to use the camera in the field. There are just certain aspects of the logistics which are unclear. Looks like I will have to pay a visit to the Homemade Lens Group!

Thanks again!

 

 

Lens Supplier in UK?

  • March 2, 2011
  • Jack

Really interesting post, I'd love to try domething like this. Busy for now trying to educate myself on the optical/mathmatical principles! I am however finding it hard to find a shop similar to the 'Surplus Shed' here in the UK. Can you or any fellow readers recommend anywhere? Otherwise I may just have to bite the international shipping bullet! Thanks in advance for any responses.

Re: Lens Supplier in the UK

  • March 2, 2011
  • John Swierzbin (AKA johnnyoptic)

Jack,

This isn't the first time I've heard this complaint about the lack of a supplier of cheap optical components in Europe.  My European lens-making friends seem to mostly gather their components from discarded optical equipment.  Positive lenses are easy to find.  Magnifiers are an obvious cheap source, as are macro "filters."  Negative lenses are more difficult.  The front element of wide angle lenses are one source.  The front element of those cheap "wide angle converters" are another source.  

Or maybe someone in the UK knows of a local shop.

Wow, what an amazing and

Wow, what an amazing and intriguing idea for a do it yourself project! While I'm not sure if I'm ready to try doing such complex engineering myself it's inspiring to entertain the possibilities.

Regards,

Frank

http://www.clarivu.com/

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions. It is not case sensitive
3 + 5 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.