Pinhole cameras can be handmade by the photographer for a particular purpose. In its simplest form, a pinhole camera includes a light-tight box with a pinhole in one end, and a piece of film or other light-sensitive material at the other end. Suitable containers include empty cylindrical cans, with one open end having a removable lid to facilitate loading film, and the other (closed) end equipped with the pinhole. Instructions for building a pinhole camera were published by Kodak, using either a
126 film cartridge or an empty can. The pinhole may be punched or drilled using a sewing needle or small diameter bit through a piece of aluminum foil or thin aluminum or brass sheet. This piece is then taped to the inside of the light-tight box, behind a hole cut or drilled through one end of the box. A flap of cardboard covering the pinhole, hinged with a piece of adhesive tape, can be used as a shutter. Pinhole cameras can be constructed with a sliding film holder or back to adjust the distance between the film and the pinhole. This effectively changes the
focal length, which affects both the
angle of view and also the effective
f-stop ratio. Moving the film closer to the pinhole will result in a wide angle field of view and shorter exposure time. Moving the film farther away from the pinhole will result in a telephoto or narrow-angle view and longer exposure time. Instead of simple household materials, pinhole cameras also can be constructed by replacing the lens assembly in a conventional camera with a pinhole. In particular, compact 35 mm cameras whose lens and focusing assembly have been damaged can be reused as pinhole cameras, maintaining the use of the shutter and film winding mechanisms. As a result of the enormous increase in
f-number, to maintain similar exposure times, the photographer must use a fast film in direct sunshine or other bright light conditions. Homemade or commercial pinholes also can be used in place of the lens on a
single lens reflex camera (SLR) or
mirrorless interchangeable lens camera. Use with a
digital SLR allows metering and composition by trial and error, and since development is effectively free, it is a popular way to try pinhole photography.
Selection of pinhole size Up to a certain point, the smaller the hole, the sharper the image, but the dimmer the projected image. Optimally, the diameter of the aperture should be less than or equal to of the distance between it and the projected image. Within limits, a small pinhole through a thin surface will result in a sharper
image resolution because the projected
circle of confusion at the image plane is practically the same size as the pinhole. An extremely small hole, however, can produce significant
diffraction effects and a less clear image due to the wave properties of light. Additionally,
vignetting occurs as the diameter of the hole approaches the thickness of the material in which it is punched, because the sides of the hole obstruct the light entering at anything other than 90 degrees. The best pinhole is perfectly round (since irregularities cause higher-order diffraction effects) and in an extremely thin piece of material. Industrially produced pinholes benefit from
laser etching, but a hobbyist can still produce pinholes of sufficiently high quality for photographic work. A method of calculating the optimal pinhole diameter was first published by
Joseph Petzval in 1857. The smallest possible diameter of the image point and therefore the highest possible image resolution and the sharpest image are given when: :d=\sqrt{2f\lambda}=1.41\sqrt{f\lambda} where : is the pinhole diameter : is the distance from pinhole to image plane or "focal length" : is the wavelength of light The first to apply
wave theory to the problem was
Lord Rayleigh in 1891. But due to some different theoretical assumptions he arrived at: :d=2\sqrt{f\lambda} So his optimal pinhole was approximatively % bigger than Petzval's. Another optimum pinhole size, proposed by Young (1971), uses the
Fraunhofer approximation of the diffraction pattern behind a circular aperture, and later published a tutorial in
The Physics Teacher. He defined and plotted two normalized variables: the normalized resolution limit, \frac{RL}{s}, and the normalized focal length, \dfrac{f}{\left ( \frac{s^2}{\lambda} \right )}, where : is the resolution limit : is the pinhole radius (/2) : is the focal length : is the wavelength of the light, typically about 550 nm. On the left-side of the graph (where the normalized focal length is less than 0.65), the pinhole is large, and geometric optics applies; the normalized resolution limit is approximately constant at a value of 1.5, meaning the actual resolution limit is approximately 1.5 times the radius of the pinhole, independent of the normalized focal length. (Spurious resolution is also seen in the geometric-optics limit.) On the right-side (normalized focal length is greater than 1), the pinhole is small, and
Fraunhofer diffraction applies; the resolution limit is given by the far-field diffraction formula shown in the graph, which increases as the pinhole size decreases, assuming that and are constant: :RL = \frac{0.61 \cdot \lambda f}{s} In this version of formula as published by Young, the radius of the pinhole is used rather than its diameter, so the constant is 0.61 instead of the more usual 1.22. In the center of the plot (normalized focal length is between 0.65 and 1), which is the region of near-field diffraction (or
Fresnel diffraction), the pinhole focuses the light slightly, and the resolution limit is minimized when the normalized focal length is equal to one. That is, the actual focal length (the distance between the pinhole and the film plane) is equal to \frac{s^2}{\lambda}. At this focal length, the pinhole focuses the light slightly, and the normalized resolution limit is approximately , i.e., the resolution limit is ~ of the radius of the pinhole. The pinhole, in this case, is equivalent to a Fresnel zone plate with a single zone. The value 2/ is in a sense the natural focal length of the pinhole. The relation = 2/ yields an optimum pinhole diameter = 2, so the experimental value differs slightly from the estimate of Petzval, above.
Calculating the f-number and required exposure The
f-number of the camera may be calculated by dividing the distance from the pinhole to the imaging plane (the
focal length) by the diameter of the pinhole. For example, a camera with a 0.5 mm diameter pinhole, and a 50 mm focal length would have an f-number of 50/0.5, or 100 (
f/100 in conventional notation). Due to the large f-number of a pinhole camera, exposures will often encounter
reciprocity failure. Once exposure time has exceeded about 1 second for film or 30 seconds for paper, one must compensate for the breakdown in linear response of the film/paper to intensity of illumination by using longer exposures. Exposures projected on to modern light-sensitive photographic film can typically range from five seconds up to as much as several hours, with smaller pinholes requiring longer exposures to produce the same size image. Because a pinhole camera requires a lengthy exposure, its
shutter may be manually operated, as with a flap made of opaque material to cover and uncover the pinhole. ==Natural pinhole phenomenon==