TExcelTAD
Home › Light, Sound & Magnetism › Mini Project: Build and Test a Pinhole Camera

Mini Project: Build and Test a Pinhole Camera

The challenge

Build a pinhole camera from a box, kitchen foil and tracing paper. Then use it as a measuring instrument: check experimentally that the image size follows the rule from The Pinhole Camera,

h′h=d′d\frac{h'}{h} = \frac{d'}{d}

where hh is the height of the object, dd its distance from the pinhole, h′h' the height of the image and d′d' the distance from the pinhole to the screen. Finish with a short scientific report.

This project uses ideas from Rays, Beams and the Speed of Light, Shadows and The Pinhole Camera.

Safety rules for this project

Safety: never point the camera at the Sun, and never look at the Sun, with or without the camera: it can damage your eyes permanently in seconds. Use a craft knife or sharp scissors only with an adult, cutting away from your fingers on a cutting board. Push the pin through the foil on a piece of cardboard, not on your hand.

What you need

  • a closed cardboard box or tube about 15 cm15\ \text{cm} long (a shoebox, a cereal box cut down, or a crisp tube)
  • kitchen foil, tracing paper (or baking paper), sticky tape, black paper or black paint for the inside
  • a pin or a thin needle
  • a dark cloth or a second box to make a viewing hood
  • an object: an arrow about 30 cm30\ \text{cm} tall cut from dark card and taped to a bright window
  • a tape measure (a few metres), a ruler marked in mm
  • a notebook and a pencil

How to build it

dd' = 15 cm hcard arrow on a windowfoil with pinholetracing-paper screenviewing hood
The project camera. You look at the screen from behind, inside the dark hood. The image is upside down, and h'/h = d'/d.
  1. Cut a hole about 3 cm3\ \text{cm} wide in the middle of one end of the box. Tape a square of foil over it, smooth and flat.
  2. Make one small, round hole in the middle of the foil with the pin. Turn the pin as you push it so the hole is round.
  3. Cut out most of the opposite end and tape tracing paper across it, flat and tight. This is the screen. Measure the distance from the pinhole to the screen: this is d′d'. Make it exactly 15.0 cm15.0\ \text{cm} if you can.
  4. Line the inside with black paper (or paint it black), so that light reflected inside the box doesn't wash out the image.
  5. Fit the viewing hood behind the screen (a cloth over your head and the back of the box works too). You look at the back of the screen, from inside the dark hood.

Test it: point the pinhole at the bright window from across a room. You should see a dim, coloured, upside-down image on the screen. If you see nothing, make the room darker and check that no light leaks in round the edges.

The plan

  • Question: does the image height follow h′h=d′d\dfrac{h'}{h} = \dfrac{d'}{d}?
  • Prediction: with h=30 cmh = 30\ \text{cm} and d′=15 cmd' = 15\ \text{cm}, work out h′h' for each distance below before you measure.
  • Independent variable: the distance dd from the object to the pinhole. Dependent variable: the image height h′h'. Control variables: the same object, the same camera (d′d' fixed), the same pinhole.
  • Method: stand at d=1.0d = 1.0, 1.51.5, 2.02.0 and 3.0 m3.0\ \text{m} from the window, measured with the tape to the pinhole. At each distance measure h′h' on the screen with the ruler (or mark the top and bottom of the image on the tracing paper with a pencil, then measure). Repeat each distance three times and take the mean.

Step 1: predict

For d=1.0 m=100 cmd = 1.0\ \text{m} = 100\ \text{cm}:

h′=h×d′d=30 cm×15 cm100 cm=4.5 cmh' = h \times \frac{d'}{d} = 30\ \text{cm} \times \frac{15\ \text{cm}}{100\ \text{cm}} = 4.5\ \text{cm}

In the same way, d=1.5 md = 1.5\ \text{m} gives 3.0 cm3.0\ \text{cm}, d=2.0 md = 2.0\ \text{m} gives 2.25 cm2.25\ \text{cm} (about 2.3 cm2.3\ \text{cm}) and d=3.0 md = 3.0\ \text{m} gives 1.5 cm1.5\ \text{cm}.

Step 2: measure and record

Here is a sample set of results (mean of three readings at each distance). Use your own.

dd (m) predicted h′h' (cm) measured h′h' (cm) h′h\dfrac{h'}{h} measured d′d\dfrac{d'}{d}
1.0 4.5 4.4 0.147 0.150
1.5 3.0 3.1 0.103 0.100
2.0 2.25 2.2 0.073 0.075
3.0 1.5 1.5 0.050 0.050

The ratios are worked out with the same units top and bottom: for example, at d=1.0 md = 1.0\ \text{m}, h′h=4.4 cm30 cm≈0.147\dfrac{h'}{h} = \dfrac{4.4\ \text{cm}}{30\ \text{cm}} \approx 0.147 and d′d=15 cm100 cm=0.150\dfrac{d'}{d} = \dfrac{15\ \text{cm}}{100\ \text{cm}} = 0.150.

Step 3: analyse

  1. Compare the two ratio columns. In the sample, they agree to within about 0.0030.003 at every distance.
  2. Find the percentage difference from the prediction, for example at d=1.5 md = 1.5\ \text{m}:
3.1 cm−3.0 cm3.0 cm×100%≈3%\frac{3.1\ \text{cm} - 3.0\ \text{cm}}{3.0\ \text{cm}} \times 100\% \approx 3\%
  1. Spot the pattern another way: multiply h′h' by dd. The rule says h′×d=h×d′=30 cm×0.15 m=4.5 cm⋅mh' \times d = h \times d' = 30\ \text{cm} \times 0.15\ \text{m} = 4.5\ \text{cm} \cdot \text{m} at every distance. The sample gives 4.44.4, 4.654.65, 4.44.4 and 4.54.5: close to constant. Doubling the distance (from 1.5 m1.5\ \text{m} to 3.0 m3.0\ \text{m}) halves the image (3.1 cm3.1\ \text{cm} to 1.5 cm1.5\ \text{cm}, about half).
  2. Draw a graph of h′h' (up) against dd (across). It is a curve that falls quickly and then levels off, not a straight line.

Step 4: think about your results

  • Sources of error: the edges of a dim image are fuzzy, so reading h′h' to better than about 1 mm1\ \text{mm} is hard; measuring dd to the pinhole rather than to the front of the box matters at short distances; the tracing paper may bulge, changing d′d'.
  • Improvements: use a brighter object (a lit window on a sunny day, with the Sun behind you), a darker hood, and mark the image edges with a sharp pencil.
  • Extra test: make the pinhole a little bigger. The image gets brighter but blurrier, because each point of the object now makes a small patch instead of a point. Its size does not change.

Step 5: write it up

Use this template for a one-page report.

  1. Title and date, your name and your partner's.
  2. Aim: "To test whether the image in a pinhole camera obeys h′/h=d′/dh'/h = d'/d."
  3. Prediction with the calculation for each distance.
  4. Equipment list and a labelled diagram of your camera with d′d' marked.
  5. Method in numbered steps, including the control variables and the safety rules.
  6. Results table with units in the headings, and the graph.
  7. Analysis: the ratio comparison and the percentage differences.
  8. Conclusion: one or two sentences that answer the question, using your numbers.
  9. Evaluation: errors, improvements, and what surprised you.

Extension: measure the speed of sound with echoes

Find a large flat wall (a school building) with an open space in front of it, away from traffic and with an adult present. Stand 85 m85\ \text{m} from the wall, measured with a long tape or by counting carefully paced steps.

  1. Clap once and listen for the echo. The sound travels 2×85=170 m2 \times 85 = 170\ \text{m} there and back, so at 340 m/s340\ \text{m/s} the echo comes after 170 m340 m/s=0.50 s\dfrac{170\ \text{m}}{340\ \text{m/s}} = 0.50\ \text{s}.
  2. Clap in a steady rhythm, adjusting it until each clap falls exactly on the echo of the one before.
  3. A partner times 2121 claps, which is 2020 intervals. Suppose it takes 10.2 s10.2\ \text{s}. One interval is 10.2 s20=0.51 s\dfrac{10.2\ \text{s}}{20} = 0.51\ \text{s}, so
v=2dt=170 m0.51 s≈333 m/sv = \frac{2d}{t} = \frac{170\ \text{m}}{0.51\ \text{s}} \approx 333\ \text{m/s}

which is within about 2%2\% of 340 m/s340\ \text{m/s}. (See Echoes.) Timing 2020 intervals instead of one shares your reaction-time error out over all of them.

Test yourself

Your camera has d′=15 cmd' = 15\ \text{cm}. An object 30 cm30\ \text{cm} tall is 1.5 m1.5\ \text{m} away. The image height should be...

  1. 1.5 cm1.5\ \text{cm}
  2. 3.0 cm3.0\ \text{cm}
  3. 4.5 cm4.5\ \text{cm}
  4. 30 cm30\ \text{cm}

You move twice as far from the object. The image becomes...

  1. twice as tall
  2. half as tall
  3. the same size
  4. the right way up

Why is the inside of the camera painted black?

  1. To make the image upside down
  2. To stop light reflected inside the box from washing out the image
  3. To make the box stronger
  4. To make the image bigger

Making the pinhole bigger makes the image...

  1. smaller and sharper
  2. brighter but blurrier
  3. dimmer and sharper
  4. disappear

Which is the most important safety rule for this project?

  1. Use a big box
  2. Never point the camera at the Sun or look at the Sun
  3. Work only at night
  4. Use a thick needle