TExcelTAD
Home › Light, Sound & Magnetism › The Pinhole Camera

The Pinhole Camera

A question to start

Close the curtains of a room on a bright day, leaving only one tiny gap. On the opposite wall a faint, coloured picture of the street outside appears: cars, trees, people walking, all upside down. Nobody put a projector there. Where does the picture come from, and why is it upside down?

The idea

A pinhole camera (máy ảnh lỗ kim, also called camera obscura or buồng tối) is a light-tight box with a tiny hole in one side and a screen of tracing paper on the opposite side.

Every point of an object sends light out in all directions. Because the hole is tiny, only a thin pencil of light from each point gets through, and it travels in a straight line to one spot on the screen. Each point of the object makes its own spot, and together the spots form an image (ảnh).

dd' hh'objectpinholeboxscreen(tracingpaper)
Rays from the top and the bottom of the object cross at the pinhole, so the image is upside down. Here d' is half of d, so h' is half of h.
  • Light from the top of the object travels down through the hole and lands at the bottom of the screen; light from the bottom lands at the top. Left and right swap too. So the image is upside down (inverted) and reversed left to right.
  • The image is real: the light really arrives on the screen, so it can be seen on paper or recorded by film or a sensor.
  • A smaller hole gives a sharper but dimmer image. A bigger hole lets in wider pencils of light that overlap, so the image becomes brighter but blurred.

The size of the image

The ray from the top of the object and the ray from its bottom cross at the hole. They make two triangles with the same angles, one outside the box and one inside it. So the image and the object are in the same ratio as their distances from the hole:

h′h=d′dsoh′=h⋅d′d\frac{h'}{h} = \frac{d'}{d} \qquad \text{so} \qquad h' = h \cdot \frac{d'}{d}
Quantity Symbol Unit Measured with
height of the object hh m or cm tape measure, or known
height of the image h′h' cm or mm ruler on the screen
object to pinhole dd m tape measure
pinhole to screen (length of the box) d′d' cm ruler

As always with a ratio, hh and h′h' must be in the same unit, and so must dd and d′d'.

Worked examples

Example 1. A tree 6.0 m6.0\ \text{m} tall is 30 m30\ \text{m} from a pinhole camera 20 cm20\ \text{cm} long. How tall is the image?

  • Given: h=6.0 mh = 6.0\ \text{m}, d=30 md = 30\ \text{m}, d′=20 cm=0.20 md' = 20\ \text{cm} = 0.20\ \text{m}.
  • Find: h′h'.
  • Formula: h′=h⋅d′dh' = h \cdot \dfrac{d'}{d}.
  • Solve: h′=6.0 m×0.20 m30 m=0.040 mh' = 6.0\ \text{m} \times \dfrac{0.20\ \text{m}}{30\ \text{m}} = 0.040\ \text{m}.
  • Answer: h′=0.040 m=4.0 cmh' = 0.040\ \text{m} = 4.0\ \text{cm}, upside down.
  • Check: the box is 150 times shorter than the distance to the tree (30/0.20=15030 / 0.20 = 150), so the image is 150 times smaller: 600 cm/150=4 cm600\ \text{cm} / 150 = 4\ \text{cm}. Correct.

Example 2. A safe image of the Sun. A pinhole in a card makes an image of the Sun on a second card 1.0 m1.0\ \text{m} behind it. The Sun is 1 390 000 km1\,390\,000\ \text{km} wide and 150 000 000 km150\,000\,000\ \text{km} away. How wide is its image?

  • Given: h=1.39×106 kmh = 1.39 \times 10^6\ \text{km}, d=1.5×108 kmd = 1.5 \times 10^8\ \text{km}, d′=1.0 md' = 1.0\ \text{m}.
  • Find: h′h'.
  • Formula: h′=d′⋅hdh' = d' \cdot \dfrac{h}{d} (the same rule, written so that the two km values make a plain number).
  • Solve: h′=1.0 m×1.39×106 km1.5×108 km≈1.0 m×0.0093=0.0093 mh' = 1.0\ \text{m} \times \dfrac{1.39 \times 10^6\ \text{km}}{1.5 \times 10^8\ \text{km}} \approx 1.0\ \text{m} \times 0.0093 = 0.0093\ \text{m}.
  • Answer: about 9 mm9\ \text{mm} wide.
  • Check: the Sun is about 108 times farther than it is wide (Eclipses), so a 1 m long "camera" gives an image 1000 mm/108≈9 mm1000\ \text{mm} / 108 \approx 9\ \text{mm} across. During a partial eclipse this little disc shows a bite taken out of it.

Example 3. Working backwards. A window 4.0 m4.0\ \text{m} away makes an image 3.0 cm3.0\ \text{cm} tall in a box 15 cm15\ \text{cm} long. How tall is the window?

  • Given: h′=3.0 cmh' = 3.0\ \text{cm}, d=4.0 m=400 cmd = 4.0\ \text{m} = 400\ \text{cm}, d′=15 cmd' = 15\ \text{cm}.
  • Find: hh.
  • Formula: h=h′⋅dd′h = h' \cdot \dfrac{d}{d'}.
  • Solve: h=3.0 cm×400 cm15 cm=80 cmh = 3.0\ \text{cm} \times \dfrac{400\ \text{cm}}{15\ \text{cm}} = 80\ \text{cm}.
  • Answer: the window is 80 cm80\ \text{cm} tall.
  • Check: a real window of about 0.8 m: sensible.

Try it: a quick pinhole viewer

You need: a cardboard tube (from kitchen foil, about 30 cm30\ \text{cm} long), aluminium foil, tracing paper or baking paper, rubber bands, a pin (with an adult), a dark cloth.

  1. Cover one end of the tube with foil and hold it on with a rubber band. With the pin, make one small, round hole in the middle of the foil.
  2. Cover the other end with tracing paper, held tight with a rubber band.
  3. Put the dark cloth over your head and the paper end, so no light reaches the paper except through the pinhole. Point the foil end at a bright window or a lit lamp, not the Sun.

What you should see: a small, dim, upside-down image of the window on the paper. Make a second hole next to the first: you get two overlapping images. Make the hole bigger: the image gets brighter and blurrier.

Why: each point of the window sends a straight pencil of light through the hole. Two holes give two sets of pencils, so two images.

The Mini Project turns this into a measured experiment.

Common mistakes

  • "The image is upside down because the hole turns it." The hole does nothing to the light. Straight rays from the top go down through the hole, so they cross.
  • "A bigger hole gives a bigger image." The image size depends only on d′/dd'/d. A bigger hole gives a brighter, blurrier image of the same size.
  • Mixing units in the ratio. Convert dd and d′d' to the same unit before dividing.
  • Pointing a pinhole viewer at the Sun and looking through it. Never: always stand with your back to the Sun and look at the projected image.

Practice

  1. A lamp post 5.0 m5.0\ \text{m} tall is 25 m25\ \text{m} from a pinhole camera 30 cm30\ \text{cm} long. How tall is the image? Which way up is it?
Answer

h′=5.0 m×0.30 m25 m=0.060 m=6.0 cmh' = 5.0\ \text{m} \times \dfrac{0.30\ \text{m}}{25\ \text{m}} = 0.060\ \text{m} = 6.0\ \text{cm}, upside down.

  1. How long must a pinhole camera be to give a 10 cm10\ \text{cm} image of a 2.0 m2.0\ \text{m} tall person standing 4.0 m4.0\ \text{m} away?
Answer

d′=d⋅h′h=4.0 m×0.10 m2.0 m=0.20 m=20 cmd' = d \cdot \dfrac{h'}{h} = 4.0\ \text{m} \times \dfrac{0.10\ \text{m}}{2.0\ \text{m}} = 0.20\ \text{m} = 20\ \text{cm}.

  1. You walk towards a building with your pinhole camera. What happens to the size of the image? Explain with the formula.
Answer

It gets bigger. h′=h⋅d′/dh' = h \cdot d'/d: the object height hh and box length d′d' stay the same, and dd gets smaller, so h′h' gets bigger.

  1. The letter F is lit up in front of a pinhole camera. Sketch what appears on the screen.
Answer

The F is upside down and reversed left to right: the same as turning the F through half a turn (180∘180^\circ) in its own plane. The long stroke is still on one side, with the two short bars now pointing the other way and at the bottom.

Test yourself

Why is the image in a pinhole camera upside down?

  1. The hole bends the light
  2. Rays from the top and bottom of the object travel in straight lines and cross at the hole
  3. The screen is upside down
  4. Light travels from the screen to the object

A 3.0 m3.0\ \text{m} tall object is 15 m15\ \text{m} from a pinhole camera 10 cm10\ \text{cm} long. How tall is the image?

  1. 0.5 cm0.5\ \text{cm}
  2. 2.0 cm2.0\ \text{cm}
  3. 4.5 cm4.5\ \text{cm}
  4. 20 cm20\ \text{cm}

What happens if you make the pinhole bigger?

  1. Brighter but blurrier image
  2. Dimmer but sharper image
  3. Bigger image
  4. The image turns the right way up

How do you make the image bigger without moving the camera?

  1. Use a longer box (larger d′d')
  2. Use a bigger hole
  3. Use a shorter box
  4. Use thinner paper