Hybrid Intelligence: Line Follower & Obstacle Avoider
Why choose one when you can have both? This robot combines the precision of path-following with the situational awareness of a self-driving car.

The Dual-System Logic
The robot is guided by two sets of sensors:
- IR Line Sensors (Bottom): These "read" the black line on the floor. If the robot drifts away, the Arduino adjusts the motor speeds to bring it back.
- Ultrasonic Sensor (Front): Acts as a safety layer. If a wall or an object appears on the line, the robot can be programmed to stop, beep, or even try to find its way around the object before returning to its path.
Essential Hardware
- Arduino Uno: The master controller.
- L298N Motor Driver Shield: For high-current motor control.
- IR Reflectance Sensors (x2 or x3): For line tracking.
- HC-SR04 Ultrasonic Sensor: For obstacle detection.
- 4WD/2WD Chassis Kit.
Why Build This?
This project is a fantastic introduction to State Machines. The robot must constant switching between "Path Following mode" and "Obstacle Avoidance mode." Mastering this logic is a key stepping stone to building truly complex autonomous vehicles.