How to make Obstacle Avoiding Robot using Arduino !!
HTML-код
- Опубликовано: 14 янв 2023
- In this video I have shown how to build an obstacle avoiding robot using Arduino Uno microcontroller. If an object comes ahead of it the robot stops, move back a little bit, look left/right and then it turns that side which has greater distance.
---------------------------------------
Components required
1)Arduino uno board - amzn.to/3QGhzpm
2)Ultra sonic sensor - amzn.to/40j5OIG
3)Servo motor - amzn.to/3sgHcUo
4)motor shield module - amzn.to/47bzHgi
5)jumper wires - amzn.to/49fJdkm
6)battery - amzn.to/3seT7SK
7)chassis(4 X dc motor ) - amzn.to/3FEgsA6
Video gear
camera : amzn.to/3Tb5EBR
camera stand : amzn.to/3RcwWGy
mic: amzn.to/3sNOEGY
----------------------------------------
if you liked the video then don't forget to subscribe my channel for more such content.
Code and circuit diagram is uploaded on the telegram channel :- (t.me/robo301)
#diyprojects #robot #electronic #smartcars Наука
//Code
#include // libraray for motor shield
#include // libraray for servo motor
#include // libraray for ultrasonic sensor
const int Trig_Pin =A0;
const int Echo_Pin =A1;
const int Max_Speed =200;
const int Max_Dist = 250;
NewPing ultra_sonic(Trig_Pin, Echo_Pin, Max_Dist);
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;
int distance=250;
int speedSet=0;
boolean goesForward=false;
void setup() {
myservo.attach(10);
myservo.write(0);
delay(2000);
distance=readDistance();
delay(100);
moveForward();
}
void loop() {
int dist_R = 0;
int dist_L = 0;
delay(100);
if(distance
Ok
😊
Thanks
Hii
Bro what is that black surface that you kept all the items on?
Aree aree Engineer sahab great 🔥🔥🔥
Literally saved my degree bro thanks a lot
Excelent video, thanks for sharing it!!
Awesome project from awesome person🤩👌
Great work, Can you share an online link to buy all the components? Thanks, COuld not find a few of the exact items.
Great 👌 becoming more innovative day by day 🔥
Wow.. Nice 😊
Amazing project🤩 keep it up bro🔥🔥
Mast bhaiya
thanks for sharing
Well done bro 👌
Superb
Great bro
I want to use a H bridge instead of the arduino shield and an esp32 instead of using arduino. Will the code be the same after i changes the libraries?
Awesome project... What's the budget?
good job
M apka Ahsan Kabhi nhi bhulunga please sir 🙏🙏
🔥🔥💯❤️
Can I purchase the whole implementation from you ?
Good
what is the sticky stuff called you use to keep your micro servo and sensor in place?
Double-sided tape
Can i run it in wifi also
Can u describe more about that
Amazing bro🔥🔥🔥🌟✨
Soo amazing🔥🔥
Please anybody share what is the problem statement for this project..
What makes it so expensive?
In which language program is written?
How can we supply 12V supply to driver and 9v to Arduino separately
To supply power separately you need to remove the jumper from the motor shield and then give the power to the arduino using it's DC jack and To motor shield use EXT_PWR terminals.
Robot dodging obstacles like prateek dodging defenders
while coding the battery is connected or not ?
Not connected
I have required this instrument please, I am from Nepal ,saptari
How much time took to upload code please tell
Can I use this for node mcu esp8266
yes bro
do you have project report file of this project
Hi bro preetik
Why our motor driver got sparked when we connect to 7 volt bettery plzzz help
You could have shorted gnd and Vcc.
And remember one thing whenever you do connection remove the battery first or turn off the switch
@@prateekverma22 yes we try it.. But it sparked and smoke coming
Hello bro,what the controller you use tu control the vahicle?
Arduino Uno
Atmega328p Micro Controller
Arduino Uno Board
Hi bro
Everything is fine I'm using 2 ×3.7 v cells but sensor is working but motor is not working please help
Check whether the motor is faulty or not.
your trig pin is placed wrong
Is the code that you showed the complete one on camera? Sorry I’m just starting out so I’m not really educated on this 😅
yes it is complete
@@prateekverma22hi I’m making this myself and it would really make my life easy if you could give me the code so I can just easily copy paste it (if it’s too much trouble pls tell me anyway cuz otherwise I’ll be left hanging)
@@abrishirfan6797 check description box
@@prateekverma22the links not working in my area
Ok never mind I used a proxy--- could you tell me the app you used to compile?
Can we use 9v battery ... please reply
Yes you can use but it will discharge fast
Bhai laptop ma kya kiya ho
link in description is not working
amazing bot bro, i have L298 motor driver board how to give connection for this bot?
Follow this link -forum.arduino.cc/t/4wd-obstacle-avoiding-smart-car-using-l298n-motor-driver-module-hc-sr-04-ultrasonic-sensor-and-sg90-micro-servo-motor/1159254
Please sir kaise bna sakte hai
i am making this project but servo motor us not working and all four motor are rotating for only one second it get stop.What should i do
today is last day of this project
please me
How many jumper wires do we need to buy?
10 jumper wires😊
bro one doubt can u reply asap , i have done this and i got error : AF MOTOR H NO SUCH FILE OR DICTIONARY
You need to first install the AFMotor library for arduino
@@prateekverma22 SIR HOWS ITS DONE? , I INSTALLED EVERY THING AND THE CODING ONLY LEFT
@@hasilhasil4213 you can check out my code , see in the description box
Please give the code ....link in description is not working
Can you explain in which app you run the program?
Arduino IDE, it has its own language which is very much similar to c/c++
@@prateekverma22 Thank you so much
bro plzzz send the code....this code was not copying to phone
This is good, but you could have made this much better if you had shown each detail and connection. A little more time would have made this go from watching someone throw parts together to a follow each step with me and learn how and why I'm doing this. And lower the awful background music.
bro is this project is suitable for mechanical students
Which Year ??
Please send the code of this
Will it move automatically if we add voice control also?
Yes, based on the command given to it
@@prateekverma22 😊 thank you for your help. Can I add Bluetooth speaker and Bluetooth module? Will it work?
Code tika gahanne kohomada aiye
Mekata keeyak viyadam unada
WE HAVE TO USE UNO OR UNO R3?????
anyone
Bro can you share that Coding part because me and my group are trying to do that project so plz...... Share it bro....
brohh if u get the code plzz share me Also request
code not working.
Brother how much price of instrument used in this
Total project cost around 1K
How to start and disconnect this robot is there any application or just Arduino coding
Only Arduino coding in Arduino IDE
Hello, would it be possible to transfer me the Arduino file please. Good day to you
Total kitne rupaye lagte is banane mein Bhai😊
What this library ?
I've used three library-
1. ( for motor shield)
2. (for ultrasonic sensor)
3. (for servo motor)
Sir mera 1date ko practical hai
i have done all process but still code is not working
What problem are you facing exactly? is the code not uploading ?
There are showing an error " AFMotor such file or directory not found
You need install 'Adafruit Motor Shield library' go to tools >manage libraries>
Is this remote control
No , it senses the obstacle by its own and takes the path free from obstacle
I have uploaded the code but my car is not working,, all the connection are correct and battery is also charged
Hi
Bhai code kaha se mila
Is this mechanical engineering project
It's an electronic project
hi
How to insert code in it?? Plz someone help me out
Watch this video-ruclips.net/video/1DAK19FPJXo/видео.html
Code bro
Code name bro
Mujhe banani hai sir
App active raha na
bhai please yaar code to daal de
Apke hath jodta hu bhai
How much money is required to make this?
To much
around 2.5k (INR)
@@prateekverma22 thanks
@@jacksonkitts2938 he is talking about rupees, not dollars
I built this using some scrap from an old project and some lego, probably cost around $30-50
please give the code
bro
It is uploaded now, check the description box
@@prateekverma22 sir code is not opening
Arduino Uno ka peaches Link bhejo na Bhai
quartzcomponents.com/products/arduino-uno?variant=31898093846663¤cy=INR&?FreeListings&gclid=Cj0KCQjwj_ajBhCqARIsAA37s0wyUwCgVcaQiaqY93a98kC0rRTWOMkfgJ1Pb6RwnpUMCudCpKC9GvgaApzTEALw_wcB
😭 fake code not working.
Bhai m Maruti Suzuki me job karta hu Bhai please
Very old project
old is gold
give me a code
See pinned message
no use, as no code given
Check description box
Mein project bana raha Hun fir koi problem aaye to telegram PE DM kar duga ok ?? Please reply
I'm facing problem, My project is not working on battery, it works perfectly when plugged into the laptop. can you help me. December 22 last date of submission.
@prateekvarma
1)Check the battery holder connection
2)check whether switch is working properly or not.
2)Make sure that the battery is not discharge or use new battery
Total kitne rupaye lagte is banane mein Bhai😊
Approx 2.5k