How to Troubleshoot a Lens Focusing Issue with a DIY DSLR Lens

  • B
  • Thread starter S15
  • Start date
  • Tags
    Lens
  • #1
S15
5
2
Hello all
As an experiment I tried to make a lens for my dslr with plastic lens of a Kodak Funsaver disposable camera. The lens in this camera is convex-concave and is a 30 mm lens.
Problem is: My lens can only show items in focus if they are at about 1-2 cm away from it. Nothing past 2 cm will be focused. While the lens functioned in the disposable camera.
I have tested by looking through it and on a dslr. Same results.
What could be wrong? There are dozens of videos on youtube showing how the same lens and procedure has worked for others.

thanks in advance
ps The photo shows how these lenses are made.
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    8.1 KB · Views: 17
Last edited:
Science news on Phys.org
  • #2
Hi,
:welcome:

Sounds impossible: a 30 mm lens can not form a real image of anything within 30 mm.
You have the well-known $${1\over o}+{1\over i}={1\over f}$$(object distance, image distance, focal point distance)
to deal with.
So you want to check a few things (manually, with lens only):
focal distance
image distance
is the image upside down when e.g. o=i=2f?

##\ ##
 
  • Like
Likes S15
  • #3
Hello
Thanks for your reply and welcome, nice forum this is. I am sure I can learn a lot here.

This is what's puzzling me also. The only things that I can see clearly are very close to the lens (less than 5 cm) and they are NOT upside down which is another strange thing. I took physics in high school so I am familiar with the formula and also the ray of light rules and drawings. None the less this is how it is.

I tried reversing the lens, it did not help anything. I even mounted the lens on a movable cylinder so I can adjust the distance to the sensor. That did not work either. I do not think there is anything wrong with the lens itself since it came out of a woodworking camera. I am just puzzled. Can you suggest any tests or experiments?

I posted this question in a photography forum also. Few people said that they have made it and it worked and a few said that it did not work for them. They were all using the same type of cameras (Olympus micro 4/3), which have the same distance from lens to sensor.

I think I have to explain also that with this lens it is possible to take picture. It forms a picture but it is all blurry no matter at what distance, while in 5 cm everything is super sharp (and not upside down).
 
Last edited by a moderator:
  • #4
S15 said:
The only things that I can see clearly are very close to the lens (less than 5 cm)
This formulation worries me:
Are you looking through the lens ? In that case you are looking at an upright virtual image.

Or are you looking at a preview screen on the dslr ? In that case the electronics turn the image upright.

With the lens only (plus a light bulb or something as object and a piece of paper as screen) you should be able to confirm the 3 cm focal distance and a linear magnification of -1 at o = 2f. To check, you can do the same with the camera lens only.

The latter should not act as simple as a single thin lens, but as a thick lens.

[edit] Don't have a 4/3, but a 55 mm toy lens and ancient Pentax do the trick as expected ... and a grandfather magnifier can serve as a telephoto lens

##\ ##
 
Last edited:
  • Like
Likes S15
  • #5
I look through the lens and it is very sharp almost like a macro lens at 4-5 cm (and not reversed). I took photos with it at that distance also very sharp. I tried taking photos at objects at varying distances not everything is out of focus. These disposable cameras are supposed to be in focus from 1 meters to infinity. I have kept the lens in the same housing as the disposable camera so the diaphragm is the same (must be f10). This is a very interesting problem since it is so illogical.
I have been trying to find a diagram that shows passage of light through such a lens and see how objects at different distances should look (attached). I can't figure out anything from it.

BvU I would greatly appreciate if you can attach a diagram that shows how an arrow supposed to look like through such a lens at say 2 m distance.
 

Attachments

  • meniscus-lens-500x500.jpg
    meniscus-lens-500x500.jpg
    19.2 KB · Views: 19
  • #6
S15 said:
I look through the lens
Again ! With your eye ? In that case you are looking at an upright virtual image.
Question: does that link work for you and do you understand it ?

S15 said:
BvU I would greatly appreciate if you can attach a diagram that shows how an arrow supposed to look like through such a lens at say 2 m distance.
was answered:
BvU said:
With the lens only (plus a light bulb or something as object and a piece of paper as screen) you should be able to confirm the 3 cm focal distance and a linear magnification of -1 at o = 2f.

mutandi: set i = 30.45 mm. With f = 30 you get o = 2000. Magnification -30.15/2000 = -0.015
So a 200 mm arrow will yield an inverted real image of 3 mm on the sensor

You don't even have to do the calculation yourself :smile: :

1708899277930.png

##\ ##
 
  • Like
Likes S15
  • #7
S15 said:
I look through the lens and it is very sharp almost like a macro lens at 4-5 cm (and not reversed).
Looking through the lens with your eye will tell you little about it since you are adding an entirely separate optical system, that being your eye. What you see in-focus when looking through the lens with your eye will NOT be the same as what is brought to focus on the sensor/film.
S15 said:
I took photos with it at that distance also very sharp. I tried taking photos at objects at varying distances not everything is out of focus.
Was the lens attached directly to the DSLR without any other lenses in between the disposable lens and the sensor?
 
  • Like
Likes S15
  • #8
BuV I mentioned that this is a covex-concave lens which does not look like the lens in the link. It's been a while since my high school days but I think the two lenses are different. Thanks anyways.
Darkkit lens in its original housing with the original diaphragm (f10) is mounted in a camera body cap that I drill a hole (#16) to pass the housing through. There is nothing in between lens and sensor.
Here is Youtube video explaining how it is made :

WARNING: in case you want to duplicate this experiment. The flash capacitor in the disposable camera can give a very serious electric shock, resulting in burns. First make sure the flash is not charged and capacitor is empty. Do at your own risk.
 
  • #9
Okay, that's much more clear on what you're doing. If you're only getting objects within a few cm of the lens in focus, then that suggests that your spacing between the lens and the sensor is off. I'd suggest trying to incorporate some spacers in between the lens and the lens cap (which is what is holding this lens) to move the lens backwards towards the sensor. That should bring the distance into better focus.

You can also directly measure the distance you need by placing a piece of paper behind the lens, move the paper until something in the distance is in focus, and then measuring the distance between the lens and the paper. That distance should be the same distance you want between the lens and the camera sensor. This may or may not be useful, as you may not know how far it is between the lens attachment point and the sensor.
 
  • Like
Likes S15
  • #10
Thanks a million Drakkith (sorry for misspelling last time) I did as you suggested and now the lens is significantly improved. It is sharp and usable.
 
  • Like
Likes BvU and Drakkith
  • #11
IF you only have fixed spacers then you may need thinner ones to build up just the right thickness. A threaded system could be too fiddly. You might fix the lens and adjust the circuit board position with screws(?) just an idea.
 

1. Why is my lens not focusing properly?

There could be several reasons for this issue. It could be due to a dirty or damaged lens, incorrect camera settings, or a problem with the lens itself. It is important to troubleshoot each of these potential causes to determine the exact issue.

2. How can I clean my lens to improve focusing?

To clean your lens, use a microfiber cloth or lens cleaning solution specifically designed for camera lenses. Gently wipe the lens in a circular motion, being careful not to apply too much pressure. Avoid using harsh chemicals or rough materials, as they can damage the lens.

3. What camera settings can affect lens focusing?

The autofocus mode, focus points, and focus area can all impact the lens's ability to focus properly. Make sure the autofocus mode is set to the appropriate setting for your subject (such as single or continuous autofocus). Also, check that the focus points are on the subject you want to focus on and that the focus area is not too wide, as this can cause the lens to focus on the wrong area.

4. Can I fix a lens focusing issue myself?

It depends on the severity of the issue. If it is a minor issue, such as a dirty lens, you may be able to fix it yourself by cleaning the lens. However, if the issue is more complex, it is best to take your camera and lens to a professional for repair.

5. How can I prevent a lens focusing issue in the future?

To prevent lens focusing issues, make sure to properly clean and maintain your lens. Avoid exposing the lens to harsh environments or dropping it, as this can cause damage. Additionally, regularly check and update your camera's firmware to ensure it is working properly with your lens.

Similar threads

Replies
10
Views
1K
Replies
40
Views
3K
Replies
1
Views
1K
  • Astronomy and Astrophysics
7
Replies
226
Views
11K
Replies
32
Views
7K
Replies
4
Views
3K
  • Mechanical Engineering
Replies
3
Views
1K
Replies
7
Views
2K
Replies
13
Views
3K
Back
Top