Lidar measures distance by timing a laser pulse out and back

A self-driving test car in a city, a survey plane over a rainforest and a satellite over Antarctica carry the same idea: fire a short flash of laser light, wait for it to bounce back, and time the wait. That instrument is lidar (light detection and ranging). NOAA describes it as "a remote sensing method that uses light in the form of a pulsed laser to measure ranges".

15 cm range error from one nanosecond of timing error; 905 / 1550 nm the two common laser wavelengths; 200 km² of a Maya city mapped under forest in 2009; 10,000 pulses a second from the ICESat-2 satellite

In short

How does timing a flash of light give a distance?

Light in air moves at almost 300,000 kilometres a second, the figure Royo and Ballesta-Garcia use (c = 3 × 10⁸ m/s). Divide that by a billion and you get the number that runs through the rest of this lesson: in one nanosecond, light travels about 30 centimetres (our arithmetic).

A lidar fires a pulse, and a detector beside the laser waits for the echo. The pulse goes out and comes back, so the distance to the surface is half the round trip: range = speed of light × time ÷ 2. This is time of flight (ToF), and Li and Ibanez-Guzman write it the same way, with a correction for the air's refractive index, which they put at about 1.

  1. Fire a pulse — the laser sends a flash a few nanoseconds long and starts a clock.
  2. The light travels out — at about 30 cm a nanosecond, to whatever surface is in the way.
  3. The echo comes back — a little of the light bounces back to the detector beside the laser.
  4. The clock stops — the time between flash and echo is the round trip.
  5. Halve it — range = speed of light × time ÷ 2, because the light made the trip twice.

A worked number (ours). A wall 15 metres away sends the echo back after 30 metres of travel, which takes 100 nanoseconds. If the clock is off by 1 nanosecond, the computed distance is off by 15 cm, not 30, because the error is shared by the two legs. Royo and Ballesta-Garcia give the practical figure: timing electronics that resolve about 0.1 ns give a depth resolution of about 1.5 cm, limited by jitter and noise.

Interactive calculator: light takes about 667 nanoseconds to reach something 100 metres away and come back.

IMAGE 1 (to generate): the out-and-back measurement with the timing. Caption: Time of flight: the pulse makes the trip twice, so the distance is half of what light covers in the measured time. Prompt: One set of five plates in the tradition of nineteenth-century surveyor's plates and instrument drawings, crossed with the look of a lidar scan: hairline technical linework in muted sepia and graphite ink on warm off-white paper, sparse fields of fine stippled dots standing for laser returns, one cool cyan-blue accent used only for the laser beam and its echo. Quiet, precise, generous white space, subtle shading by fine hatching. No text, no labels, no numbers, no letters, no logos, no faces, no photographs, no glow effects, no neon, no gradients backgrounds. Aspect ratio 3:2. a side elevation. On the left, a compact cylindrical instrument drawn as an engineering elevation with fine hatching. A single thin cyan line runs horizontally to a flat stone wall on the right, drawn in section; a second parallel cyan line, slightly fainter, returns from the wall to the instrument. Below the two lines, a long horizontal rule with evenly spaced fine tick marks like a surveyor's chain, spanning the full out-and-back path. A small pocket-watch-like dial drawn in hairline beside the instrument. A few stippled dots on the wall where the light lands. 3:2.

The pulse rate sets a second limit. If the next pulse leaves before the last echo returns, the instrument cannot tell which pulse an echo belongs to. Royo and Ballesta-Garcia call this the ambiguity distance. At pulse rates close to a megahertz it is about 150 metres, which is the distance light can go out and back between two pulses a microsecond apart.

Then comes the signal itself. Li and Ibanez-Guzman's power equation says the light that comes back falls with the square of the distance: a target a few hundred metres away is "orders of magnitude" darker than one at tens of metres. It also scales with how well the surface reflects and how much the air in between absorbs. Distance, reflectance and air explain most of what lidar can and cannot do.

Are there other ways to measure distance with light?

Yes. The two reviews name two others, and each trades something.

Phase measurement (amplitude-modulated continuous wave, AMCW). Instead of flashes, the light source (usually an LED rather than a laser, Royo and Ballesta-Garcia note) shines continuously and its brightness rises and falls at a fixed frequency in the megahertz range. The echo comes back with the same rhythm, shifted. The size of the shift gives the distance. The catch is that the rhythm repeats: once the shift passes a full cycle, a far target looks like a near one. Royo and Ballesta-Garcia describe a "significant trade-off" between the longest unambiguous range and the resolution. For a feel of the numbers (ours): at 10 MHz, the pattern repeats every 30 metres of round trip, so anything beyond 15 metres is ambiguous. They say these sensors have been sold as "TOF cameras" since the 1990s and work best indoors.

Frequency-modulated continuous wave (FMCW). Here the laser's colour, its optical frequency, is swept up and down in a ramp. The returning light is mixed with a copy of the light still leaving the laser, and the beat between them shows how long the echo took. If the target is moving, the Doppler effect shifts the echo's frequency as well, so FMCW reads speed and distance from one measurement. Li and Ibanez-Guzman give the speed as v = f_d × λ / 2. A worked number (ours): at a wavelength of 1550 nm, a car closing at 1 metre per second shifts the light by about 1.3 MHz.

Source: Royo and Ballesta-Garcia (2019) section 2.1; Li and Ibanez-Guzman (2020) section II-A. The table's wording is ours.

What is inside a lidar?

Four things: a laser, something that points it, a detector, and a clock.

The laser. Car lidars mostly use pulsed laser diodes, Li and Ibanez-Guzman say: cheap, and their 905 nm light can be read by cheap silicon detectors, but limited in repetition rate and peak power. Fibre lasers give more power and better beams, but they are bulkier.

The pointer. A single beam measures a single spot, so the beam has to be swept across the scene. The reviews describe four ways to do it:

IMAGE 2 (to generate): the four ways of pointing the beam, side by side. Caption: Four ways to point the beam: a spinning assembly, a MEMS mirror on a chip, an optical phased array with no moving parts, and flash illumination of the whole scene at once. Prompt: One set of five plates in the tradition of nineteenth-century surveyor's plates and instrument drawings, crossed with the look of a lidar scan: hairline technical linework in muted sepia and graphite ink on warm off-white paper, sparse fields of fine stippled dots standing for laser returns, one cool cyan-blue accent used only for the laser beam and its echo. Quiet, precise, generous white space, subtle shading by fine hatching. No text, no labels, no numbers, no letters, no logos, no faces, no photographs, no glow effects, no neon, no gradients backgrounds. Aspect ratio 3:2. a plate of four equal panels in a row, like a page of instrument figures. Panel 1: a cylindrical head on a shaft with a curved arrow-free motion suggested by faint concentric arcs, a cyan beam leaving it. Panel 2: a tiny square mirror suspended on two thin torsion bars over a square chip, the cyan beam bouncing off it at an angle. Panel 3: a flat rectangular chip with a fine regular grid of emitters, a single cyan beam leaving at a slant from the grid's surface. Panel 4: a small box emitting one wide cyan cone onto the scene, with a camera-like grid of tiny squares on the box face receiving it. Each panel framed by a thin ruled border. 3:2.

The detector. An avalanche photodiode (APD) multiplies the small current from each photon. Li and Ibanez-Guzman put its gain at around 100. A single-photon avalanche diode (SPAD) is biased so hard that one photon sets off an avalanche, with a gain they give as about a million. SPADs can be built in arrays on ordinary chips. Silicon detectors work up to about 1,000 nm; beyond that, up to about 1,700 nm, detectors are made of indium gallium arsenide (InGaAs).

The clock. It has to resolve a fraction of a nanosecond, because every nanosecond is 15 cm.

What gets harder with range. Because the echo fades with the square of distance, doubling the range leaves about a quarter of the light (our arithmetic from their equation). Turning up the laser is limited by eye safety, so the gains have to come from better optics, more sensitive detectors and better signal processing, the review says.

Why 905 nm or 1550 nm, and what does eye safety have to do with it?

Both wavelengths are infrared and invisible. Li and Ibanez-Guzman list what decides between them: the atmosphere's transmission windows, eye safety and cost.

Source: Li and Ibanez-Guzman (2020) section II-B; Royo and Ballesta-Garcia (2019) section 3.1.

The eye explains the power difference. OSHA's technical manual says light from 0.35 to 1.4 micrometres passes through the eye to the retina, and lists "retinal burns" for the 0.78 to 1.4 micrometre band. Light from 1.4 to 3 micrometres is listed as causing corneal burns instead, and falls outside the band the manual says the eye transmits. So, by our reading of OSHA's bands, 905 nm reaches the retina and 1550 nm does not. Royo and Ballesta-Garcia say 1.55 micrometres "enables much more power within the eye safety limit defined by Class 1".

That class comes from the international laser-safety standard, IEC 60825-1. The US FDA lists the IEC classes beside its own: Class 1 and 1M, "considered non-hazardous" (the class of laser printers and CD players); 2 and 2M; 3R; 3B, an "immediate eye hazard when viewed directly"; and 4, a hazard even from reflected light. Class 1 is the limit Royo and Ballesta-Garcia measure lidar power against, and the cap on power is why flash lidars are short-ranged, why time-of-flight range is "constrained by limited transmit power", and why some makers moved to 1550 nm, as the automotive review describes.

What is a point cloud, and how do you see the ground under a forest?

Each echo becomes a point. NOAA explains that the range is combined with the aircraft's position from GPS, its orientation from an inertial measurement unit (IMU) and the scan angle, so every point gets latitude, longitude and height. The result is a "point cloud". Each point also carries an intensity, how strongly the surface reflected the light, which looks like a black-and-white photograph but cannot be read the same way, NOAA says.

The numbers are large. NOAA's guide, from 2012, says airborne systems then commonly fired 50,000 to 150,000 pulses a second, up to 300,000.

One pulse, several echoes. A laser footprint over a forest is wide enough that part of it hits the top leaves, part a branch lower down, and part the ground. NOAA says many systems record up to five returns per pulse, which adds 30% or more to the data. Chase and colleagues describe it this way: the uppermost return is usually the canopy surface, the lowest is the ground, and the ones in between describe the canopy's structure.

IMAGE 3 (to generate): one pulse returning several times through a forest canopy. Caption: One pulse, several returns: the first from the canopy top, the last usually from the ground, those between from branches and understory. Prompt: One set of five plates in the tradition of nineteenth-century surveyor's plates and instrument drawings, crossed with the look of a lidar scan: hairline technical linework in muted sepia and graphite ink on warm off-white paper, sparse fields of fine stippled dots standing for laser returns, one cool cyan-blue accent used only for the laser beam and its echo. Quiet, precise, generous white space, subtle shading by fine hatching. No text, no labels, no numbers, no letters, no logos, no faces, no photographs, no glow effects, no neon, no gradients backgrounds. Aspect ratio 3:2. a botanical-survey cross-section of a temperate forest, three or four trees drawn in fine linework with gaps in the canopy. From the top edge, one narrow cyan cone of light descends. Where it meets surfaces, small tight clusters of stippled dots: one cluster on the crown top, one on a middle branch, one on a low shrub, one on the ground line. Faint thin cyan echoes rise back from each cluster. The ground drawn as a gently sloping hatched profile. 3:2.

Finding the ground. Software then sorts the points. Most producers use the classification scheme of the American Society for Photogrammetry and Remote Sensing (ASPRS), where class 2 is ground, 3 to 5 are low, medium and high vegetation, 6 is building and 9 is water. Keep only the ground points and join them into a surface, and you have a bare-earth digital elevation model (DEM). NOAA's rule of thumb: "if you can look up and see the sky through the trees, then that location can be measured with lidar". Dense forests with few openings give poor ground coverage, and the automated filters sometimes call a bush the ground.

IMAGE 4 (to generate): a point cloud of a forested hillside beside its bare-earth model. Caption: The same hillside as a point cloud (left) and as a bare-earth model made from the ground returns only (right). Prompt: One set of five plates in the tradition of nineteenth-century surveyor's plates and instrument drawings, crossed with the look of a lidar scan: hairline technical linework in muted sepia and graphite ink on warm off-white paper, sparse fields of fine stippled dots standing for laser returns, one cool cyan-blue accent used only for the laser beam and its echo. Quiet, precise, generous white space, subtle shading by fine hatching. No text, no labels, no numbers, no letters, no logos, no faces, no photographs, no glow effects, no neon, no gradients backgrounds. Aspect ratio 3:2. two panels of equal size, the same forested hillside seen in the same oblique bird's-eye view. Left panel: the hill entirely covered by tree crowns rendered as a sparse-to-dense field of fine stippled dots in sepia, the slope barely visible. Right panel: the trees removed; the bare ground drawn as a smooth shaded relief in fine contour hatching, revealing gentle stepped terraces and a faint winding path, the way an engraved relief map shows landforms. A single thin cyan line marks one contour on each panel to tie them together. 3:2.

NOAA puts the absolute accuracy of lidar elevations at 15 to 30 cm for older data and 10 to 20 cm for more recent data, with relative heights (a roof, a dune) even better. Most airborne platforms cover about 50 square kilometres an hour.

Where did lidar come from?

Five moments carry the story, each one solving the problem the last one left open: the laser itself, then a target far away, then a moving aircraft, then a forest in the way, then a single photon from orbit.

1964: NASA's GODLAS ruby laser tracks the satellite Explorer 22 on 31 October, at about 600 miles, to about 3 metres; tracking radars managed about 75 metres. 1971: Apollo 15 carries a laser altimeter to the Moon and measures its height above the surface to within about 2 metres, once per mapping-camera frame. 1980s–1990s: GPS, then better IMUs, make airborne lidar practical, with decimetre accuracy by the early 1990s and early units firing 10,000 pulses a second. 2009: A survey flight over Caracol in Belize maps about 200 square kilometres of a Maya city under tropical forest: causeways, terraces, reservoirs and caves. 2018: ICESat-2 launches on 15 September with a laser that counts single photons, to measure ice sheets, sea ice and tree height from orbit.

The first entry shows why the idea took hold so fast. Royo and Ballesta-Garcia date laser rangefinding to 1960 and the ruby laser; four years later, NASA's history of satellite laser ranging records GODLAS reading a satellite's distance twenty-five times more precisely than radar could, by bouncing light off glass corner reflectors on Explorer 22. The Apollo 15 instrument did not last: NASA's catalogue says it began to fail on the 24th revolution and stopped by the 38th.

Airborne survey needed something the ground stations never did: knowing where the aircraft was at every pulse. NOAA's guide says lidar first studied the atmosphere from fixed sites, and it was GPS in the 1980s and better inertial units in the early 1990s that let a moving aircraft keep track of itself well enough. Mapping water depth was among the first airborne uses, because the water surface gave a reference.

The Caracol survey, flown in April 2009 by the National Center for Airborne Laser Mapping, was the first lidar test in the Maya area, Chase and colleagues write. Its bare-earth model covers 199.7 square kilometres, and the researchers checked it against 23 square kilometres they had mapped on foot over decades.

ICESat-2 takes the opposite approach to brute force. NASA's specification page lists six green beams at 532 nm, 10,000 pulses a second (about one every 0.7 metres along the ground), an orbit of about 500 km and a single-photon timing precision of 800 picoseconds, which by our arithmetic is about 12 cm of range per photon. Over the ice-sheet interior NASA expects only about 0.4 to 12 signal photons per shot; combining 100 shots brings the spread down to 2 to 9 cm.

Where does lidar beat cameras and radar, and where does it lose?

Lidar's advantage is direct, illumination-independent 3D measurement: it brings its own light, so it works in the dark, and it measures distance rather than inferring it. Radar's advantage is weather. Cameras are cheap and give dense images at a high frame rate, the pseudo-lidar authors note. The losses are where the physics turns against each one.

LidarCameraRadar
Brings its own light, so it works in the darkCheap, with dense images at a high frame rateLeast affected by fog, rain and snow
Measures distance directly, in high-resolution 3DHighest detail, but no direct depthUses radio, so strong light does not bother it
Loses range in fog, heavy rain and dustGlare, fog or a dirty lens can blind itLow resolution: weak at shape and pedestrians

In detail, condition by condition:

Sources: Zhang et al. survey (weather, dust, light, radar); Li and Ibanez-Guzman (sunlight, interference, power equation); NOAA Lidar 101 (water, dark and bright surfaces). The physical explanations for dark surfaces and mirror-like surfaces are ours.

Some numbers from the weather survey. In heavy rain of 25 mm an hour, 77 GHz car radar loses about 10 dB per kilometre; 905 nm lidar loses about 35 dB per kilometre under the same low visibility. In a fog-chamber test the survey cites, a person was detectable only 13 metres ahead in dense fog, with very few points, and from 47 metres in lighter fog. Many lidars can be switched to report the last return instead of the strongest, and in thickening fog the last return matches the clear-weather scene better. Cameras suffer too: the survey cites one camera-in-the-loop test with up to a 40% rise in missed detections at night or in fog.

IMAGE 5 (to generate): the fog failure, a beam scattered back by droplets before it reaches a car. Caption: In fog, droplets scatter the light near the sensor, so less reaches distant objects and fewer echoes come back. Prompt: One set of five plates in the tradition of nineteenth-century surveyor's plates and instrument drawings, crossed with the look of a lidar scan: hairline technical linework in muted sepia and graphite ink on warm off-white paper, sparse fields of fine stippled dots standing for laser returns, one cool cyan-blue accent used only for the laser beam and its echo. Quiet, precise, generous white space, subtle shading by fine hatching. No text, no labels, no numbers, no letters, no logos, no faces, no photographs, no glow effects, no neon, no gradients backgrounds. Aspect ratio 3:2. a side view of a straight road receding to the right, drawn in fine perspective lines. On the left a simple car silhouette in hairline outline with a small sensor on its roof. A cyan beam leaves the sensor and quickly frays into many tiny scattered cyan points among a soft field of stippled fog droplets that fills the middle of the plate. Further ahead, a second car outline is drawn faint and partly dissolved, with only a handful of dots on its rear. No headlights glow. 3:2.

Do self-driving cars need lidar?

This is an open argument, and each side has stated its position.

The physics in this lesson explains each side. Cameras do not measure distance directly; they infer it. Lidar measures it, but it loses light in fog and to eye-safety limits. Radar gets through weather but sees coarse shapes. Which mix is enough for a car without a driver is a question the companies answer differently.

Terms in plain English

Point cloud
the set of measured points, each with position and intensity
Multiple returns
several echoes from one pulse, from leaves, branches and ground
Bare-earth DEM
a height map made from the points classified as ground
IEC 60825-1 Class 1
the international laser-safety class considered non-hazardous to the eye

(Definitions in our words, drawn from the sources below.)

Sources

Cover: point cloud of a San Francisco intersection, about 23 million points captured over 18 seconds by a lidar on a moving car. Daniel L. Lu, Wikimedia Commons, CC BY 4.0, cropped.

Sources

Related stories

More from Gear Gang

All stories from Gear Gang