⚡ Project Level: Intermediate
⏱ Time Required: 1 Hour
💰 Budget: Medium
🤖 Function: Human/Object Following Robot
INTRODUCTION
Want to build a robot that follows you automatically? 🤖 In this project, you will learn how to make a Human Following Robot using Arduino UNO, Ultrasonic Sensor, IR sensors, and L293D motor shield.
This robot detects objects in front and follows them while avoiding wrong direction using IR sensors.
WATCH YOUTUBE VIDEO
COMPONENTS REQUIRED
| Image | Name | Qty | Buy |
|---|---|---|---|
![]() |
Arduino UNO | 1 | {getButton} $text={Buy Now} $icon={cart} $color={#007bff} |
![]() |
L298N Motor Driver | 1 | {getButton} $text={Buy Now} $icon={cart} $color={#007bff} |
![]() |
Ultrasonic Sensor | 1 | {getButton} $text={Buy Now} $icon={cart} $color={#007bff} |
![]() |
Servo Motor | 1 | {getButton} $text={Buy Now} $icon={cart} $color={#007bff} |
![]() |
IR Sensor Module | 2 | {getButton} $text={Buy Now} $icon={cart} $color={#007bff} |
TOOLS REQUIRED
| Image | Tool Name | Quantity | Buy |
|---|---|---|---|
![]() |
Screwdriver | 1 | {getButton} $text={Buy Tool} $icon={cart} $color={#007bff} |
![]() |
Wire Cutter | 1 | {getButton} $text={Buy Tool} $icon={cart} $color={#007bff} |
APPS AND ONLINE SERVICES
| Image | App Name | Access |
|---|---|---|
| Arduino IDE | {getButton} $text={Download} $icon={download} $color={#007bff} |
CIRCUIT DIAGRAM
WIRING CONNECTIONS
Ultrasonic Sensor
| Trig | A2 |
| Echo | A3 |
| VCC | 5V |
| GND | GND |
IR Sensors
| Right IR | A1 |
| Left IR | A5 |
Servo Motor
| Signal | Pin 10 |
| VCC | 5V |
| GND | GND |
ARDUINO CODE
WORKING PRINCIPLE
The ultrasonic sensor detects distance of a person in front. If the person is within range, the robot moves forward.
IR sensors help the robot adjust direction by detecting left and right movement.
Servo motor rotates the sensor to scan surroundings for better tracking.
STEPS
- Connect all components as per circuit
- Upload the code
- Power the robot
- Place object in front
- Robot starts following
TIPS
- Adjust distance value for better tracking
- Use good battery
- Fix sensors properly
CONCLUSION
This human following robot is a great robotics project combining sensors and automation.







