A smart, Arduino-based line-following robot with real-world prototype & online simulation
Built and tested by a team of students from Amrita Vishwa Vidyapeetham
π Try it yourself:
AutoStrider β Tinkercad Simulation
AutoStrider is an intelligent line-following robot capable of autonomously following a black track using IR sensors.
Itβs powered by an Arduino UNO and uses an H-bridge motor driver for directional control.
The project was implemented both in simulation (Tinkercad) and as a physical prototype, validating real-world performance.
- Dual IR sensor module for line detection
- Directional control using L293D driver
- PWM-based speed control for balanced movement
- Smooth line tracking logic (forward, left, right, stop)
- Simulation & real hardware prototype
- Two IR sensors continuously scan the surface below.
- Black line reflects less IR light β sensor outputs
LOW. - Depending on sensor output:
- Both LOW β move forward
- Left LOW, Right HIGH β turn right
- Right LOW, Left HIGH β turn left
- Both HIGH β stop
| Component | Quantity | Description |
|---|---|---|
| Arduino UNO | 1 | Main microcontroller |
| IR Sensor Module | 2 | Detects black line |
| L293D Motor Driver | 1 | Controls motor direction |
| DC Motors + Wheels | 2 | Motion mechanism |
| Robot Chassis | 1 | Base platform |
| Power Supply (9V/12V) | 1 | Motor + logic power |
| Connecting Wires | β | For circuit connections |
| Arduino Pin | Connection | Description |
|---|---|---|
| D11 | IR Sensor (Right) | Line detection |
| D12 | IR Sensor (Left) | Line detection |
| D6 | Enable Right Motor | PWM speed control |
| D7, D8 | Right Motor Direction | |
| D5 | Enable Left Motor | PWM speed control |
| D9, D10 | Left Motor Direction |
π§ Common Ground must be shared between Arduino and motor driver power.
Complete Arduino sketch available in code/Autostrider.ino
The program reads IR sensor values, decides direction, and drives motors using PWM signals.
| Type | Screenshot |
|---|---|
| Tinkercad Simulation | ![]() |
| Real-World Prototype | ![]() |
π₯ You can include a short GIF or video link here to showcase it following a line.
- Open
Autostrider.inoin Arduino IDE - Connect Arduino UNO via USB
- Select the correct board & COM port
- Upload the code
- Open Serial Monitor (9600 baud) to observe sensor readings
- Place robot on black line track and watch it follow autonomously!
- Adjust
MOTOR_SPEED_LEFTandMOTOR_SPEED_RIGHTfor balanced speed. - Keep sensors 0.5β1cm above the track.
- Use matte black electrical tape for better contrast.
- Add PID control for smoother turns
- Integrate Bluetooth module for manual control
- Add ultrasonic sensor for obstacle avoidance
- Implement battery voltage monitoring
This project is licensed under the MIT License.

