Human Following Robot Using Arduino
by My Tech Studio in Circuits > Arduino
3184 Views, 17 Favorites, 0 Comments
Human Following Robot Using Arduino
The uses of arduino is increasing day by day. Arduino can be used in a simple project or even it can be implemented in a complex project to simplify the project. Today we come to you with a new example of arduino project which is “human following robot”. The name simply suggest a robot which can follow the humans. But it is not so simple. A lots of action has to be done for the proper functionality of a human following robot. This complex process can be simplified and modified using an arduino. If you are well known about the properties of arduino, then it will be more easier for you to make this human following robot. Read More >>
Supplies
Components –
- DC Geared Motor
- Arduino Uno
- L293D Motor Driver Shield
- Servo SG90
- Ultrasonic Sensor
- IR Sensor
- Jumper Wire
- Wheels
- Lipo Battery
Structure Design
The structure of a human following robot is quite different from the other arduino car because we have to include some more sensors (like ultrasonic sensor, ir sensor) in our car. Also the placement of the sensors are quite different from the other arduino project. So we have to keep more attention while building a human following robot. The first important thing is to fix the dc geared motor with the chassis of the car. Take the four dc geared motor and then fix it in the bottom side of the chassis.
The chassis can be made up of ply wood or plastic. After successful completion of this process, take the shaft coupling and connect it with the output shaft of every dc geared motor. The uses of shaft coupling may avoid the vibration of wheels at the time of actual running of car. Then take the wheels and attach them in the shaft coupling. At last make two holes in the middle of chassis and take out the wires of the motor in the upper side of the chassis. Read More >>
Circuit Connection
To make the circuit we need different circuit components like Arduino uno, L293D motor driver shield, Ultrasonic sensor, IR sensor and servo motor. At first you have to take the Arduino uno and then fix it in the middle of the chassis. Then take the L293D motor driver shield and put it on Arduino uno. Now gradually connect the dc motors with the motor driver. Also connect the servo in the motor driver. At last you have to connect the Ultrasonic sensor and IR sensors to the arduino. Read More >>
Arduino Coding
Coding is the main important thing of any arduino project. The performance of the robot is fully dependent on the programming. At first connect the arduino with your computer. Then open the Arduino IDE software. Here you have to write the following code -
#include<NewPing.h>
#include<Servo.h>
#include<AFMotor.h>
#define RIGHT A2
#define LEFT A3
#define TRIGGER_PIN A1
#define ECHO_PIN A0
#define MAX_DISTANCE 100
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE);
AF_DCMotor Motor1(1,MOTOR12_1KHZ);
AF_DCMotor Motor2(2,MOTOR12_1KHZ);
AF_DCMotor Motor3(3,MOTOR34_1KHZ);
AF_DCMotor Motor4(4,MOTOR34_1KHZ);
Servo myservo;
Working Principal
Place the human following robot in a flat surface and switch on the circuit. Now the servo motor will start moving and the robot is trying to find some object to follow. As soon as it detects any object it will start to follow it. For an experiment you can put one of your hand in front of the robot. You can observe that the robot is coming towards your hand. Similarly you can hold any other object in front of the robot and the robot will start to follow the object. Read More >>