Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Self-driving cars combine mechanical engineering, electrical engineering, computer science, and physics to move safely without constant human control. They must sense the road, understand the environment, predict what other road users might do, and choose safe actions in real time. This matters because autonomous vehicles could reduce crashes, improve mobility, and make transportation more efficient.

Every decision depends on accurate measurements, fast computation, and careful control of the vehicle.

Understanding How Self-Driving Cars Work

No single sensor gives a perfect view of the road. Cameras capture color, lane paint, traffic lights, signs, and the shape of people. Their performance drops in darkness, glare, fog, heavy rain, or when a lens is dirty.

Radar works well through some poor weather and can measure how fast another vehicle is approaching or moving away. It has less detail, so it may confuse nearby objects or receive reflections from metal surfaces.

Lidar creates a detailed three-dimensional pattern of distance points, but rain, snow, dust, and dark surfaces can reduce useful returns. Engineers compare these measurements because agreement increases confidence and disagreement signals uncertainty.

The software must turn raw sensor readings into useful objects and road features. It identifies vehicles, cyclists, pedestrians, curbs, lanes, open space, and obstacles. This is difficult because the same object can look very different from different angles.

A child partly hidden behind a parked van may only appear as a small moving shape. The system keeps track of objects over several moments instead of treating each camera frame as a separate scene. It combines motion, location, size, and sensor evidence to estimate where each object is likely to be.

It must locate its own vehicle accurately too. Satellite positioning may drift or become unavailable near tall buildings, so maps, wheel rotation sensors, and motion sensors help estimate position.

Planning is more than following lane lines. The vehicle needs a safe route through a changing space. It creates several possible future paths, then rejects paths that break rules, leave the road, come too close to obstacles, or require harsh braking.

It estimates where nearby road users may go next. A car near an intersection could turn, continue ahead, or stop suddenly. A pedestrian near a crossing may step into the road.

Predictions are never certain, so planners leave safety margins. They usually choose a path that is safe, comfortable, legal, and efficient rather than merely the shortest.

The available grip of the tires matters. On a wet or icy road, safe braking and turning need much more distance.

The final control stage converts a chosen path into physical actions. Steering changes the direction of the tires, while throttle and brakes change speed. The car repeatedly measures its position, heading, speed, and sideways motion.

If it begins to drift from the planned path, the controller makes a small correction. Corrections must be smooth because delayed or overly strong steering can cause swerving. Students should pay attention to time delay, measurement error, friction, and uncertainty.

These ideas explain why a system may slow down well before a hazard is obvious to a person. Safe design includes fallback behavior such as reducing speed, warning a human driver, or stopping in a safer location when sensor data or software confidence becomes too weak.

Key Facts

  • Stopping distance = reaction distance + braking distance
  • For constant deceleration, v^2 = v0^2 + 2aΔx
  • Sensor fusion combines lidar, radar, cameras, GPS, and inertial sensors to estimate the car's surroundings.
  • Lidar measures distance using time of flight: distance = cΔt/2, where c is the speed of light.
  • Radar estimates relative speed using the Doppler effect, which helps track moving vehicles.
  • A control system reduces error by comparing the desired path with the actual path and adjusting steering, braking, or acceleration.

Vocabulary

Lidar
Lidar is a sensing method that uses laser pulses to measure distances and build a 3D map of nearby objects.
Sensor fusion
Sensor fusion is the process of combining data from multiple sensors to create a more reliable estimate of the environment.
Perception
Perception is the software task of identifying lanes, signs, vehicles, pedestrians, and obstacles from sensor data.
Path planning
Path planning is the process of choosing a safe and efficient route and motion path for the vehicle to follow.
Feedback control
Feedback control uses measurements of the car's actual motion to correct errors in speed, position, and steering.

Common Mistakes to Avoid

  • Assuming one sensor is enough. A single camera, radar, or lidar can fail or miss information, so autonomous cars use sensor fusion for redundancy and accuracy.
  • Confusing perception with decision making. Detecting a pedestrian is not the same as deciding whether to slow down, stop, or change lanes.
  • Ignoring stopping distance at high speed. Braking distance increases strongly with speed, so a car traveling twice as fast needs much more than twice the distance to stop.
  • Treating GPS as perfectly accurate. GPS can be blocked or reflected by buildings, so self-driving cars also use maps, wheel sensors, cameras, lidar, radar, and inertial measurement units.

Practice Questions

  1. 1 A lidar pulse returns to the car after 200 ns. Using c = 3.0 x 10^8 m/s, how far away is the object?
  2. 2 A self-driving car moves at 20 m/s and brakes with a constant acceleration of -5 m/s^2. How much distance does it need to stop?
  3. 3 A camera sees a lane marking clearly, but radar detects a large object ahead in heavy rain. Explain why sensor fusion is safer than trusting only the camera.