Author Topic: Best lens for macro electronic components  (Read 6570 times)

0 Members and 1 Guest are viewing this topic.

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #25 on: August 10, 2022, 09:20:19 pm »
I hope this is not too far OT.  Way back in the 70's, I had a real Nikon F.  Then got a macro lens for it (can't give the exact one) and used it for documentation and comparing immunoprecipitin bands.  Used B&W negatives.  It was fantastic.  In fact, since it was my personal camera and lens, I rarely took that lens off even when that particular project was done.

I am not into $>5K equipment (2022 equivalent) anymore, but find the Z50 attractive.  It comes in a kit with a 16-50mm lens.  Any opinions on that lens' macro abilities.  The cheapest Z-macro seems to be the MC50/f2.8 at $650.

Edit: Spell check didn't like "immunoprecipitin."  That's what they are.

Nikon has a long history of supplying superb "kit" lenses, so wouldn't expect the newer Z type to be any different.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: jpanhalt

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 7942
  • Country: us
  • Retired, now restoring antique test equipment
Re: Best lens for macro electronic components
« Reply #26 on: August 10, 2022, 09:31:50 pm »
My personal camera used to document electronic assemblies is a medium-weight Pentax (minority taste) K-70 DSLR (crop format) with a Pentax 35 mm f/2.8 "HD DA Lim Macro" macro lens.
For higher resolution (when needed) I have a 50 mm f/2.8 macro lens that covers the full-frame format of my heavier Pentax K1-II DSLR.  I have an older 100 mm f/3.5 macro lens which is not quite as good, but allows me more room from the camera to the object.
Note that the depth-of-field under macro conditions is inherently shallower than what you may be used to with "normal" conditions.  A tripod to hold the camera is useful to allow smaller apertures (higher f number) if your object has depth to increase the depth-of-field.
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #27 on: August 10, 2022, 09:44:22 pm »
Here's some images of an early setup trying to get absolute uniform lighting across the chip which had solder balls. When all the strobes fired at once, neighbors could see the light leaking out of the house and thought we were creating lightning inside :)

Note the double light tents for diffusion and the blue boxes are for vibration isolation, found that the RubberMaid type acted as a LPF, and the optical table rides on Sorbathane feet to help with vibration.

Also added a couple of the custom lenses used.

Yes all this is a deep deep rabbit hole ::)

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: tom66, Zucca

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 7942
  • Country: us
  • Retired, now restoring antique test equipment
Re: Best lens for macro electronic components
« Reply #28 on: August 10, 2022, 09:49:27 pm »
I avoid vibration by using my concrete front porch, but you are quite right about the importance of lighting for macro use.
I intend to get one of those foldable light tents when I get back from my next road trip--have you tried them?
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #29 on: August 10, 2022, 10:02:38 pm »
This sits on a concrete slab house foundation which rug is on with a foam pad. At the levels we were working we could "see" a door closing, car driving down street, people walking round, or airplane flying over!!

Those tents shown are foldable types, one small and one large. They work well but "eat" lots of light!! Forget usual Speedlights for lighting, we melted a few, get mains powered strobes with quick recycle time.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: mnementh

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4525
  • Country: au
    • send complaints here
Re: Best lens for macro electronic components
« Reply #30 on: August 10, 2022, 10:32:51 pm »
A couple important things to consider when working at macro levels, the subject to lens distance is important because the further the lens front surface the better because of getting "quality" lighting around the subject. Others are vignetting and image edge distortion and focus.
Hitting all the key points! One option (not mentioned yet?) for occasional use, reverse mount a cheap manual focus (+manual iris all the better) lens. Yes it will have tiny working distance, lots of distortion, and a curved focal plane, but it can do impressive magnification on the cheap.
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #31 on: August 10, 2022, 10:40:52 pm »
Yes, very effective technique!! Another similar technique that uses "regular" lens to achieve macro levels is lens stacking. Here a shorter Focal Length lens is mounted on the front of a longer FL lens, the effective magnification is the FL ratio.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline ZuccaTopic starter

  • Supporter
  • ****
  • Posts: 4306
  • Country: it
  • EE meid in Itali
Re: Best lens for macro electronic components
« Reply #32 on: August 11, 2022, 02:03:23 am »
mawyatt your setup reminds me that there is always a bigger fish out there.

Let me collect the jaw on the floor now...
Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 

Online magic

  • Super Contributor
  • ***
  • Posts: 6761
  • Country: pl
Re: Best lens for macro electronic components
« Reply #33 on: August 11, 2022, 05:22:15 am »
I failed to mention that as a retired pathologist I have several microscopes.  I made an adapter for my CoolPix 990  to my binocular/dissecting Nikon microscope.  It works too.  I want something simpler, uses modern memory, takes less space, and has more uses. 60 years of junk accumulated over a career takes up a lot of space.  I am trying to cut back to save my hiers the pain.
I haven't tried it, but I'm skeptical regarding the ability of APS/FF cameras to pick up eyepiece images like a compact. Even some larger compacts vignette.

The alternative is dedicated photographic eyepieces for the scope which (AFAIK) mount on the camera in place of the lens or direct projection of primary image onto the sensor. The latter requires fully color-corrected objectives, in addition to suitable mechanical adapters.

I am not into $>5K equipment (2022 equivalent) anymore, but find the Z50 attractive.  It comes in a kit with a 16-50mm lens.  Any opinions on that lens' macro abilities.  The cheapest Z-macro seems to be the MC50/f2.8 at $650.
Well, yes, Z is a new system ::) There should be an option to adapt Nikon DSRL lenses onto it that you may consider.

Regarding the kit, I'm sure there are reviews out there and there are official specs. Nikon says 20cm minimum focusing distance, and likely that's at 16mm and 50mm is worse. FWIW, photographyblog.com says maximum magnification is 0.2x.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 6761
  • Country: pl
Re: Best lens for macro electronic components
« Reply #34 on: August 11, 2022, 05:44:53 am »
Yes, very effective technique!! Another similar technique that uses "regular" lens to achieve macro levels is lens stacking. Here a shorter Focal Length lens is mounted on the front of a longer FL lens, the effective magnification is the FL ratio.
I forgot to mention that this principle also applies to those closeup addon lenses like Raynox. If the main lens is focused at infinity, magnification is exactly the FL ratio. If the main lens can focus closer, it may be somewhat more but usually not much more.

It follows that even with the shorter 125mm Raynox, it takes at least some 100mm for unity magnification.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26896
  • Country: nl
    • NCT Developments
Re: Best lens for macro electronic components
« Reply #35 on: August 11, 2022, 09:15:57 am »
Ofcourse you can buy all kinds of fancy cameras and lenses if photography is your hobby and for higher magnifications you can't go around a good lense. But before spending money, check your smartphone. Much to my surprise my Samsung phone (not the cheapest model though) works surprisingly well where it comes to taking pictures of electronics. Sometimes I even use it as a magnifier. As has been said: lighting is 90% of taking a good picture.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 
The following users thanked this post: thm_w

Offline olkipukki

  • Frequent Contributor
  • **
  • Posts: 790
  • Country: 00
Re: Best lens for macro electronic components
« Reply #36 on: August 11, 2022, 10:37:19 am »
Yes I know the right light is the key to success, but I am now shopping for a new macro lens and before I pull the trigger I would like to know what you guys are using.

I'm using AF-S VR Micro-Nikkor 105mm f/2.8G IF-ED* with Helicon Remote** and Focus***

In general, a change camera body/brand is very expensive move, so I would probably end up buying D850 eventually at a right time rather than switching to a mirrorless one.

* https://imaging.nikon.com/lineup/lens/f-mount/specialpurpose/micro/af-s_vr_micro-nikkor_105mmf_28_if/
** https://www.heliconsoft.com/heliconsoft-products/helicon-remote/
*** https://www.heliconsoft.com/heliconsoft-products/helicon-focus/
 
The following users thanked this post: Zucca

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #37 on: August 11, 2022, 12:45:02 pm »
mawyatt your setup reminds me that there is always a bigger fish out there.

Let me collect the jaw on the floor now...

The setup has evolved into a smaller area (3m by 2m by 3m), but still rather complex with up to 8 strobes on C Stands, single light tent, and a large foam cup diffuser (these white foam cups work very well as diffusers and don't introduce any color shifts).

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #38 on: August 11, 2022, 12:54:44 pm »
Ofcourse you can buy all kinds of fancy cameras and lenses if photography is your hobby and for higher magnifications you can't go around a good lense. But before spending money, check your smartphone. Much to my surprise my Samsung phone (not the cheapest model though) works surprisingly well where it comes to taking pictures of electronics. Sometimes I even use it as a magnifier. As has been said: lighting is 90% of taking a good picture.

In our case this evolution of chip imaging helped us win chip development programs. Most images were of chips we developed (many still proprietary) and helped win a $50M chip development that had ~1 billion devices (not a memory chip).

So more of a challenge rather than a hobby that we invested ~$35K (mostly out of pocket), and the ROI was quite good indeed!!

Best, 
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 
The following users thanked this post: mnementh

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #39 on: August 11, 2022, 01:22:01 pm »

Well, yes, Z is a new system ::) There should be an option to adapt Nikon DSRL lenses onto it that you may consider.

Regarding the kit, I'm sure there are reviews out there and there are official specs. Nikon says 20cm minimum focusing distance, and likely that's at 16mm and 50mm is worse. FWIW, photographyblog.com says maximum magnification is 0.2x.

The new Nikon Z mount has an adapter that allows older F mount lens to work with the Z camera body. Newer F mount lens have AF support, and maybe VR support. Some 3rd party F mount lenses may not work tho, but still can be used manually. Optically the Z mount has many advantages over the older F mount, like larger opening and positioning lens back end closer to sensor since they don't need to clear the flip-up mirror of the DSLR.

Regarding the Raynox, yes they can be thought of as stacked lens with 125mm and 208mm FL and likely work well with a typical 105mm lens. Speaking of 105mm, we found a copy of the famous Carl Zeiss 105mm optical design that is superb, it's all manual like the original, but the fundamental optical characteristics are outstanding. They go by Rokinon and other names. If you ever get into stacking with infinite objectives we found some "jewels in the rough" tube lenses on eBay that are very old types and cheap.

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline ZuccaTopic starter

  • Supporter
  • ****
  • Posts: 4306
  • Country: it
  • EE meid in Itali
« Last Edit: August 11, 2022, 02:12:51 pm by Zucca »
Can't know what you don't love. St. Augustine
Can't love what you don't know. Zucca
 

Offline mawyatt

  • Super Contributor
  • ***
  • Posts: 3244
  • Country: us
Re: Best lens for macro electronic components
« Reply #41 on: August 11, 2022, 03:34:54 pm »
Zerene is another stacking program, they have a nice tutorial on such.

http://zerenesystems.com/cms/stacker

The author is also associated with this site, where you can find all sorts of details on image stacking, lenses, cameras and equipment.

https://www.photomacrography.net/index.htm

Best,
Curiosity killed the cat, also depleted my wallet!
~Wyatt Labs by Mike~
 

Offline armandine2

  • Frequent Contributor
  • **
  • Posts: 597
  • Country: gb
Re: Best lens for macro electronic components
« Reply #42 on: February 12, 2024, 08:52:03 am »
I have just ordered myself a Laowa 65mm F2.8 macro for my Fuji mirrorless camera - so I'm getting into this focus bracketing and stacking concept.

The X-Pro 2 I have does not have the automatic focus bracketing mode - will see how the Laowa goes with it soon  :palm:

[edited to add a YouTube link]

« Last Edit: February 12, 2024, 09:16:43 am by armandine2 »
Funny, the things you have the hardest time parting with are the things you need the least - Bob Dylan
 

Offline Conrad Hoffman

  • Super Contributor
  • ***
  • Posts: 1930
  • Country: us
    • The Messy Basement
Re: Best lens for macro electronic components
« Reply #43 on: February 13, 2024, 05:51:14 pm »
The Nikon Z 105 mm MC lens is great but only goes to 1:1. Within its range it may be one of the best lenses ever built. The newer Z lenses are designed for the large mount and usually have large rear elements to properly direct rays to the sensor. Though you can buy them, extension tubes aren't an optimal solution because the lenses were designed for maximum performance a specific distance from the sensor. Not sure if tubes or aux lenses are the better solution. I usually go to home-machined adapters and specialty lenses to go close. That would be microscope objectives, reversed enlarging lenses or something like the older Nikon Measuring Microscope Objectives. Not a Canon guy so can't make recommendations on that, but there's no shortage of good choices.

IMO, focus stacking is todays secret weapon and has raised the image quality bar by a lot. I use the Affinity photo editor, which has a good stacking feature built in. It's inexpensive and does about everything a person would want to do.
 

Offline metebalci

  • Frequent Contributor
  • **
  • Posts: 451
  • Country: ch
Re: Best lens for macro electronic components
« Reply #44 on: February 13, 2024, 06:47:46 pm »
Any macro lens from a reputable manufacturer would work. I have Sony, Fuji and a large format Nikon and all are great. The actual complexity is to do focus stacking (with automated rails or in camera features), using correct parameters for focus stacking and setting up lights. >=5x magnification is also possible with a custom setup and microscopy lenses but that would probably be unnecessary for electronic components (if not photographing the inside of the components). Another alternative is to use a stereo microscope but focus stacking is not simple (automated focusing stereo microscope is quite expensive). Another very different alternative is to use a view camera and tilt the focus plane to PCB and have a single photo where only the PCB will be in focus.
 

Offline armandine2

  • Frequent Contributor
  • **
  • Posts: 597
  • Country: gb
Re: Best lens for macro electronic components
« Reply #45 on: February 13, 2024, 08:39:12 pm »
Any macro lens from a reputable manufacturer would work.

would ? or will

just spent an hour getting my first picture - its Grimm  :-DD but help is out there

... turns out that there are lots of settings on modern cameras -

Menu; Set-up; Button/Dial Setting; shoot without lens

...you are on a learning curve  :palm:
Funny, the things you have the hardest time parting with are the things you need the least - Bob Dylan
 

Offline EPAIII

  • Super Contributor
  • ***
  • Posts: 1057
  • Country: us
Re: Best lens for macro electronic components
« Reply #46 on: February 14, 2024, 04:28:54 am »
A little bit of optics 101.

A macro or close up lens is simply a lens that is at the distance between the subject being photographed and the image plane that provides the desired magnification.

That statement is deliberately vague and here is why. Any lens that is effectively at twice it's focal length from both the subject and the image plane will produce a 1 to 1 sized image. Or, in other words, an actual sized image; a 1X image. So, for example, a lens with a 100mm focal length that is placed (it's effective optical location is placed) 200 mm from the subject and 200 mm from the image plane will produce a 1X image. And if it's location is shifted closer to one of those (subject or image plane) then the other will be in focus at a greater distance. This shifting ends when the lens is at it's focal length from one which brings the focus point for the other to infinity. If you are curious the mathematical relationship for this is:

1/f = (1/Ds) + (1/Dp)
where
f = the focal length
Ds = the distance to the subject
Dp = the distance to the focal plane (image sensor)

What this means is, ANY positive power lens can be used as a macro lens. Any lens what so ever: from a cheap plastic magnifier to the largest telescope objective lens in the world. And it applies to curved mirrors too.

What does this mean in relation to the subject of this thread?

It means that EVERY lens that you presently have in your camera bag can be used as a macro lens. All you need to do is MOUNT THEM somewhat further from the focal plane (image sensor) than their mounting flange presently places them. And this can be done in a number of ways.

One way would be a simple mechanical tube with NO optics in it, just air. Put a male and a female flange on the two ends and you are in business. The length of the tube mattes. Lets say you have that 100 mm fl lens and it has a focus range that allows it to focus on subjects from 1 m (1000 mm) to infinity. The above equation tells us that it would be at 111.11 mm from the focal plane when focused on that subject at the 1 m distance. And the actual image to object size ratio would be about 1/9 or 0.111. Then if we subtract the 100 mm focal length which is where it would be when focused for infinity, we see that it has a mechanical travel range of 11.11 mm when being focused. So adding an 11 mm long extension tube would extend that mechanical travel range to 11 mm to 22.11mm which overlaps just a bit with the range without the extension tube. But with that extension tube that same 100 mm lens could then be focused to 122.11 mm from the image plane which would give us a distance of only 552.3 mm to the subject and the actual image to object size ratio would have increased to 0.221. Comparing that to the above ratio without the extension tube we see that the image size on the sensor has increased by about a factor of 2.

In other words, a simple extension tube that is about equal to the focus distance that was built into the lens has DOUBLED the size of the image we get.

And increasing the length of that simple tube would continue to increase the size of the image.

This is a much better way of increasing the image size/magnification than the stacking of lenses described in a post above. And you don't need to do the math that I used to obtain the example with a 100 mm lens. You can just adjust the focus of the lens to it's two extremes (infinity and the closest it will do) and measure how much the lens moves. That would provide a starting length for an extension tube that would take over where the lens presently stops. Then a second tube twice as long, then three times as long, and four times, etc. until you reach the magnification desired.

One down side of this is that lenses are optimized for a particular distance from the subject or a particular object to image size ratio (same things). When they are used at different distances/magnifications they may not perform as well. Once you reach the point of extending a lens by it's focal length, it may and probably will perform better if it is physically reversed to have it's camera end pointed at the subject and it's subject end pointed to the camera. This would mean mounting it to the extension tube with a filter holding thread. I would suggest that you can experiment with the lenses that you presently have before spending money on new and probably expensive ones just to have the macro capability. Some of your present lenses may provide excellent macro photos.

Another down side is the effective F opening of the lens will increase as it is moved further and further from the focal plane/camera. At twice it's focal length the effective F number will be twice the marked numbers. Of course, more light can compensate for this. And it may help keep the image sharper than it would be at the same F number.

Another way of extending a lens for macro shots is to use a bellows unit. I have one in a cabinet from the days of 35 mm film photography. It worked quite well and provided a large range of magnifications. Be wary of cheap bellows as they may not support the weight of some cameras or lenses well.
Paul A.  -   SE Texas
And if you look REAL close at an analog signal,
You will find that it has discrete steps.
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2862
  • Country: 00
Re: Best lens for macro electronic components
« Reply #47 on: February 14, 2024, 12:09:41 pm »
Many modern objectives have electronic aperture control. Without such control signals, the aperture is fully closed. This adds complications when using bellows or reversing. I'm sure there are solutions, but it might be easier to do with an older objective with a physical aperture ring.

Offline metebalci

  • Frequent Contributor
  • **
  • Posts: 451
  • Country: ch
Re: Best lens for macro electronic components
« Reply #48 on: February 14, 2024, 01:52:50 pm »
I think using a bellow is too complicated for just ~1x magnification. A macro lens of the camera brand works very well. Using a bellow is another level, and I dont think just a bellow is a good idea. If one is interested in advanced techniques, I recommend something like cambo actus which makes it possible to use a digital camera sensor with various types of lenses, with a below, and with tilt, shift and swing mechanisms, effectively creating a view camera. Naturally, it is a serious investment.

About the lenses, the math is like this but a lens is not just a single optical element and it is optimized for a certain use. So a macro lens is designed and measured for being used at ~1x magnification. It might function well in other cases, even might be better at some magnification for some particular case but this would be a side effect, same can be said for the use of a non-macro lens as a macro lens.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14180
  • Country: de
Re: Best lens for macro electronic components
« Reply #49 on: February 14, 2024, 05:35:40 pm »
Extending the distance from the lens to the sensor can work, but with modern cameras this is also not that easy. Such extensions rings that also transfer the electronic signals are available, but they are not cheap. Even more tricky are systems that have some mechanical control from the camera body to the lense.

The add on lenses are often the cheapest way and the lenses can fit to several cameras via the filter threads. They are not perfect but often good enough to see things. A main downside are often chromatic errors in the from of red / blue fringes. Not very estetic, but less of a problem for reading lables or checking solder joints.
For my first macro pictures I actually used the front lense of an old binocular in front of a compact digital camera. By conincidence it was a near perfect mechanical match.

Anyway a tricky part is getting the focus right. Unless one needs the absolute best resolution (near the diffraction limit) one can often use a relatively small apperture to get at least a little more depth of field. For this one tends to need quite some light.  E.g. I often use a small aperture like F/16 (effective for exposure, actual F/8 geometrical for 1:1). Unless one has a special tilt system the sharp part of the picture is parallel to the sensor. So it helps to take the picture from the right direction - sometimes just cropping half the picture to get a little extra angle.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf