◆ Rebuild

Part 14 · Electronics and Computing

Photocells and Sensors

A sensor turns something you want to know — light, heat, stretch, wetness, the level in a tank — into a change of current or resistance that a meter can show and a relay can act on. How to make selenium and junction photocells, a light meter that needs no battery, a light-beam alarm and counter, thermistors and wire thermometers, strain gauges for weighing and testing, and simple moisture and level sensors.

Difficulty
●●●●●
Time
An afternoon for a light meter; a week to make and calibrate thermistors or strain gauges
Steps from zero
46 prerequisites →

You need first

Semiconductors and the TransistorSelenium and Tellurium

This unlocks

Analytical InstrumentsPhotomultipliers and Scintillation CountersPulse Oximeters and Patient Monitors
The full path from nothing — 46 steps before this one
  1. Fire
  2. Cordage and Rope
  3. Stone Tools
  4. Finding and Preparing Clay
  5. Finding and Identifying Ores
  6. Sulfur
  7. Hunting and Trapping
  8. Basic Woodworking
  9. The Kiln
  10. Pottery
  11. Charcoal
  12. Hides and Leather
  13. Lime
  14. Bricks
  15. Salt
  16. Mercury
  17. Lye and Potash
  18. Fermentation
  19. The Wheel and Axle
  20. Glass
  21. Firebrick and Refractories
  22. Bellows
  23. Saltpeter
  24. Acids, Bases and Testing
  25. The Lathe
  26. Gears
  27. Copper Smelting
  28. Iron (the Bloomery)
  29. Laboratory Glassware
  30. Sulfuric Acid
  31. Pumps
  32. The Waterwheel
  33. Blacksmithing
  34. Hydrochloric Acid
  35. Identifying Substances
  36. The Battery
  37. The Vacuum Pump
  38. Magnets
  39. Selenium and Tellurium
  40. The Light Bulb
  41. Copper Wire
  42. The Generator
  43. The Vacuum Tube
  44. The Electric Arc Furnace
  45. Pure Silicon
  46. Semiconductors and the Transistor
  47. Photocells and Sensors

Do them roughly in this order. See it on the tech tree →

Why it matters

People measure light, heat, weight and wetness with their senses, but slowly, roughly, and only while they are watching. A sensor does it all day and all night and reports in a form a machine can use: a current in a meter, a click in a relay, a pulse in a counter. Sensors let a photographer set exposure correctly (Photography), a factory count bottles without a clerk, a door raise an alarm, a greenhouse water itself, a pump keep a tank full, and an engineer find out how hard a bridge beam is really working (Strength of Materials). Joined to a relay or heater they become automatic controls (Thermostats and Automatic Control).

How it works

Nearly every sensor here is one of two kinds:

  • Generating sensors make their own small voltage: a selenium or silicon photocell in light, or a thermocouple when heated. Connect a meter, and it reads — no battery.
  • Resistive sensors change resistance: a photoconductive cell conducts better in light, a thermistor better when warm, a strain gauge worse when stretched, a plaster block better when wet. A battery drives a small current through them, and a meter or Wheatstone bridge (Measuring Electricity) reads the change.

Three ways that light makes electricity, all used in photocells:

  1. Photovoltaic. Light falling on a junction between two different materials (selenium on iron, a p–n junction in silicon — see Semiconductors and the Transistor) frees charges that the junction pushes one way. The cell becomes a tiny battery. Its short-circuit current rises almost exactly in step with the light.
  2. Photoconductive. In some materials (grey selenium, later cadmium sulfide), light frees charges that let current flow more easily, so resistance falls. Cheap and sensitive, but slow — a fraction of a second to respond — and it drifts with temperature.
  3. Photoemissive. In a vacuum, light knocks electrons out of a metal surface (best of all, a film of potassium or caesium). A positive plate collects them. These phototubes are fast and exact, and were the "electric eyes" and sound-film readers of the 1930s, but they need the glass and pump work of the The Vacuum Tube chapter and pure alkali metals. Treat them as a later step.

A sensor's output is usually tiny: microamps, millivolts, a fraction of a per cent change in resistance. Expect to need a sensitive galvanometer, a bridge, or an amplifier between the sensor and anything it must work.

What you need

For Materials See
Selenium cells Grey selenium (a few grams), iron or brass plate, mica or slate, fine copper or brass wire, gold leaf Selenium and Tellurium, Solar Cells
Junction cells A junction diode or transistor Semiconductors and the Transistor
Meters Moving-coil galvanometer or microammeter, Wheatstone bridge Measuring Electricity
Light beam 6–12 V lamp of 3–10 W, two lenses 4–6 cm across The Light Bulb, Lenses
Thermistors Manganese dioxide, nickel oxide, a kiln reaching 1,200 °C, silver paint Nickel and Cobalt, The Kiln
Strain gauges Constantan wire 0.03–0.05 mm, thin paper, shellac or Bakelite varnish Thermocouples and Thermoelectricity, Iron and Brass Wire
Moisture and level Plaster of Paris, stainless steel or carbon rods, cork or a sealed can for a float Gypsum and Plaster of Paris
Switching A sensitive relay, battery, bell The Electromagnet, Electric Bells, Buzzers and Alarms

Where to find it

Most of these materials are made in other chapters. Selenium is recovered from the red-black sludge that settles in lead chambers making Sulfuric Acid and from the slimes left when copper is refined by electrolysis (Selenium and Tellurium). Manganese dioxide is the black, sooty ore pyrolusite, which stains fingers black and makes chlorine fizz from hydrochloric acid (Finding and Identifying Ores). Nickel oxide is made by heating nickel metal or nickel carbonate in air until it turns greenish-grey (Nickel and Cobalt). Mica splits from granite and pegmatite into clear flexible leaves (Rocks and Minerals). Gypsum is the soft white or clear rock that a fingernail scratches (Gypsum and Plaster of Paris).

Photocells

The selenium resistance cell (photoconductive)

This is the oldest light sensor and the easiest to make well. It needs no junction, only a thin film of grey selenium bridging two interleaved wires.

PHOTOCONDUCTIVE CELL LIGHT METER light Mica plate, 5 × 3 cm wires wound in notches 1 mm apart Two wires never touching Grey selenium melted on, annealed terminal terminal Honeycomb limits view to ~50° Selenium cell gold-leaf face Microammeter 100–500 µA, no battery
Fig. 1 Left: the photoconductive selenium cell — two bare wires wound side by side on a mica plate, with grey selenium melted between them. Light lowers the resistance between the two wires. Right: the light meter — a photovoltaic selenium cell behind a honeycomb baffle, wired straight to a microammeter. It needs no battery.
  1. The plate. A piece of mica, slate or thin glazed porcelain about 5 × 3 cm. Cut small notches every 1 mm along the two short edges.
  2. Wind two wires. Take two bare copper or brass wires about 0.2–0.3 mm thick and wind them side by side round the plate, each turn in its own notch, so the two wires alternate and lie about 1 mm apart without touching. Twenty turns of each is plenty. Bring one end of each wire out as a terminal. Test with a battery and lamp that the two wires do not touch anywhere.
  3. Melt on the selenium. Warm the plate on an iron plate over a gentle fire to just above 221 °C — a scrap of tin (melting at 232 °C) laid on the iron should just begin to soften. Rub a stick of selenium over the face so a thin, even film flows between the wires. Press it flat with a warm sheet of mica. The film should be thin enough to look dark red when you hold it up to a bright light.
  4. Anneal. Hold the plate at about 200 °C (just below where tin melts) for several hours. The glassy dark-red selenium turns dull grey and crystalline. This makes or breaks the cell: glassy selenium barely responds to light.
  5. Seal the face under a thin glass or mica cover with wax round the edges. Damp ruins selenium cells.
  6. Test with a battery of a few volts and a galvanometer in series. Cover the cell: note the current. Uncover it in daylight: the current should rise by two to ten times.

Home-made cells vary enormously: a dark resistance from tens of thousands to millions of ohms is normal. Make several and keep the best. They respond in about a tenth of a second, tire a little in long bright light, and are sensitive to temperature. They are excellent for switching and counting, but poor for exact measurement.

The photovoltaic cell

The selenium cell of Solar Cells — selenium on an iron plate, with a see-through top contact of gold leaf — makes its own current. Its short-circuit current (measured with a meter of low resistance) is very nearly proportional to the light, which makes it the right cell for a meter. A cell of 10–20 cm² gives hundreds of microamps in sunshine and a few microamps indoors. The red cuprous-oxide cell described in the same chapter works too, more weakly.

Junction cells and phototransistors

Every p–n junction in germanium or silicon is a photocell if light can reach it. Seal a junction diode or an alloy-junction transistor in clear glass or clear varnish instead of black paint or metal, and it responds to light in millionths of a second instead of tenths. A transistor used this way, with its base left unconnected, also amplifies its own photocurrent by its gain, so it gives hundreds of times more current than a bare junction. Early transistor makers sold exactly this: the same germanium transistor, with the black paint left off the glass. Silicon cells are better still, but need the Pure Silicon chain.

The light meter

A light meter tells you how bright the light is, so you can set a camera's exposure (Photography), check that a workshop or classroom is lit well enough to read, or compare lamps (The Light Bulb, Lamps and Candles).

  1. Cell. A photovoltaic selenium cell 3–5 cm across.
  2. Baffle. In front of it, a honeycomb of thin blackened tubes or a grid of blackened card, each cell about 5 mm across and 8 mm deep. It limits the meter to a cone of about 50°, roughly what a camera lens sees, so the sky does not swamp a reading of the ground.
  3. Meter. Wire the cell straight to a moving-coil microammeter of low resistance (under 500 Ω) reading 100–500 µA full scale (Measuring Electricity). No battery: the cell drives the meter. Add a shunt switched by a button for bright sun.
  4. Box. A small wooden or metal box, with the cell and baffle in one end and the meter face on top.

Calibrating without instruments. Light from a small lamp falls off with the square of the distance: twice as far, a quarter as bright. In a dark room, put a steady lamp at a distance d and note the meter reading. Move it to 1.41 d: the light halves. At 2 d it is a quarter, at 2.83 d an eighth. Mark each reading on the scale. Each mark is one stop — a halving of light, which is also one halving of the exposure time a camera needs. Then, once, photograph a plain grey card in daylight at several exposure times, find the best negative, and note the meter reading. From then on the marks tell you the exposure directly: one mark brighter, half the time.

A good meter reads the same twice running, falls exactly two marks when you double the lamp distance from 1.41 d to 2.83 d (two stops), and barely moves when you put your hand behind it. A bad one has a cell with damp in it, which reads low and drifts; reseal it.

The light-beam alarm and counter

A beam of light across a doorway, path or conveyor, falling on a photocell, holds a relay in. When anything breaks the beam, the relay drops out and rings a bell, or advances a counter.

Lamp and lens 6–12 V, 3–10 W narrow beam Doorway Receiving tube blackened, 15–20 cm photocell amplifier tube or transistor relay back Relay held in by the beam Bell rings when it drops
Fig. 2 The light-beam alarm. A lamp and lens throw a narrow beam across the doorway into a blackened receiving tube. The photocell's current, amplified, holds the relay in. Breaking the beam lets the relay drop onto its back contact, which closes the bell circuit.
  1. Projector. A 6–12 V lamp of 3–10 W (The Light Bulb) at the focus of a lens 4–6 cm across, in a blackened box. Slide the lamp until the beam is a spot the size of the receiving lens at the far side.
  2. Receiver. A tube 15–20 cm long, blackened inside, with a lens at the front and the photocell at its focus at the back. The tube shuts out most room light. Point it away from windows.
  3. Amplifier. A cell rarely gives enough current to work a relay directly. Use one triode or transistor (Amplifiers and Oscillators, Semiconductors and the Transistor): wire the photocell so that light makes the grid (or base) more positive, and put a sensitive relay — one that pulls in at 1–5 mA — in the plate (or collector) circuit. With the beam on, the relay is held in.
  4. Fail-safe wiring. Arrange it so the beam holds the relay in and the alarm sounds when the relay drops out. Then a broken wire, a dead lamp or a flat battery also sounds the alarm, instead of silently disabling it.
  5. Latching. Give the alarm relay a second contact that keeps the bell circuit closed once it has started, until a hidden reset switch is pressed — the self-holding latch of The Relay Computer. See Electric Bells, Buzzers and Alarms for the bell.
  6. Counting. For counting people, sacks or bottles, leave out the latch and let each drop of the relay advance a mechanical counter (Clockwork, Music Boxes and Counting Machines) — good to about 10 a second — or feed an electronic counter for faster objects.

With a selenium cell this works across 5–15 m in a dim building. To ignore daylight altogether, chop the beam with a slotted disc spun by a small motor so it flickers a few hundred times a second, and couple the amplifier through a small capacitor: it then passes only the flicker, not steady daylight.

Thermistors and wire thermometers

A thermistor is a resistor of metal oxides whose resistance falls about 4% for every degree it warms — ten times more than any metal changes. That makes it a sensitive electrical thermometer you can read at a distance, the sensor for an electronic incubator or crystal oven (Thermostats and Automatic Control), and a guard against current surges.

Making thermistor beads:

  1. Mix finely ground manganese dioxide and nickel oxide, roughly three parts to one by weight, with a little starch or gum water to make a stiff paste. More nickel gives a lower resistance.
  2. Shape beads 3–5 mm across on two parallel platinum or fine nickel wires about 1 mm apart, or press discs 8–10 mm across and 2 mm thick in a little steel die.
  3. Dry, then fire in a The Kiln at about 1,150–1,250 °C for 2–4 hours and cool slowly. The beads come out hard, black and slightly shiny.
  4. Contacts for discs: paint both faces with silver paste (fine silver powder in oil with a pinch of powdered glass), fire at about 700 °C, and solder wires on.
  5. Seal in a dab of glass or varnish.
  6. Calibrate. Measure the resistance in melting ice (0 °C), in water warmed to 25, 37, 50 and 75 °C against a good The Thermometer, and in boiling water (100 °C). Draw a graph. Near room temperature the resistance roughly halves every 15–20 °C.

Keep the measuring current small (under 1 mA for a bead) or the thermistor warms itself and reads high. Batches vary; every thermistor needs its own graph.

Resistance thermometer. For a steadier, more predictable sensor, wind 50–100 Ω of fine enamelled copper wire on a thin mica or glass former and seal it. Copper's resistance rises by about 0.4% per degree, almost in a straight line. It is less sensitive than a thermistor but needs only two calibration points (ice and boiling water). Platinum wire, where you have it, is the standard for accurate work.

Strain gauges and load cells

Stretch a wire and it gets longer and thinner, so its resistance rises. Glue a fine wire firmly to a steel part, and the wire stretches exactly as the steel does. A strain gauge measures how much a beam, bolt, axle or bridge member is really being stretched or squeezed — and therefore how hard it is loaded.

Gauge, enlarged 12 loops of 0.05 mm constantan, 2 cm long, on thin paper stretches load Steel bar, clamped gauge cemented on top Dummy gauge same steel, no load active dummy 120 Ω 120 Ω G 2–3 V Wheatstone bridge balance with no load; the meter reads the stretch
Fig. 3 The strain gauge. Fine constantan wire, zigzagged on thin paper, is cemented along a bending steel bar. Its resistance forms one arm of a Wheatstone bridge; a second, identical gauge on an unloaded piece of the same steel cancels the effect of temperature.
  1. Wire. Use constantan (copper with 40–45% nickel, see Thermocouples and Thermoelectricity): its resistance hardly changes with temperature. Draw it as fine as you can — 0.03–0.05 mm (Iron and Brass Wire). Constantan 0.05 mm across has a resistance of about 250 Ω per metre.
  2. Grid. On a board, set two rows of fine pins 2 cm apart, and wind the wire back and forth between them, a dozen or so loops — about 0.5 m of wire, 120 Ω. Lay a piece of thin tissue paper brushed with shellac or Bakelite varnish over it, press, let it dry, then pull out the pins. Solder heavier copper leads to the two ends.
  3. Prepare the steel. File and sand the surface bright, then clean it with alcohol. No finger marks.
  4. Cement. Brush varnish on the steel, press the gauge on, with its loops running along the direction of stretch, and clamp it under a rubber pad. Dry for a day, then bake at about 60 °C for some hours. The gauge must be glued over every millimetre — a loose patch reads nothing.
  5. Bridge. Make the gauge one arm of a Wheatstone bridge. Put a dummy gauge, made the same way and glued to an unloaded piece of the same steel lying beside it, in the neighbouring arm; when both warm, the bridge stays balanced. Use 2–3 V across the bridge and a sensitive galvanometer, or an amplifier.

What to expect. The resistance changes by about twice the fractional stretch (constantan's gauge factor is about 2). Steel loaded to 200 megapascals — a heavily worked part — stretches by one part in a thousand, so a 120 Ω gauge changes by only about 0.24 Ω. With 3 V on the bridge, that gives about 1.5 millivolts out. This is why the bridge and a careful galvanometer matter.

Load cell. Glue gauges to a short steel bar or ring loaded by the thing to be weighed, with gauges on both the stretched and squeezed faces in opposite arms of the bridge, which doubles the output and cancels temperature. Calibrate with known weights (Balances, Steelyards and Weighing Machines). It weighs a lorry or a sack without moving parts.

Moisture and level sensors

Soil moisture. Cast plaster of Paris (Gypsum and Plaster of Paris) round two stainless steel or carbon rods 1 cm apart, in a block about 3 cm across and 4 cm long. Soak it, then bury it at root depth. Water in the soil moves into the plaster, and the resistance between the rods falls from hundreds of thousands of ohms when dry to around a thousand ohms when wet. Read it with alternating current — a buzzer or The Induction Coil feeding a Wheatstone bridge, with an earphone to find the quiet balance point — because direct current slowly electrolyses the rods and gives false readings. Note the readings when your best gardener says "water now" and "wet enough"; those are your marks (Irrigation).

Float switch. A float (cork, or a sealed tin can) on a rod through a guide. Two adjustable collars on the rod lift and drop a snap-action lever switch: at the low collar the pump starts, at the high collar it stops. The distance between the collars sets how far the level swings, so the pump does not start and stop every few seconds (Pumps).

Electrode level sensor. For water, which conducts a little, hang three stainless steel or carbon rods in the tank: a long common rod, a high rod and a low rod. When water reaches the high rod, a small current flows and works a sensitive relay through an amplifier. The relay's own holding contact then keeps it in through the low rod until the water falls below that, which gives the same safe gap as the float. Use low-voltage AC, never mains, on the rods.

How to tell it worked

  • Photocell: a hand passed over it moves the meter clearly; a match flame at arm's length makes a visible flick.
  • Light meter: each doubling of a lamp's distance moves it down two marks; two readings of the same scene agree.
  • Beam alarm: a hand passing quickly through the beam rings the bell every time; pulling a wire or covering the lamp also rings it.
  • Thermistor: holding it between finger and thumb lowers its resistance noticeably within seconds; readings in melting ice repeat within a degree.
  • Strain gauge: pressing the bar by hand moves the galvanometer; removing the load returns it to zero.
  • Level control: the pump starts at the low mark and stops at the high mark, over and over.

Note Troubleshooting. Selenium cell hardly responds → not annealed long enough (still glassy and red); reheat at 200 °C. Or the film is too thick. Cell reading drifts and creeps → damp has got in; dry it and reseal. Beam alarm triggers on its own → daylight or a flickering lamp reaching the cell; lengthen the receiver tube or chop the beam. Thermistor reads high and creeps → self-heating; reduce the current. Strain gauge reading wanders with no load → temperature (fit a dummy gauge), or the cement is not fully dry. Moisture block reading drifts → you are using DC; switch to AC.

Dangers

Danger Selenium and its fumes are poisonous. Melting selenium gives off fumes that cause headaches, garlic-smelling breath, damaged skin, nails and lungs. Work outdoors or under a good draught, never heat it to boiling, and wash your hands before eating. See Selenium and Tellurium.

  • Metal oxide dusts. Nickel compounds cause skin allergy and, breathed over the years, lung and nose cancer; manganese dust damages the nervous system. Grind them wet, wear a cloth mask, and clean up with a damp cloth.
  • Lenses for the beam focus sunlight just as well and can start fires if left in a sunny window.
  • Mains. Lamps, amplifiers and relays run from mains must follow Wiring and Electrical Safety. Never put mains on electrodes in water.
  • Kiln work for thermistors: see The Kiln.

What this unlocks

Photocells read punched tape and cards for The Computers (Displays, Printers and Data Storage), carry pictures in Cathode Rays and Television and sound on film, and measure light for Photography. Beam counters and level sensors run factories and waterworks without watchers (Process Controllers and Control Valves), and their readings can be sent by wire or radio to a distant control room (Telemetry and Remote Control). Thermistors and wire thermometers feed electronic Thermostats and Automatic Control. Strain gauges test bridges, Gliders and Aeroplanes and engines, and weigh everything from letters to lorries. Joined to counters and relays, sensors are the senses of every automatic machine.

How it was first done

In 1873 Willoughby Smith, a telegraph engineer testing undersea cables, noticed that selenium resistors changed their value in sunlight. In 1876 William Grylls Adams and Richard Day found that light could make selenium produce a current by itself, and in 1883 Charles Fritts in New York made the first selenium cells with gold-leaf fronts. Alexander Graham Bell used selenium cells in 1880 in his "photophone", which carried speech on a beam of light. The German physicists Julius Elster and Hans Geitel made the first practical alkali-metal phototubes around 1890, and the Weston company's selenium "Photronic" cell made the first popular photographic light meters in the early 1930s.

Michael Faraday noticed in 1833 that silver sulfide conducted better as it warmed — the first thermistor effect. Practical oxide thermistors came from Samuel Ruben's work in 1930 and from Bell Telephone Laboratories in the 1940s. Lord Kelvin showed in 1856 that stretching a wire changes its resistance; the bonded-wire strain gauge was invented independently by Edward Simmons and Arthur Ruge in the United States in 1938, and the plaster moisture block by George Bouyoucos in 1940.

Source: content/entries/electronics/photocells-and-sensors.md