All posts by Per Magnusson

Macro Photography Using a Macro Coupler

Sometimes I want to take closeup photos of printed circuit boards to e.g. document broken or incorrectly assembled components. Given the small size of many components (like 0402 or even 0201), a high degree of magnification is often required. I have a 150 mm Sigma macro lens that can do 1:1 magnification from subject to detector, but this is not always good enough, so I was looking for another solution, preferably going up to a magnification of about 6:1 so that a 4 mm subject would fill up the view of my Nikon D300. Also, I did not want to spend too much on new equipment as this is something I do not do very often.

It turns out that there are a number of ways to make existing lenses more suited for macro photography, namely:

  • extension tubes (reduces minimum focus distance)
  • macro bellows (essentially long and adjustable extension tubes)
  • close-up lenses to put on the front of existing non-macro lenses
  • reversing rings to mount lenses backwards
  • macro couplers to mount one lens backwards in front of another

I did some quick calculations (using information from this page) and figured out that extension tubes or bellows would not give me much of additional magnification. They need to be very long to have much of an effect on long lenses and with shorter lenses the focus distance for large magnification becomes very small.

According to a formula on https://en.wikipedia.org/wiki/Close-up_filter, a close-up lens (or close-up filter as it is also called) needs to have a power of 20 diopters to give a 6:1 magnification on my 70-300 mm lens and 33 diopters on my 150 mm macro lens. The problem is that such strong close-up lenses seem to be rare and if they exist they are probably not very sharp.

To get magnification from mounting a single lens in reverse, the focal length needs to be short. From a 50 mm lens, the expected magnification is probably only about 1:1, so this did also not seem like a very good option.

The solution I opted for was instead to use a macro coupler to mount my 50 mm f/1.4 lens backwards in front of my 70-300 mm zoom. A 50 mm lens has a power measured in diopters of 1/(0.050 m) = 20 diopters, so it will act as a close-up lens that powerful, giving a magnification at the 300 mm setting of about (300/50):1 or 6:1.

Since the 50 mm lens has a 58 mm thread and the zoom has a 67 mm thread, I needed a step-up ring from 58 to 67 mm and a 67-67 mm macro coupler ring. I found inexpensive ones at a local Internet shop, http://kaffebrus.com/step-up-ringar-121.html and http://kaffebrus.com/adapterring-koppling-122.html. Total cost was 147 kr or about $18.

This is what it looked like when I used the rings to mount the short lens in backwards in front of the zoom lens on the camera:

50 mm lens in front of 70-300 mm lens.
50 mm lens in front of 70-300 mm lens.
50 mm lens in front of 70-300 mm lens.
50 mm lens in front of 70-300 mm lens.

DSC_6707_sm

One thing that immediately becomes apparent when looking into the viewfinder is how dark it is. This is due to the fact that the 50 mm lens goes to minimum aperture when it is not connected to a camera, so it lets in very little light. There is no aperture ring on this lens, but there is a small lever in the mount that one can manually pull to increase the aperture and I found that it is possible to put a piece of tape on the lever to fix it in a desired position. Small aperture is good to get maximum depth of field, but it can be hard to see the subject unless the lighting is very bright, so taping the lever to maximum aperture while composing the scene and then removing the tape before taking the shot might be a good idea.

Aperture lever
Aperture lever

The aperture of the zoom lens seems to not be very critical, but it should be open enough to not cause vignetting. Also, zooming out far away from 300 mm causes vignetting, so the setup is mostly useful at or close to 300 mm.

It is of course necessary to use a tripod and in order to get as sharp photos as possible, one needs to take every reasonable step to reduce vibrations, like using a remote shutter release cord and the mirror-up mode so that the mirror does not cause camera shake.

A future improvement would be to build a focusing rail and apply focus stacking to get a greater depth of field. Building a stepper motor controlled focusing rail could be a fun project.

Below are some test photos I have taken with the setup.

Millimeter lines on the scale of a caliper. The field of view is about 4 mm wide.
Millimeter lines on the scale of a caliper. The field of view is about 4 mm wide.
Detail from a 100 kr bill.
Detail from a 100 kr bill.
An 0603 inductor and an 0402 capacitor.
An 0603 inductor and an 0402 capacitor.
An integrated circuit I made around 1995 as a project at the university. The technology is 0.8 µm CMOS.
An integrated circuit I made around 1995 as a project at the university. The technology is 0.8 µm CMOS.
Pins of a TQFP package, of which one is broken and another is damaged.
Pins of a TQFP package (0.5 mm pitch), of which one is broken and another is damaged.
Detail from a flower.
Detail from a flower.
Two 0603 resistors.
Two 0603 resistors.
A SOT23 component.
An SOT23 component.

 

Prolific USB to serial port adapter in Windows 10

Here is the solution to another issue I experienced after upgrading to Windows 10.

Two different serial port adapters with Prolific PL2303 chips (with VID 067B and PID 2303)  did no longer work. Some googling brought up the below page which claims that the problem is counterfeit chips and new drivers trying to fight that, but I am not at all sure this is the real issue. Anyway, the solution (allegedly an old driver) offered on the page solved the problem:

http://www.ifamilysoftware.com/news37.html

Printer driver for Lexmark Optra E310 on Windows 10

I just upgraded from Windows 7 to Windows 10 and discovered that my old laser printer Lexmark Optra 310 did no longer work and was not recognized as a printer by W10. Googling on printer drivers for E310 for W10 did not turn up anything useful (mostly the list of dubious driver download sites), but then I thought that I somehow made the printer work under Windows 7 and tried to find out how I did that some years ago. This was more fruitful and it turned out that the same trick worked in Windows 10. Here is the link to the trick:

http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/need-to-run-lexmark-optra-e310-with-windows-7-is/8b1d3e5a-e86d-e011-8dfc-68b599b31bf5

In case the link expires, here are the instructions again:

Installing Optra E310 Printer Driver in Windows 10

  1. “Start” > “Control Panel” > “Devices and Printers”.
  2. “Add a Printer”.
  3. “Add a Local Printer”.
  4. Select “Use existing port” > Select “USB001” from “Pull-Down menu”.
  5. Press “Next” button.
  6. Press “Windows Update” button.   {wait while new drivers are downloaded}
  7. Select Manufacturer “Lexmark”.
  8. Select Printer “Lexmark Optra E312” PS or MS.
  9. Press “Next” button
  10. Rename “Optra E312 to E310”.
  11. Press “Next” button.
  12. Press “Finish” button.
  13. End.

Update on 2015-12-11

I installed a bunch of Windows updates today and after that, the Lexmark E310 printer was no longer available. I tried the above procedure, but was unable to get past the “Devices and printers” window that tried to search for the printer but found nothing. I then searched in Windows for “add local printer” (or rather the equivalent in Swedish) and found another more useful dialog where there was an option “The printer I am looking for is not listed”. After that I could follow the steps above to get back the ability to print using this old laser printer.

Update on 2016-09-23

Today I got the “Windows 10 Anniversary Edition” update. It took a while to install (about on hour on a laptop and maybe 20 minutes on a more powerful machine). Again the printer stopped working and I tried to get it working using the above method (remove printer, add printer, printer is not listed etc), but after this I was not able to print. Instead I got some error message from Windows. I almost gave up, but then uninstalled the printer and turned it off and on. After that a test page that I had previously tried to print came out of the printer! I reinstalled the printer in the same way and after this it seems to be working. Phew.

Update on 2017-07-16

After getting the “Windows 10 Creator’s Update”, the printer disappeared again from the list of printers in Windows. The printer settings are no longer located under “Devices and Printers”, but under “Printers and Scanners” (why keep anything consistent when you can change it?). It was however reasonably straightforward to get the driver to work again using the guidelines above, but adapted to the new dialogs. Here is brief list of how to navigate the settings to get the printer working again:

  1. Turn the printer on
  2. Run Printers and Scanners
  3. Add a printer or scanner
  4. The printer that I want isn’t listed
  5. Add a local printer or network printer with manual settings
  6. Select the port USB001
  7. Use the driver that is currently installed (Lexmark E312)
  8. Change the printer name to Lexmark Optra E310
  9. Select if you want to share it on the network