Self-Driving Car Simulator
Explore sensors, write your own if-then driving rules, then switch to an AI learned policy โ and discover why you can never write enough rules for every situation!
How Self-Driving Cars Work
Sense
LiDAR, cameras, and radar scan the environment 360ยฐ hundreds of times per second, building a 3D map.
Perceive
AI classifies what each sensor reading means: pedestrian, car, road edge, traffic sign.
Plan
Path planning algorithms choose the safest route โ balancing speed, safety, comfort, and traffic rules.
Act
Steer, accelerate, brake โ smooth and safe commands to the vehicle's physical control systems.
Step 1 โ Sensor Explorer
๐ก Sensor Readings
๐ด LiDAR โ laser distance measurement (360ยฐ)
๐ท Camera โ colour, signs, pedestrians
๐ถ Radar โ speed of other vehicles
๐ฐ๏ธ GPS โ global position
Step 2 โ Write Your Driving Rules
0/5 scenarios passed๐ Your Rule Set (drag to reorder)
Step 3 โ AI Learned Policy vs Your Rules
Step 4 โ Edge Case Testing
Self-Driving AI Badge!
You explored sensors, wrote driving rules, and compared them to AI policies!
Optional. Stays on this device only โ not sent to WhizzStep.
Key Concepts Mastered
๐ก Laser Mapping
Fires 128+ laser beams per rotation, measuring distances to build a precise 3D point cloud of the environment.
๐ง Rules vs Learning
Rich Sutton's famous insight: general methods that learn from data beat hand-crafted approaches โ every time, at scale.
โ ๏ธ The Long Tail
Rare situations that rarely appear in training but must be handled safely. The "long tail" is why self-driving is so hard.
๐ Combining Inputs
Combining LiDAR + camera + radar gives a richer picture than any single sensor. Each compensates for the others' weaknesses.
๐จโ๐ซ Learn from Humans
Train the AI by imitating how human drivers behave โ a key technique used by Tesla's Autopilot system.
๐ก๏ธ How Safe is Safe?
Waymo has driven 20M+ miles. Certifying a system safe enough to deploy requires billions of simulated miles first.
About this lab
Learning objective: Steer a simplified simulated vehicle using sensor-style inputs and see how a simple control model reacts.
What this simplifies: A toy 2D simulation is used; it does not reflect the complexity or safety systems of real autonomous vehicles.
Privacy: No learner input leaves the device.
Teacher prompt: Ask the class why this simulation might mislead someone who takes it too literally.
Reflect: What is one thing this activity showed you that you did not expect?
โ Back to all Labs