Это видео недоступно.
Сожалеем об этом.
How To Make Arduino Human Following Robot
HTML-код
- Опубликовано: 29 июн 2023
- I built an awesome robot using Arduino Uno and a motor shield. It uses two sensors, IR and ultrasonic sensor. The IR sensor helps the robot detect if there's a person nearby by sending out invisible light and seeing if it bounces back. When it detects a person, it tells the Arduino uno. Then, the ultrasonic sensor measures how far the person is from the robot. Based on this information, the Arduino controls the motors connected to the wheels, making the robot move towards the person. This way, the robot can follow the person wherever they go. Although it's a prototype, this project showcases the potential of combining sensors and Arduino to create an interactive robot that can track and follow people.
Components List-
1) Arduino uno - amzn.to/3QGhzpm
2) Motor shield - amzn.to/47bzHgi
3) IR sensor - amzn.to/3FJmqzX
4) Li-ion battery -amzn.to/3seT7SK
5) Battery holder - amzn.to/3s8E118
6) Wheels(4x)and DC Motor - amzn.to/3FEgsA6
8) Acrylic Sheet - (Offline Store)
9) Male-Female Jumper wire - amzn.to/49fJdkm
10)DC Power Switch - amzn.to/46WqFUI
11)Ultrasonic sensor -amzn.to/40j5OIG
Video gear
camera : amzn.to/3Tb5EBR
camera stand : amzn.to/3RcwWGy
mic: amzn.to/3sNOEGY
------------------------------------------------------
Here's the code link - github.com/ver...
------------------------------------------------------
Thanks for watching this Video. If you like this video then hit the LIKE button, share it and also make sure you don't forget to subscribe my channel for more upcoming awesome projects.
---------------------------------------------------
🎵 Background Music:
Title: Whitefish Salad - LATASHÁ / Trap 2021 (No Copyright Music)
Video Link: • Whitefish Salad - LATA...
Genre Music: Trap - Gym - Workout - Crossfit - Training - Motivational
Title: Hip Hop - Kwon / Workout Gym Crossfit (No Copyright Music)
Video Link: • Hip Hop - Kwon / Worko...
Genre Music: Trap - Hip Hop - Beat - Rap - Workout - Gym - Crossfit - Training
Music: "Sunset Fruits" by Waesto
Watch: • Waesto - Sunset Fruits...
Download: hypeddit.com/w...
Music provided by Vlog No Copyright Music.
Song: Balynt - Places
Music provided by Vlog No Copyright Music.
Video Link: bit.ly/3oD5lCd
---------------------------------------------------
#diyprojects #robot #electronic #smartcars
The battery you're using is how much voltage
Dude thx for giving me this idea for my exhibition
Nice project!
I did your same connection two of my tires are moving in the forward direction while the other 2 are in reverse. Is it ok?
Bro connection ulty hongy wires k
hello sir, thanks for Answers sir now i did everything you said in the video but its not moving i uploaded the code i connected the wires but still not working sir
same problem
eventhough i sued same battery
Now is it working?
I am having a problem after uploading code my servo turned and my motor is going in full speed and in my 1 ir sensor both lights are glowing and in other 1 is only glowing and when i keep my hands near the sensor nothing happens what to do and 1 more thing my battry's are ok i think its 9v 1500 mah battry ? pls help
use lithium battery
@@themaxxboy573 I am still it's like thia
How to add AF motor library bro?
Sir how to connect black wire of ultrasonic sensor and both infrared sensor in one place.....
Please reply sir I'm confused and I have to make this project for science exhibition
Reply sir please
Reply sir please 🙏🙏🙏🙏
You can connect each black wire to different gnd pins
After making it where is the😮button by which it will start moving??????????
open the battery
I don't want to take wheels so do I have to use motor sensors?
When i lift my car all the motor works properly according to sensor but when i put the car down it's only go forward with full speed but the motor speed decrease when i put hand on left or right ir sensor the motor speed decrease and its does not move and when i lift it up its start moving
Which battery are you using?
@@prateekverma22 i am using Rechargeable Li-ion cell 2000mAh 3.7V
use a 7.4v - 9v battery @@Ssvgamings
bro code is working properly? plz give me answer@@SohumSawant
Bro can I know what is the white piece that you attached in the servo motor and in ultrasonic sensor
And can I also know that the base sheet is a cardboard
That is 3d printed
I faceing problem to coding please help
sir I'm facing a "programmer not responding averdude" issue while I upload the code to my arduino. Can you kindly tell me how to fix this? I need to submit my project.
Watch this video, it will solve your issue ruclips.net/video/SfA8K793c0E/видео.htmlsi=8LSCWvcC3I4QrmS7
thank you sir, that problem has been fixed but sir I'm facing an issue with the battery.
I'm using two lithium batteries with individual battery holders, do I connect them in series or parallel?
series
I am facing problem to coding please help 😞
My robot is not working even though i upload the sketch 2 times pls reply tomorrow is my presentation
Did it work?
Can it detect and dodge obstacles in its path?
Hi i made it for my son when uploading stk recv error is coming pls help me
My ir sensor is not working and heating up
Before this my ultrasonic sensor was heating up so ordered new but now ir sensor not working and heating up pls help!!!!!!! I have to complete my school project
if its heating up its probably because u plugged the ground in the wrong pin
Sir my servo motor is not working and the ultrasonic sensor is also not working please reply soon i am doing for my science exhibition on 16 August 2024
Me also doing this for my science exhibition
Which button you press to start it?
bhai also when i connect the vin to one one of the pwr pin the motor shield is not being properly mount on the arduino as the jumper wire's height is more than the motor shield pin so half of the shield does not get power then pins are lying outside only
I need to check the connection
This is my telegram user id - @MNR_1014 , send the circuit connection photo there
Nice project
Bhaiya please tell where to fix the dc switch
Sir give the diagram please and a short video on the switch
does it only follow the hand?
Sir which jumper wire did you use
You would require male to female and female to female jumper wire.
Where to use male to female and male male to male please tell
my code has been uploaded and connections are as per your diagram but when a switch on power using a switch it does not move when a bring my hand near it and a beeping noice is produced . what should i do
Which battery are you using?
same battery as yours
Can the code be changed so that it follows a particular colour instead of a obstruction?
No changing code won't work here . You would have to change the sensor that detects color.
Bro can you tell me how to join that black wire to the motor shield, ir sensor and ultrasonic sensor
You can connect each black wire to different gnd pins of motor shield
Great topic, thanks 👍
Bro u having 3d model of this project?
❤great project
After doing the connection given by u the sensors servo all are working but the robot is not moving forward that is dc motor is not turning
IS THAT GOOD
.
.
Op bro🤩
Bro I have made all the things and it also woking but when I tried it 3 or 4 times it doesn't work can you tell the solution and my motor shield is not get fused even 🙏🙏
It might be the battery problem. Try changing it with new ones
Servo is only for decaration ?!? Because it only moves at the beginning, otherwise it has no business with the robot to rotate left - right!
I am facing problem to coding please help 😞
Can i Use L298N-H bridge motor driver? Red one instead of this motor shield?
Yes
The same code that you provided will run for that?
I faceing problem to coding please help
Hello brother. I connect 4 battery. 18650. But my robot is not working. But when i connect with the computer the sensors are getting power. What should i do now?
Which interface u r using after connecting it to computer
??
Place the Vin jumper on motorshield
aapne konsa interface use Kiya hai Arduino uno ko design krne ke liya??? please reply me
You mean code ? Arduino IDE
@@prateekverma22 aap konsa interface use Kiya hai??? Kya interface Arduino uno ke anadr hi rehta hai ya Java pythan jaisa koi application use Krna padega??
You can watch this video on how to use Arduino uno and how to upload code on it
ruclips.net/video/wDdLTQLKaO4/видео.htmlfeature=shared
@@prateekverma22 thank u .......how much money it will take??
@@prateekverma22 can tell me about the wires how to connect
Bro plz tell which type of jumper wire to use?
Male to female and female to female will work
Bro i did all the connections and all the sensor are working but the motor driver is not sending power to the motors and it's not moving suggest me a solution
Which battery are you using?
@@prateekverma22 i m using the one in the description
3.7v li ion battert
Do the following:-
1. Check each motor if they are working or not. (By directly connecting them with cell)
2. Tighten all the connections specially the jumpers connected to the IR sensor
3. When you put the batteries make sure you connect +ve terminal of the battery to the +ve side of battery holder.
I did it, but mine isnt moving properly, the motors are beeping when trying to move, please help, im powering it with a 9volts battery
Battery isn't enough to drive all the motors. You can try connecting one more 9v battery in series
I had used 2 18650 batteries of 2000mah ..... But it also has same problem..... When I am connecting it , it just starts running on its own and beeping sound comes from Arduino ..... Please help me
I am facing problem to coding please help 😞
Sir all work done but my robot run only when I connect the Arduino uno board to USB cable
how are you giving power supply ? Lipo battery?
Bro i have made same like you but ny motor are not even moving I am using power supply with 9 volts and 0.5 ampere current plz tell me I have evaluatikn on monday@@prateekverma22
Please reply me school ka project banana hai brother please...
Why does my motor sheild not have pins in the 5v gnd and A0-5 1:11
You have solder the pins on you own
@@anitashah6643 can I use jumper wire pin , ??
Please help me circuit should we connect 3 wires to same gnd please tell
All gnd are already connected. You can connect to any of them
Please help me. im not understanding how all 3 and wires are connected?
Can u increase the speed
Can i use arduino nano in this project
With Arduino nano you would have to use L298N motor driver. Motor shield won't fix on it
Bro I dont have Ao 5 pins in my motor driver
♥️❤🔥🔥
🔥🔥🔥
I don't know why but one wheel goes forward and the other wheel goes backwards and that makes my robot spin anyone know how to fix this ?
Try changing the connection of motor
Can i take 2000 mah of battery
Yes
does it only follow the hand
no , anything it sees
hello sir, I am done with the project sir but when i uploaded the code it said no such file or directory kindly reply what to do sir
You need install 'Adafruit Motor Shield library' , 'servo motor library' and 'ultrasonic library' go to tools >manage libraries>
I can i make without ir sensors?. I dont have ir sensor only have ultrasonic sensor
You would require ir sensor otherwise the robot won't move right or left
hii sir how to program mera program nai ho raha hai
Is code not uploading on arduino?
Were is code
Code link plzzz your code not working
//Arduino Human Following Robot
// You have to install the AFMotor and NewPing library Before Uploading the sketch
// You can find all the required libraris from arduino library manager.
// Contact me on instagram for any query(Insta Id : prateek.815)
//include the library code:
#include
#include
#include
#define LEFT A5 // Right IR sensor connected to analog pin A2 of Arduino Uno:
#define RIGHT A1 // Left IR sensor connected to analog pin A3 of Arduino Uno:
#define TRIGGER_PIN A2 // Trigger pin connected to analog pin A1 of Arduino Uno:
#define ECHO_PIN A3 // Echo pin connected to analog pin A0 of Arduino Uno:
#define MAX_DISTANCE 200 // Maximum ping distance:
unsigned int distance = 0; //Variable to store ultrasonic sensor distance:
unsigned int Right_Value = 0; //Variable to store Right IR sensor value:
unsigned int Left_Value = 0; //Variable to store Left IR sensor value:
int d=10;
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); //NewPing setup of pins and maximum distance:
//create motor objects
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; //create servo object to control the servo:
int pos=0; //variable to store the servo position:
void setup() { // the setup function runs only once when power on the board or reset the board:
Serial.begin(9600); //initailize serial communication at 9600 bits per second:
myservo.attach(10); // servo attached to pin 10 of Arduino UNO
{
for(pos = 90; 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:
delay(15); //wait 15ms for the servo to reach the position:
}
for(pos = 0; pos 1) && (distance < d)){ //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:
Motor1.setSpeed(130); //define motor1 speed:
Motor1.run(FORWARD); //rotate motor1 clockwise:
Motor2.setSpeed(130); //define motor2 speed:
Motor2.run(FORWARD); //rotate motor2 clockwise:
Motor3.setSpeed(130); //define motor3 speed:
Motor3.run(FORWARD); //rotate motor3 clockwise:
Motor4.setSpeed(130); //define motor4 speed:
Motor4.run(FORWARD); //rotate motor4 clockwise:
}else if((Right_Value==1) && (Left_Value==0)) { //If the condition is 'true' then the statement below will execute:
//Turn right
Motor1.setSpeed(150); //define motor1 speed:
Motor1.run(FORWARD); //rotate motor1 cloclwise:
Motor2.setSpeed(150); //define motor2 speed:
Motor2.run(FORWARD); //rotate motor2 clockwise:
Motor3.setSpeed(150); //define motor3 speed:
Motor3.run(BACKWARD); //rotate motor3 anticlockwise:
Motor4.setSpeed(150); //define motor4 speed:
Motor4.run(BACKWARD); //rotate motor4 anticlockwise:
delay(150);
}else if((Right_Value==0)&&(Left_Value==1)) { //If the condition is 'true' then the statement below will execute:
//Turn left
Motor1.setSpeed(150); //define motor1 speed:
Motor1.run(BACKWARD); //rotate motor1 anticlockwise:
Motor2.setSpeed(150); //define motor2 speed:
Motor2.run(BACKWARD); //rotate motor2 anticlockwise:
Motor3.setSpeed(150); //define motor3 speed:
Motor3.run(FORWARD); //rotate motor3 clockwise:
Motor4.setSpeed(150); //define motor4 speed:
Motor4.run(FORWARD); //rotate motor4 clockwise:
delay(150);
}else if(distance > d) { //If the condition is 'true' then the statement below will execute:
stop();
}
}
void stop(){
//Stop
Motor1.setSpeed(0); //define motor1 speed:
Motor1.run(RELEASE); //stop motor1:
Motor2.setSpeed(0); //define motor2 speed:
Motor2.run(RELEASE); //stop motor2:
Motor3.setSpeed(0); //define motor3 speed:
Motor3.run(RELEASE); //stop motor3:
Motor4.setSpeed(0); //define motor4 speed:
Motor4.run(RELEASE); //stop motor4:
}
Sir the code is not compiling some ping irror
You need to install NewPing library
👍👍👍
🔥🔥💯
😍😍😍🥰🥰🥰🥰🥰
Bro compile ho gaya hai lekin nahi chal raha hai kya kare
Circuit diagram please
🤖🤖🔥🔥
⚡⚡🔥❣️
Thanks
You need to first include newping library
Bro I want one help
How much it will cost in total??
5550
❤🔥
Sir can I sm having the same motor driver (l293d) but it is not having pins like you will it work
Please reply sir
I have done with motor shield
Excuse me bro that same fault for me too but when I asked the shop where I bought they told that you want to buy the pins it is not dfault u wannA buy that
I bought it from amazon and pins were soldered on it. But if you are buying it offline look for soldered one otherwise you have to solder it by yourself
I am facing problem to coding please help 😞
❤
Bhai 2 9v battery ka hoga??
I would recommend using rechargeable Li-ion or LiPo battery
Code
👍🏼
vin pin ko kha connect krna h shield par
There is a PWR jumper on motor shield, is it connected? (see this - images.app.goo.gl/SV29x96R3dp7tYpw8 )
@@prateekverma22 video me kyo nahi dikhaya aur video me to connected nahi hai to aapka robo kaise chal rha hai??
@@prateekverma22 pwr has two pins but there is only one vin on arduino uno
Hi I made it but the ultrasonic sensor does not work
Try using another Ultrasonic sensor
Bro, What is the code
Pls reply that how much it will cost
around 2K rupees
@@prateekverma22 thank you for replying
bro i uploded the code the car is going but not folowing my hand
check whether your ultrasonic sensor and servo motor are working or not
@@prateekverma22bro servo and ultrasonic sensor both are working but when I connect it to PC it just makes beeping sounds and buring smell comes from it ..... Please tell what to do
All wheels not working properly together. How to solve
check the connections
Oooooo❤️❤️🔥🔥💯
Sir plz reply
Bro my code is telling error....what should I do????
What error it is showing?
❤👍👍👍❤️
Bro 9v battery will be necessary??
Buy two Li-ion rechargeable battery 3.7v each
@@prateekverma22 is it
available in offline stores??...and i have putted the code but the robot is running on its own its motor is not stopping and when i put my hand infront of it , it not even stop or follow my hand...plz help
@@yuvraj_chadgal did it worked now?
@@suryanshsrivastava650 i didn't use battery I have a charger adapter which I had bought in 2018 I use that and it works...i don't know the voltage of charger
@@yuvraj_chadgal ohh thankyou ☺️
Sir reply fast
hloo
Sir please reply first
Bro can you help i uploaded the code but its not working pls replay fast
@prateekvarama22 bro
@prateekverma22 bro pls help
what error it is showing?
Bhai com5 access denied dikha rha h
Aur uploading me bhut time le rha h
Access denied or greyish ?
Are you able to click on com5 option?
Close the serial monitor/serial plotter before uploading the code. See if this work?
Bhai code upload ho gya par wheels nahi chal rahe mene dusre laptop se code daala@@prateekverma22
Bhai robot ke sensors me power aa rha h par chal nhi rha h and also when I bring my hand close to the ultrasonic sensor it makes sound but the wheels doesn't move and this happens only when I connect my arduino to my laptop only the sensor are getting powered and there is no sound when there is only battery@@prateekverma22
Also I see the wheels tend to move but don't move and I use the battery you had given in the description below
Reply Fast Sir Plsss
What is your doubt?
🥵🥵
*Promo SM* 😡
Mine is not working pls reply
Could you be more specific like which part is not working?
Plzzzzzz reply
🥵❤❤
a___a
Tell 🔋 battery voltage
3.7V each
Code tho mention kr dete yrr
Check Description box for code and circuit diagram