M.08 / The nervous system · ECU · Software

ELECTRONICS

ECUs orchestrate fuel, ignition, traction control, stability and driver assist. Modern cars run hundreds of millions of lines of code distributed across 70+ microprocessors talking to each other over CAN and Ethernet networks.

ELECTRONICS — reference photo
01

From points-and-condenser to CAN bus

Early cars were almost purely mechanical. The only electronics were a battery, a generator and a points-and-condenser ignition system: a mechanical cam opened a switch (the points) that collapsed current in the coil and fired the spark plug. Bosch electronic ignition arrived in the 1960s; the first production electronic fuel injection (Bosch D-Jetronic) appeared on the 1967 Volkswagen 1600. Bosch shipped the first digital engine ECU on the 1979 Motronic-equipped BMW 7 Series — one ECU controlling both ignition and injection. As more controllers were added (transmission, ABS, traction control, climate, doors), engineers needed a way for them to talk: Bosch and Intel invented the CAN bus in 1986 and it shipped on the 1991 Mercedes W140 S-Class. Today's high-end cars run 70–150 ECUs across CAN, CAN-FD, LIN, FlexRay, MOST and automotive Ethernet, with millions of lines of code. Modern EVs (Tesla, Rivian, the latest VW MEB and Mercedes MMA) are moving to zonal architectures: a small number of powerful zone controllers run software-defined functions instead of dozens of small fixed-function ECUs.

02

How automotive electronics are built

An ECU starts as a silicon die from Infineon, NXP, STMicro, Renesas or Texas Instruments — typically an automotive-qualified ARM Cortex-R/M or PowerPC microcontroller with lockstep cores for safety, hardware CAN/Ethernet, ADCs and dedicated outputs for ignition and injector drive. That die is packaged, soldered to a multi-layer printed circuit board with the connector and power-management chips, and housed in an aluminum or polymer case sealed against water, oil and vibration. The wiring harness — sometimes 4 km of wire and 3,000 individual terminals — is laid out on a board-sized fixture, cut, crimped, taped and routed through dozens of connectors. ADAS sensors add radar transceivers at 77 GHz, cameras with bespoke imaging ASICs, ultrasonic transducers and lidars (mechanical spinning, MEMS or solid-state flash). HV inverters in EVs use silicon-carbide MOSFETs that switch 800 V at tens of kilohertz to drive the traction motor — built on liquid-cooled aluminum substrates because each one dissipates kilowatts of heat.

03

How automotive software is tested

Safety-critical automotive software is developed under ISO 26262 (Functional Safety) at ASIL levels A through D — D is the highest, used for steering, braking and powertrain. SIL (Software-in-the-Loop) testing runs the code against a virtual model of the car on a workstation. HIL (Hardware-in-the-Loop) testing connects the actual ECU to a real-time simulator that pretends to be the engine, transmission, sensors and even other ECUs — engineers can run thousands of failure scenarios (sensor open, sensor short, CAN bus dropout) without touching a real car. Coding style is enforced by MISRA C/C++ guidelines, every function gets unit tests with 100% MC/DC coverage for ASIL-D code, and static analyzers (Polyspace, Coverity) prove no division by zero or null pointer dereference can happen. Final validation happens on dyno cars, prototype fleets and over-the-air shadow modes where new code runs silently next to production code so engineers can compare decisions before letting the new version actually drive.

04

The different types of automotive electronics

ECU (engine control unit): manages injection, ignition, VVT, turbo wastegates, knock, lambda. TCU (transmission control unit): runs shift logic and clutch hydraulics. BCM (body control module): lights, locks, windows, wipers. ABS/ESC controller: wheel-speed sensors and individual brake-pressure modulators. Airbag controller: crash sensors and pyrotechnic squib drivers. Battery management system (EV): cell voltage and temperature monitoring across hundreds of cells, contactor control, isolation monitoring. Motor inverter (EV): SiC power stage that turns DC battery into 3-phase AC for the motor. ADAS sensors: front-facing camera, 360° surround cameras, short- and long-range radar, ultrasonic park sensors, optional lidar. Domain/zone controllers: powerful SoCs (NVIDIA Drive, Qualcomm Snapdragon Ride, Tesla FSD, Mobileye EyeQ) that run perception, prediction and planning for self-driving. Infotainment SoC: a Snapdragon, Renesas R-Car or Intel Atom-class chip running QNX, Linux or Android Automotive. Telematics/T-Box: 4G/5G modem for OTA updates, eCall and connected services. By-wire actuators: throttle, shift, brake and now steer (Tesla Cybertruck, Lexus RZ).

05

The ECU

The Engine Control Unit reads dozens of sensors (RPM, throttle position, mass air flow, oxygen, knock, coolant temp, cam/crank position) and decides fuel injection timing, ignition timing, turbo boost and variable valve phasing dozens of times per cylinder per revolution. Modern engines literally cannot run without it. Most cars now have dedicated TCU (transmission), BCM (body), ABS, HVAC, infotainment and dozens of other modules — anywhere from 40 to 150 ECUs on a luxury car.

06

Sensors and actuators

MAF/MAP sensors measure intake air; O2/wideband sensors measure exhaust oxygen for closed-loop fueling; knock sensors detect detonation; wheel-speed sensors feed ABS, ESC and the speedometer; yaw, pitch, roll and lateral G sensors live in an Inertial Measurement Unit; ride-height sensors tell active suspension what to do; rain sensors trigger wipers. Actuators include injectors, ignition coils, throttle motors, wastegate solenoids, VVT solenoids, ABS modulators, and active damper valves.

07

CAN bus and vehicle networks

Modules talk to each other over CAN bus — a robust two-wire serial protocol invented by Bosch in the 1980s. High-speed CAN (500 kbps) carries powertrain data; low-speed CAN handles body modules; CAN-FD (2–8 Mbps) speeds up the backbone. Newer architectures (Mercedes EQS, Tesla, Rivian, BMW Neue Klasse) move to automotive Ethernet (100 Mbps to 1+ Gbps) to handle the bandwidth that cameras, lidar and infotainment now demand. FlexRay survives in some chassis-control systems.

08

Traction and stability control

Wheel-speed sensors and the IMU tell a controller if a wheel is spinning faster than the others (loss of traction = TCS intervenes by cutting power and braking the spinning wheel) or if the car is rotating differently from how the steering wheel is pointed (loss of stability = ESC brakes individual wheels to yaw the car back). Switchable on almost every performance car; partly switchable on most others. EuroNCAP and FMVSS 126 mandate ESC on all new cars in the EU and US.

09

Drive-by-wire (throttle, brakes, steering)

Drive-by-wire decouples a pedal or the steering wheel from its mechanical linkage. The pedal becomes a sensor; an actuator does the actual work; software decides what to do with the input. Throttle-by-wire (universal since the 2000s) is what lets a Ferrari deliver perfectly metered throttle in Wet mode and full ballistic response in Race. Brake-by-wire (Alfa Giulia, hybrid Ferraris, every EV) blends regen and friction. Steer-by-wire (Infiniti Q50, Lexus RZ, Tesla Cybertruck) eliminates the steering shaft entirely and lets the car vary ratio dramatically.

10

ADAS

Advanced Driver Assistance Systems use cameras, radar, lidar and ultrasonic sensors to track lanes, vehicles, pedestrians and signs. Adaptive cruise, lane-keep assist, blind-spot monitoring, automatic emergency braking, traffic-sign recognition and self-parking all live here. SAE Level 2 (Tesla Autopilot, Ford BlueCruise, GM Super Cruise) keeps the driver responsible at all times. Mercedes Drive Pilot is Level 3 (hands-off, eyes-off) on certain German autobahns and parts of California/Nevada — the first certified L3 system in production.

11

Sensor suites

Modern ADAS cars combine forward and surround cameras (1–8 MP, 30–120 fps), short- and long-range radar (76–81 GHz, 200+ m range), 12 ultrasonic sensors for parking, and increasingly lidar (Lucid Air, Volvo EX90, Polestar 3, Mercedes EQS Pilot — 905 nm or 1,550 nm time-of-flight). Tesla famously rejects lidar; Mercedes, Waymo and most Chinese OEMs embrace it. Sensor fusion in the central compute stack reconciles all of them into one world model.

12

Domain controllers and central compute

Old cars distributed compute across many small ECUs. New EV architectures consolidate into a few powerful 'domain controllers' (powertrain, chassis, infotainment, ADAS) or even one central compute unit (Tesla HW4, Rivian, Lucid, Zeekr, Mercedes MB.OS). Software-defined-vehicle (SDV) strategies aim for cloud-style continuous deployment so the car you bought gains features over years.

13

Infotainment and operating systems

Modern cars are computers with wheels. Touchscreens, voice assistants, smartphone projection (CarPlay, Android Auto), navigation, streaming and app stores run on either custom RTOS-based stacks (BMW iDrive 8/9), QNX (BlackBerry, used by many OEMs), Linux (Tesla, Rivian, Lucid), Android Automotive (Polestar, Volvo, Renault, GM) or proprietary stacks (Mercedes MB.OS). Hardware ranges from one Cortex-A processor to Snapdragon 8295 SoCs in flagships.

14

OTA updates

Over-the-air updates let manufacturers add features, fix bugs and even change vehicle behavior after delivery. Tesla pioneered full-stack OTA in 2012; Rivian, Lucid, Ford BlueOval, GM Ultifi, Mercedes MB.OS, BMW iDrive 8.5 and Stellantis STLA now offer broad OTA scopes. OTAs can also enable subscription features (BMW heated seats, Mercedes EQS rear-axle steering), which is controversial but increasingly common.

15

Cybersecurity

Connected cars are attackable. The 2015 Jeep Cherokee hack (Miller & Valasek) remotely controlled brakes and steering and forced a 1.4 million vehicle recall. UN R155 (2024) and ISO/SAE 21434 now require automotive cybersecurity management systems — secure boot, signed firmware, intrusion detection, segmented networks and continuous OTA security patches.

16

Battery management (BMS)

EV battery packs are managed by a BMS that monitors voltage, current and temperature of every cell, balances charge across cells, controls cooling, and decides charge/discharge limits to maximize life. Tesla's BMS pioneered cell-level monitoring of 7,000+ small 18650/21700/4680 cells; pouch and prismatic packs (Hyundai, Lucid, BYD) monitor at the module level. A weak BMS shortens battery life and is dangerous; a great BMS gives a car its 8-year/100,000+ mile warranty.

17

12 V, 48 V and high-voltage architectures

Every car still has a 12 V system for lights, ECUs and starter. Mild hybrids and many luxury cars add a 48 V system that powers eARS active anti-roll, electric superchargers, and bigger starter/generators. Full hybrids and EVs add a high-voltage bus (typically 400 V; 800 V on Porsche Taycan, Hyundai Ioniq 5/6, Kia EV6, Lucid Air and many new EVs for faster charging). DC-DC converters keep the 12 V system fed from the HV bus.

Other systems

M.01
Engine

Internal combustion engines burn fuel to push pistons; electric motors replace combustion with magnets and current for instant torque. This is the deepest, most consequential system in any car — everything else exists to manage what the engine produces.

M.02
Transmission

Translates engine RPM into wheel speed via gears. The bridge between an engine's narrow powerband and the wide range of speeds a car has to drive at, and one of the biggest contributors to how a car feels.

M.03
Drivetrain

RWD pushes from the back, FWD pulls from the front, AWD splits torque to all four wheels. Differentials let inside and outside wheels rotate at different speeds, and modern systems can vector torque per wheel for impossible cornering.

M.04
Suspension

Springs and dampers absorb bumps and keep tires planted. Geometry decides how the wheel moves relative to the car. Active and air systems adjust ride height and stiffness on the fly. Suspension is where a car's character is set.

M.05
Brakes

Calipers squeeze pads against rotors, converting motion into heat. Carbon-ceramic resists fade; ABS keeps you steering; brake-by-wire blends regen with friction; the right brakes save lives.

M.06
Chassis

The structure everything bolts to. Steel unibody for daily cars, aluminum spaceframes for sports cars, carbon-fiber monocoques for hypercars. Stiffness, weight and crash performance all start here.

M.07
Aerodynamics

Splitters, diffusers and wings shape air to reduce lift, add downforce or cut drag. Active aero adapts at speed. Above ~150 km/h air becomes the most powerful force acting on the car.