How to Make Human Following Robot at Home Using Arduino

by GeekyElectronics in Circuits > Arduino

90 Views, 2 Favorites, 0 Comments

How to Make Human Following Robot at Home Using Arduino

arduino human follow robot.JPG
human follow arduino robot.gif
human follow arduino robot.JPG

Hello people in this instructables i will show you how you can make human following robot using arduino in a simple way.

I say it as simple because of the resources i have given here on this detailed instructables including circuit diagram and arduino program and explanation of all the components.

To begin with let me quickly give you a overlook of the robot that we are going to build here

This is a robot that follows human! Not only human any moving object that comes in close to this robot, in my case i will use my hand and the car follows you wherever you go, How cool this is right!

You can watch the short clips on this step, I was not able to get my hands off from this robot since i built it

I had thought of building this project long ago, But after several designs i was finally able to come up with this model.

By building this project you are not only making a robot that follows human but also you will have lots of hands on experience working with arduino and its sensors.

With these being said let us now gather all the materials necessary to build this human following robot

Supplies

q1.png
q7.png
3q.png
q8.png
q9.png
q6.png
2q.png
4q.png

Here is the list of components that are necessary to build this project

Arduino Uno from Here

L298N Motor Driver

Ultrasonic Sensor

BO Motors

IR sensor module x 2

Wheels

Sheet of Cardboard

Scissors

Hot glue

Breadboard

Jumper Cables

Arduino IDE

Programming Cable

Kindly note that these are product links are associated with amazon and upon qualifying sales i may receive a small percent of commission at no extra cost to you, This will help me to come with such great ideas to help you guys

Making Car Body

q11.png
q13.png
q12.png
q16.png

The first step that needs to be done before adding motors and wheels is the frame, Not only these frames are responsible to hold all the electronics components.

There are several options available when you think of building a frame to áš­he robot cars, I went with a simple yet effective solution.

I will be using cardboard frame, I have made marks on the cardboard earlier considering the sizes of all the electronics.

The BO motor or as few call it as gear motor holds most of the space on the frame, Also the type of wheels that we are using plays a crucial role.

Considering all these factors i made this design and it was the best choice i made, The design will not only make the robot look cool but also serves as a case to all the electronics.

Mark the areas and cut it with scissors, Add the BO motor and secure with hot glue.

I have pre soldered the wires to BO motor so that it will be easy later on to work with the electronics circuit part.

After the BO motor is attached we can add the wheels, The type of wheels which you want to use is left to you.

Allow the motor to dry completely and for the rear wheels i simply added the wheels to shaft of normal toy dc motor and with the help of hot glue i glued it to the frame this serves as a rear wheel that moves smoothly.

Codes and Circuit

obstacle car.jpg
co.jpg
q17.png
q18.png
q19.png

Here is the circuit that was used to make this project, i will break this down even further to make it easy for everyone

I will explain component wise and below you can see how

L298N Motor Driver Connections

Ena to D6 and Enb to D5

In1 to D9

In2 to D10

In3 to D8

In4 to D7

12v Power Pin is connected to the positive of the battery, 5v to Arduino and both of the Gnd are connected together

Motors are connected to output pins for forward/backward movement.

Ultrasonic Sensor (HC-SR04) Connections

VCC and GND are Connected to the breadboard's 5V and GND.

TRIG and ECHO are connected to respective digital pins 11 and 12 on the Arduino.

IR Sensor connections

VCC, GND are connected to 5V and GND, whereas the digital pins to D2 and D3 on Arduino

After these connections are made connect arduino board to computer and open IDE, paste the below code and upload it

Make sure to check for libraries before upload, After the code is done uploading make sure the IR sensor glow when you bring hands close to that

Assembling Electronics

q20.png
JLCMC.jpg
q23.png
q24.png
q29.png
q25.png

After we have the circuit ready make sure to check all the connections again before placing it on the cardboard frame.

Use double sided adhesives and hot glue wherever necessary, Seal the joints with hot glue(uses as an insulator)

Here you should make a note that the ultrasonic sensor should be placed in between the IR sensor, I used few plastic parts which i printed earlier, You can use alternate materials for this purpose also.

Seal the components and if you are using hot glue allow it to dry completely, You can refer to the second image on this step to check the placement of components properly.

Connect the motor wire to the driver and secure the screws with a driver, These connections should be intact

To provide power to this robot car i will use 2 separate single 18650 battery holders, This was done on purpose to balance the weights on the robot.

Control the power supply using a switch and this was added onto the car frame, Add the battery to the case and now we are ready to test the robot

Imp announcement!

If you want components for your hobby projects or for industries i recommend you to check JLCMC they have tonne of high quality components and their service is amazing

They are currently giving away $19 coupon for first time users Hurry up and grab before its gone Check here

How to Use

human following robot.JPG
arduino human follow robot.gif

Using this is very easy and I would say anybody can use and have lots of fun along with learning.

I used 2 lithium ion batteries to power this project, Just turn on the switch and there is no specific indicator to show it's powered to on.

You can see the LED on the Arduino board and on the motor driver to check the status, That is all now you can place your hand or any object in front of the sensor to move the robot towards you.

Now if any object comes in front of left IR sensor the robot moves towards that direction and the same with the right IR sensor also.

You can adjust the sensitivity of IR sensor using the potentiometer, This helps in maintaining the distance at which the robot should respond.

In my case i set the potentiometer to around 7cm, it means when i bring my hand close to the sensor of around 7cm the robot starts following you and the following ends when you move your hands really far away.

This was all about this human following robot, if you have any questions ask in the comments, Thanks and don't forget to make this project.

Working Video

How to make Human Following Robot at Home

This is a complete video tutorial of this arduino human following robot project

If you want to see the workings of this project or struck at some point in the building phase of the project this video is for you

If you still have any questions ask me in the comments, and we will find a resolution, Thanks and have a great day folks.