Human Following Robot Project
Human Following Robot Project
BY ARDUINO
Name of students:-
BORELLI . ABHINAY KOUSHIK RAJ-24001A0412
BOLLU . CHANDRA NEEL-24001A0409
KUMMARA . KARTHIK-24001A0413
ANDELA SHIVA SHANKARA VARAPRASAD-24001A0453
KALLAMADI TRILOK REDDY-24001A0442
YANNAM PREETHAM-24001A0444
Abstract: Humanoid robotics is an emerging research field that has received significant attention during
the past years and will continue to play an important role in robotics research and many applications of
the 21st century and beyond. In this rapid moving world, there is a need of robot such a “A Human
Following Robot” that can interact and co-exist with them. Because of its human following capability,
these robots can work as assistants for humans in various situations and it can also acquire or monitor
certain information associated with the human subject. In this paper we present a prototype that uses
Arduino Uno along with basic sensors such as ultrasonic and IR sensor. All the processing is carried out
by the microprocessor while the control of the motors is carried out by the controller. This robot can
further be modified by using many technologies such as Bluetooth, PixyCamera etc.
Keywords: Artificial Intelligence, Human following, Human tracking, Ultrasonic Sensor, IR Sensor,
Arduino Micro Controller.
I. INTRODUCTION
Robotic technology has increased appreciably in past couple of years. Such innovations were only a
dream for some people a couple of years back. But in this rapid moving world, now there is a need of
robot such as “A Human Following Robot” that can interact and co-exist with them. The development of
robot technology had increased significantly due to industrial, medical and military applications. In
various fields with harsh environment such as underground mining, war-zones, medical, construction,
space exploration etc. the work done by one is extremely dangerous. Life of individuals assisting are also
put at risks. Tasks performed by humans have its own limitations in many ways. In order to perceive
beyond the human limitation in vision, speed, consistency, flexibility, quality e.tc we should make use of
robots. A key requirement for these robots is the ability to detect humans and to interact with the min
non-technical way. The main objective of this dissertation is to make a robot that can help humans with
various tasks.. In this paper, we present a prototype of a human following robot that uses Arduino Uno
and different sensors for detection and following an object. The Robot must follow the following
objectives. The robot must be capable of accurately
follow a person.
It is the brain of our project. It can give all the command to their sub ordinate components which should
by operated by the human behavior . And it also give feedback to the other components and human. So
that it can be the used as a medium of communication between human and robots & vice versa. . It has
specification of 8 bit CPU, 16 MHZ clock speed, 2 KB SRAM 32 KB flash Memory, 1 KB EEPROM. 2.2.2 DC
Motors DC Motor is a device that converts any form of energy into mechanical energy or imparts
motion. In constructing a robot, motor usually plays an important role by giving movement to the robot.
Here 4 DC motor are used to drive the robot. 2.2.3 Motor Shield The Motor Shield is a driver module for
motors that allows you to use Arduino to control the working speed and direction of the motor. . The
Motor Shield can either be powered by Arduino directly or by an external 6V~15V power supply via the
terminal input. Here Motor Driver Board is designed to Work with L293D IC. 2.2.4 Ultrasonic sensor An
ultrasonic sensor is an instrument that measures the distance to an object using ultrasonic sound waves.
The working principle of this module is simple, it sends an ultrasonic pulse out at 40kHz which travels
through the air and if there is an obstacle or object, it will bounce back to the sensor. By calculating the
travel time and the speed of sound, the distance can be calculated. 2.2.5 IR Sensor IR sensor is an
electronic device, that emits the light in order to sense some object of the surroundings. An IR sensor
can measure the heat of an object as well as detects the motion. Usually, in the infrared spectrum, all
the objects radiate some form of thermal radiation. These types of radiations are invisible to our eyes,
but infrared sensor can detect these radiations. The emitter is simply an IR LED (Light Emitting Diode)
and the detector is simply an IR photodiode.
1 Ultrasonic and IR Sensor Principle This ultrasonic sensor is placed at the top of robot and pair of IR
sensors are attached on either side of the ultrasonic sensor. We used ultrasonic sensor for obstacle
avoidance and to maintain a specific distance for the object. The ultrasonic sensor works accurately
works accurately within a range of 4 meters. Ultrasonic sensors operate by calculating the times
differences. Infrared sensors detect the object’s distance with infrared radiations when the beam from
transmitter detects an object it returns to the receiver with an angle after reflection also known as
method of triangulation this also helps in calculation of distance travelled by robot and eliminate any
further error in the robotic movement due to displacement.IR sensor controls the movement of motors
and ultrasonic sensor detects the obstacle and stops the motors.
IV. RESULTS
Different experiments were conducted and the performance of the human following robot was tested.
Test was performed on the ultrasonic and infrared sensor. It was noted that the sensor was working
accurately within a range of 4 meters. Then we performed the test to check whether the robot
maintains a specific distance with the target object. Then we checked the serial communication
between Arduino, motor shield and various motors. On the basis of results obtained from these tests
and experiments, we made the necessary changes in the processing and control algorithm. After the
completion, we observed that the results produced were very satisfying the robot was perfectly
following the person wherever it goes. Hence the objective of implementing a good Human-Robot
interaction was achieved. Figure 3: Human Following Robot
V. APPLICATIONS
Looking deeply into environment or our surroundings, we were be able interpret that there is a need of
such robot that can assist humans and can serve them. Such a robot can be used for many purposes.
With a few modifications, the robot can act as a human companion as well. The tasks these kind of
robots can perform are limitless including assisting in carrying loads for people working in hospitals,
libraries, airports etc.
// You have to install the AFMotor and NewPing library Before Uploading the sketch
// You can find all the required libraris from arduino library manager.
// Version 1.1
#include<NewPing.h>
#include<Servo.h>
#include<AFMotor.h>
AF_DCMotor Motor1(1,MOTOR12_1KHZ);
AF_DCMotor Motor2(2,MOTOR12_1KHZ);
AF_DCMotor Motor3(3,MOTOR34_1KHZ);
AF_DCMotor Motor4(4,MOTOR34_1KHZ);
void setup() { // the setup function runs only once when power on the board or reset the board:
for(pos = 90; pos <= 180; pos += 1){ // goes from 90 degrees to 180 degrees:
for(pos = 180; pos >= 0; pos-= 1) { // goes from 180 degrees to 0 degrees:
myservo.write(pos); //tell servo to move according to the value of 'pos' variable:
void loop() {
Serial.print("distance");
Serial.print("RIGHT");
Serial.println(Right_Value); // print the right IR sensor value in serial monitor:
Serial.print("LEFT");
if((distance > 1) && (distance < 15)){ //check wheather the ultrasonic sensor's value stays between
1 to 15.
//If the condition is 'true' then the statement below will execute:
//Move Forward:
}else if((Right_Value==0) && (Left_Value==1)) { //If the condition is 'true' then the statement below will
execute:
//Turn Left
delay(150);
}else if((Right_Value==1)&&(Left_Value==0)) { //If the condition is 'true' then the statement below will
execute:
//Turn Right
delay(150);
}else if(distance > 15) { //If the condition is 'true' then the statement below will execute:
//Stop
VII. CONCLUSION
A successful implementation of a prototype of human following robot is illustrated in this paper. This
robot does not only have the detection capability but also the following ability as well. While making this
prototype it was also kept in mind that the functioning of the robot should be as efficient as possible.
Tests were performed on the different conditions to pin point the mistakes in the algorithm and to
correct them. The different sensors that were integrated with the robot provided an additional
advantage. The human following robot is an automobile system that has ability to recognize obstacle,
move and change the robot's position toward the subject in the best way to remain on its track. This
project uses arduino, motors different types of sensors to achieve its goal. This project challenged the
group to cooperate, communicate, and expand understanding of electronics, mechanical systems, and
their integration with programming.