How to Make Arduino Human Following Robot using Arduino UNO, L293D Motor Shield, Ultrasonic Sensor, IR Sensor and Servo Motor

{getToc} $title={Table of Contents}

⚡ 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

ImageNameQtyBuy
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

TrigA2
EchoA3
VCC5V
GNDGND

IR Sensors

Right IRA1
Left IRA5

Servo Motor

SignalPin 10
VCC5V
GNDGND

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

  1. Connect all components as per circuit
  2. Upload the code
  3. Power the robot
  4. Place object in front
  5. 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.

Uday kiran

Hey Guys, My name is Uday Kiran. I'm from India. now I'm 18 years old, studying at college. Making DIY projects is my hobby, passion and I love making awesome projects from scratch. I am the creator of the Electromechanics community. facebook twitter youtube instagram external-link

Previous Post Next Post

نموذج الاتصال