How the computers in a car work

A free course on how car computers work: 77 lessons on sensors, actuators, CAN, diagnostics, calibration, EVs and functional safety.

01. Foundations

What an ECU is, what is inside one, and the loop every ECU runs.

  • What an ECU Does: Follow one engine cycle from a sensor tooth to a spark, and see why it takes a computer.
  • Inside an ECU: Open the aluminium box: power supply, input conditioning, microcontroller, output drivers, transceivers.
  • Analog, Digital & PWM Signals: Voltages, frequencies and duty cycles: the three languages sensors and actuators speak.
  • Sensors & Actuators: A tour of the parts an ECU listens to and the parts it drives.
  • Open & Closed Loop Control: Feed-forward tables, feedback correction and PID — the maths behind every ECU decision.
  • Real-time Deadlines: Why "fast enough on average" is not good enough, and how ECUs schedule work by angle and by time.

02. Engine Management

How the engine control module turns air, fuel and spark into torque.

  • Crank & Cam Position: Trigger wheels, missing teeth and cam phase: how the ECU knows exactly where every piston is.
  • Measuring Air: MAF vs MAP: Mass airflow and speed-density, and why the ECU cares about grams of air per cylinder.
  • Fuel Injection: From a fuel mass to an injector pulse — port injection, direct injection and their drivers.
  • Ignition Timing & Knock: Dwell, spark advance and the knock sensor that keeps the engine on the edge of safety.
  • Lambda & Fuel Trims: Narrowband and wideband oxygen sensors, short-term and long-term fuel trims.
  • Electronic Throttle: Drive-by-wire: pedal sensors, the throttle motor, and the torque-based structure behind it.
  • Idle Control: Holding 750 rpm while the A/C, alternator and steering pump all grab torque.
  • Emissions: Catalyst, EGR & EVAP: How the ECU keeps the catalytic converter working and checks it is still there.
  • Turbo Boost Control: Wastegates, boost targets and protecting a turbocharger from itself.
  • Variable Valve Timing: Cam phasers, oil control valves and closed-loop cam position control.
  • Diesel Common Rail: Rail pressure control, pilot injections and exhaust after-treatment.
  • Calibration Maps: Tables, curves and constants: how one software build becomes hundreds of vehicle variants.

03. Transmission & Driveline

Gearboxes, clutches and differentials under electronic control.

04. Electric Powertrain

Battery, inverter, motor, charger — and the ECUs that keep them safe.

  • EV Architecture: Meet the EV ECUs: vehicle control unit, BMS, inverter, on-board charger and DC-DC converter.
  • Battery Management: Cell monitoring, state of charge, state of health, balancing and contactor control.
  • Inverter & Motor Control: Turning DC into a rotating field: PWM, field-oriented control and resolvers.
  • Regenerative Braking: Blending motor braking with friction brakes without the driver feeling the seam.
  • Charging: AC on-board charging, DC fast charging and the conversation between car and charger.
  • Thermal Management: Heat pumps, chillers and coolant valves — the ECU that decides where heat goes.
  • Hybrid Energy Management: Deciding, many times per second, whether the engine, the motor or both should drive.
  • High-Voltage Safety: Interlock loops, isolation monitoring, pre-charge and crash disconnects.

05. Vehicle Networks

How dozens of ECUs share one set of wires — CAN, LIN, FlexRay and Ethernet.

  • CAN Bus Basics: Two twisted wires, many ECUs, and a protocol designed for noisy cars.
  • Arbitration & Priorities: How two ECUs that start talking at once resolve it without losing a bit.
  • Frames, Signals & DBC: Inside a CAN frame, and how a DBC file turns bytes into "vehicle speed = 87 km/h".
  • CAN FD & CAN XL: Faster data phases and bigger payloads for modern software-heavy cars.
  • Error Handling & Bus-off: Error frames, error counters, and how a faulty ECU removes itself from the bus.
  • LIN Bus: The cheap single-wire bus for mirrors, seats, wipers and window switches.
  • FlexRay: Time-triggered, deterministic and dual-channel — built for chassis control.
  • Automotive Ethernet & SOME/IP: Single-pair 100/1000 Mbit links, switches, and service-oriented communication.
  • Gateway ECU: The router in the middle: routing, filtering, and guarding the diagnostic port.

06. Chassis & Safety

Brakes, stability, steering and airbags — the ECUs that must never be late.

07. Body & Comfort

Lights, locks, climate and screens — the ECUs you touch every day.

08. ADAS & Automation

Cameras, radar and the ECUs that steer and brake on your behalf.

09. Diagnostics

How ECUs watch themselves, store faults and talk to the workshop.

10. ECU Software

How ECU software is structured, built, tested and updated.

11. Safety & Security

Making ECUs that fail safely and cannot be hijacked.

12. Whole Systems

Put it all together: architectures and end-to-end traces.