๐Ÿš— Real World AI ยท Sensors + Decision Making

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!

๐Ÿ“ก Sensor Explorer
๐Ÿ“‹ Write Rules
๐Ÿค– AI Policy
โš ๏ธ Edge Cases
๐Ÿ† Badge

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.

๐Ÿš—
Wizzy the AI Tutor
Welcome to the Self-Driving Lab! ๐Ÿš— Before a car can decide what to do, it needs to sense the world. The coloured beams are LiDAR rays โ€” they bounce off objects and measure distance. Watch how the sensor readings change as obstacles move closer!

Step 1 โ€” Sensor Explorer

๐Ÿ“ก Sensor Readings

Sensors used in real cars:
๐Ÿ”ด LiDAR โ€” laser distance measurement (360ยฐ)
๐Ÿ“ท Camera โ€” colour, signs, pedestrians
๐Ÿ“ถ Radar โ€” speed of other vehicles
๐Ÿ›ฐ๏ธ GPS โ€” global position
๐Ÿš—
Wizzy the AI Tutor
Now you are the AI engineer! Write if-then rules that tell the car what to do. Then test your rules on 5 different scenarios. Can you write rules that handle all of them? Most people discover it's harder than it looks โ€” there's always an edge case!

Step 2 โ€” Write Your Driving Rules

0/5 scenarios passed

๐Ÿ“‹ Your Rule Set (drag to reorder)

Set up your rules then click "Test All Scenarios"!
Test Scenarios:
Write rules to handle all 5 scenarios. Notice how you can't anticipate every situation with simple rules!
๐Ÿš—
Wizzy the AI Tutor
Now watch the learned AI policy handle the same scenarios! The AI was trained on thousands of simulated drives and learned to handle situations through experience โ€” not rules. Compare the scores! The AI handles edge cases your rules couldn't.

Step 3 โ€” AI Learned Policy vs Your Rules

Run the AI demo to see how it compares to your rules!
๐Ÿš—
Wizzy the AI Tutor
The hardest part of self-driving! Edge cases are rare, unusual situations that neither rules nor AI handle perfectly. Click each edge case to test both approaches. This is why self-driving cars are so hard โ€” the real world has infinite situations!

Step 4 โ€” Edge Case Testing

Click an edge case to test both the rule-based system and the AI policy!
๐Ÿš—
Wizzy the AI Tutor
๐ŸŽŠ You've explored the full self-driving car stack โ€” from sensor beams to learned policies to edge cases! You discovered the bitter lesson of AI: general learned systems beat carefully hand-crafted rules. This insight drives every company from Tesla to Waymo!
๐Ÿš—

Self-Driving AI Badge!

You explored sensors, wrote driving rules, and compared them to AI policies!

๐Ÿš— WhizzStep AI Lab
This certifies that
Student Name
has mastered Self-Driving AI โ€” Sensors to Policies
AV Engineer
Sensor Expert
Edge Case Hunter
whizzstep.in

Key Concepts Mastered

LiDAR

๐Ÿ“ก Laser Mapping

Fires 128+ laser beams per rotation, measuring distances to build a precise 3D point cloud of the environment.

The Bitter Lesson

๐Ÿง  Rules vs Learning

Rich Sutton's famous insight: general methods that learn from data beat hand-crafted approaches โ€” every time, at scale.

Edge Cases

โš ๏ธ 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.

Sensor Fusion

๐Ÿ”— Combining Inputs

Combining LiDAR + camera + radar gives a richer picture than any single sensor. Each compensates for the others' weaknesses.

Imitation Learning

๐Ÿ‘จโ€๐Ÿซ Learn from Humans

Train the AI by imitating how human drivers behave โ€” a key technique used by Tesla's Autopilot system.

Safety Validation

๐Ÿ›ก๏ธ How Safe is Safe?

Waymo has driven 20M+ miles. Certifying a system safe enough to deploy requires billions of simulated miles first.