Category Archives: Photography

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.

 

Using an IR camera to locate hidden pipes

As a complement to the ad-hoc metal detector I described in the previous blog post, I wanted to have a look at the heat from the pipes of the hydronic heating system in the floors using an infra red camera before I started to drive screws through the floors. As luck would have it, I was able to borrow a thermal camera from a friend. The camera was a Flir E4 upgraded with a firmware hack to get a resolution of 320×240 pixles.

I did not know how well I would be able to see the pipes in the floor using this method, but as it turns out, the camera was very good at showing how the pipes were laid out. The picture below shows a typical example.

Heat from pipes in the floor.

Heat from pipes in the floor.

Before taking the picture, I had placed tape between the metal sheets (i.e. on top of the beams) in the floor, using the metal detector to guide me. Since the heat spreading metal sheets do not extend all the way to the walls and I knew the pipes would turn between the end of the sheets and the walls, I ended the tape strips where the sheets ended. The thermal image confirms that the pipes are straight where there is metal (and tape) and that they are bent and cross the beams where expected near the wall. The IR camera combines the picture from the IR sensor with contours derived from a picture from a visible-light camera and this helps identify the tape and other objects.

The picture below shows how a pipe crosses a beam when going into another room.

Pipes crossing a beam between rooms.

A pipe crossing a beam between rooms, right where the metal ends.

Here is a picture showing pipes along the walls and on both sides of an opening between two rooms.

Pipes at the boundary of two rooms.

Pipes at the boundary of two rooms.

The hydronic heating system is made up of several separate sections with their own thermostats. The picture below shows pipes from different sections having different temperatures.

Pipes with water of different temperature.

Pipes with water of different temperature.

The thermal contrast turned out to be very good on the wooden floor, but under the ceramic tiles at the entrance, the pipes were much harder to discern as shown below (not that this was of interest to me since it was the wooden floor that needed fixing). The reason for the difference is not entirely clear to me. Maybe the tiles conduct heat much better and spread the heat in a much more diffuse manner? Maybe it takes longer to heat up the tiles? Maybe the thermal coupling from the pipes to the tiles is lousy?

The pipes are not as easily seen under the ceramic floor tiles at the entrance (top) as they are under the wooden floor (bottom).

The pipes are not as easily seen under the ceramic floor tiles at the entrance (top) as they are under the wooden floor (bottom).

The thermal imaging also yielded some unexpected findings. A large part of one of the rooms lacked pipes, although the metal detector clearly showed that there were sheets of metal in the floor. This seems like a clear sign of cheating on behalf of the company that built the house, “Bygg OM AB“, in Linköping. They are probably also the ones who are responsible for the creaking floors.

Thermal image shows that pipes are missing from a large section of this room.

Thermal image shows that pipes are missing from a large section of this room.

In addition to the large area of missing pipes in one of the rooms, a smaller area with a metal sheet but without any pipes was found in a large closet at the entrance.

Random images

I could not resist playing a little with the camera and here is a selection of some random pictures I took:

The central heating unit.

The central heating unit.

Me

Myself (there is some parallax error between the thermal and the visible light pictures here due to a mismatch between the real distance to the subject and the distance setting of the camera)

A hot spot on the side of the freezer (and some heat around the stove).

A hot spot on the side of the freezer (and some residual heat around the stove).

A water meter.

A water meter.

A water tap after tapping hot water for a while.

A water tap after tapping hot water for a while.

A power drill with a hot drill bit and some newly drilled holes that are cooling off.

A power drill with a hot drill bit and some newly drilled holes in the floor that are cooling off.