Тёмный
No video :(

How to make a LINE FOLLOWING WITH OBSTACLE AVOIDING ROBOT/ ARDUINO LINE FOLLOWING ROBOT/ smart robot 

MAKER Q
Подписаться 178 тыс.
Просмотров 108 тыс.
50% 1

In this video, we will learn how to make a 4 wheel drive line following robot with obstacle avoidance using arduino .
Codes & diagram: drive.google.c...
PREVIOUS VIDEOS
LINE FOLLOWING ROBOT • How to make a LINE FOL...
ARDUINO BLUETOOTH CONTROLLED CAR • How to make a Smartpho...
AUTOMATIC WATER TAP • HOW TO MAKE A AUTOMATI...
AUTOMATIC SOAP DISPENSER • How to make AUTOMATIC...

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 259   
@hassanarif127
@hassanarif127 6 лет назад
can it work with only two motors and wheels?
@MAKERQ
@MAKERQ 6 лет назад
Hassan Arif yes it will work with 2 wheels
@hassanarif127
@hassanarif127 6 лет назад
Thanks i tried and it works. Although i must say that the code had a few extra things which were not needed at all (at-least not in my case) so i made a few modifications to the code and now it works like a charm :) *Thanks Again*
@neilmitra4627
@neilmitra4627 6 лет назад
Excuse me, if it is possible could you please send me the edited code ( in the comment section here)
@hassanarif127
@hassanarif127 6 лет назад
Well i edited the code for only two motors at first, but later on i added two more motors for which the code provided by makerQ worked perfectly. All i edited in the code was the delay timings, and deleted a while loop, not any other major modification that i can remember, but unfortunately i don't have that code anymore, but if you can tell me the problem you're facing with this code i might be able to help.
@neilmitra4627
@neilmitra4627 6 лет назад
So the thing that is happening is that my wheels are continuously moving backwards, unable to follow a line, and unable to avoid obstacles, what I did was that I just removed the while loop from the code giving me this: #include //Ultrasonic sensor function library. You must install this library int vSpeed = 110; int turn_speed = 230; // 0 - 255 max int t_p_speed = 125; int stop_distance = 12; int turn_delay = 10; //HC-SR04 Sensor connection const int trigPin = 11; const int echoPin = 12; //L293 Connection const int motorA1 = 3; const int motorA2 = 4; const int motorAspeed = 5; const int motorB1 = 7; const int motorB2 = 8; const int motorBspeed = 6; //Sensor Connection const int left_sensor_pin =9; const int right_sensor_pin =10; int turnspeed; int left_sensor_state; int right_sensor_state; long duration; int distance; void setup() { pinMode(motorA1, OUTPUT); pinMode(motorA2, OUTPUT); pinMode(motorB1, OUTPUT); pinMode(motorB2, OUTPUT); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); Serial.begin(9600); delay(3000); digitalWrite(trigPin, LOW); delayMicroseconds(2); digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); distance= duration*0.034/2; Serial.print("Distance: "); Serial.println(distance); left_sensor_state = digitalRead(left_sensor_pin); right_sensor_state = digitalRead(right_sensor_pin); if(right_sensor_state == HIGH && left_sensor_state == LOW) { Serial.println("turning right"); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,LOW); digitalWrite(motorB2,HIGH); analogWrite (motorAspeed, vSpeed); analogWrite (motorBspeed, turn_speed); } if(right_sensor_state == LOW && left_sensor_state == HIGH) { Serial.println("turning left"); digitalWrite (motorA1,HIGH); digitalWrite(motorA2,LOW); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); analogWrite (motorAspeed, turn_speed); analogWrite (motorBspeed, vSpeed); delay(turn_delay); } if(right_sensor_state == LOW && left_sensor_state == LOW) { Serial.println("going forward"); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); analogWrite (motorAspeed, vSpeed); analogWrite (motorBspeed, vSpeed); delay(turn_delay); } if(right_sensor_state == HIGH && left_sensor_state == HIGH) { Serial.println("stop"); analogWrite (motorAspeed, 0); analogWrite (motorBspeed, 0); while(true){ } } if(distance < stop_distance) { digitalWrite (motorA1,HIGH); digitalWrite(motorA2,LOW); digitalWrite (motorB1,LOW); digitalWrite(motorB2,HIGH); delay(250); analogWrite (motorAspeed, 0); analogWrite (motorBspeed, 0); delay(500); digitalWrite (motorA1,HIGH); digitalWrite(motorA2,LOW); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); analogWrite (motorAspeed, t_p_speed); analogWrite (motorBspeed, t_p_speed); delay(900); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); analogWrite (motorAspeed, t_p_speed); analogWrite (motorBspeed, t_p_speed); delay(800); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,LOW); digitalWrite(motorB2,HIGH); delay(900); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); delay(700); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,LOW); digitalWrite(motorB2,HIGH); delay(650); digitalWrite (motorA1,LOW); digitalWrite(motorA2,HIGH); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); left_sensor_state == HIGH; while(left_sensor_state == LOW){ left_sensor_state = digitalRead(left_sensor_pin); right_sensor_state = digitalRead(right_sensor_pin); Serial.println("in the first while"); } digitalWrite (motorA1,HIGH); digitalWrite(motorA2,LOW); digitalWrite (motorB1,LOW); digitalWrite(motorB2,HIGH); delay(100); digitalWrite (motorA1,HIGH); digitalWrite(motorA2,LOW); digitalWrite (motorB1,HIGH); digitalWrite(motorB2,LOW); delay (500); } } void loop() { } But what's happening is that the motors/wheels continuously move backwards, unable to do anything else. Please help and thank you for the kind reply!
@Tech_Insights_with_Saha
@Tech_Insights_with_Saha 4 года назад
1:25 Thnx i need this only 💗
@daniwagaye4930
@daniwagaye4930 6 лет назад
are you sure the code is correct
@MAKERQ
@MAKERQ 6 лет назад
If it's not working delete the while loop in the code and try again
@dhruvpanchal1359
@dhruvpanchal1359 6 лет назад
Bhai code ka link open kiya to no preview available aa raha h kya karr
@drramkrishnajaiswal9121
@drramkrishnajaiswal9121 5 лет назад
which is the while loop to be deleted
@relaxingandrefreshingvideo801
@relaxingandrefreshingvideo801 5 лет назад
bro what is the battery used ?i m using RS.20 9v battery but its not working?
@yadgarqadir5824
@yadgarqadir5824 5 лет назад
i have problem with code/.... can you help me
@artiwaghmare862
@artiwaghmare862 5 лет назад
The code is not appearing... plz send this code.. sr...
@relaxingandrefreshingvideo801
@relaxingandrefreshingvideo801 5 лет назад
bro motos are not rotating???
@MAKERQ
@MAKERQ 6 лет назад
The while loop will stop the car , it is used to stop at the end, if your car is not moving delete that while loop
@vimalabaskar2410
@vimalabaskar2410 6 лет назад
MAKER Q I want a coad now pls
@rizalagustian_k2373
@rizalagustian_k2373 2 года назад
I'm using arduino uno for this project but the robot won't run at all, you said you have to delete the while loop first but I don't know where the while loop is, please show me 🙏🙏
@bharathkumarreddy1635
@bharathkumarreddy1635 6 лет назад
my motors are not moving.please help me
@k53_adityakumar6
@k53_adityakumar6 5 лет назад
Bhai Tim mast hai love you, are the best man, good luck for your work, thanks for the video, keep it up, nice cool bro.......!!!!!!!!!!!
@nguyenthanhhoan4223
@nguyenthanhhoan4223 3 года назад
Did you do it?
@kidtronics8437
@kidtronics8437 6 лет назад
love you sir...we went more cool project from you sir..
@latachavan9013
@latachavan9013 3 года назад
Arduino nano programing not open in to the description please give me the programing
@k53_adityakumar6
@k53_adityakumar6 4 года назад
Amazing you are mind-blowing
@abdullahmir7510
@abdullahmir7510 4 года назад
super, excellent just wow.
@itzmeathul7836
@itzmeathul7836 3 года назад
Bro ith malayalathil oru vdo cheyyoo plzzzzx
@parthaprateempatra4278
@parthaprateempatra4278 5 лет назад
Very well made
@maartengevers7800
@maartengevers7800 5 лет назад
can you plz send the code i need to make some thing similar for school and it whould help a lot thank u
@premadwivedi1616
@premadwivedi1616 5 лет назад
What kind of battery I can use instead of 18650 battery plz tell me sir
@deepakbains6755
@deepakbains6755 5 лет назад
sir i want to make all in one .bluetooth controlled +line following + obstacle avoidance ..please help in code or make a video of all in one ..
@TheDutchGamingBE
@TheDutchGamingBE 5 лет назад
You just have to buy a bluetooth module, connect it to the arduino, compile a bluetooth app to control the car. After all that, compile a code for the arduino so that the bluetooth module on the car can give orders to the arduino board that controls the car
@vishalshukla5363
@vishalshukla5363 4 года назад
can you let me know if it drives in revers after completing the line in to point b and ten it comes back to point a in a line with obstacles.
@smtechnomind4949
@smtechnomind4949 4 года назад
sir kya hum iss project me arduino uno use kr sakte hai kya with l298n and isake connection kaise rahenge with arduino uno.
@rizalagustian_k2373
@rizalagustian_k2373 2 года назад
I'm using arduino uno for this project but the robot won't run at all, you said you have to delete the while loop first but I don't know where the while loop is, please show me 🙏🙏
@unitedrobotics7377
@unitedrobotics7377 4 года назад
Is the output of the ir sensor is low or high?? Please answer..
@joeycerafice7843
@joeycerafice7843 5 лет назад
any idea how to fix a problem where only the front left and back left wheels are working.
@mohammednisthar7659
@mohammednisthar7659 4 года назад
Can you explain me what to do when only the obstacle avoidance works and the line follower doesn't works
@RomsTech
@RomsTech 5 лет назад
Hello Sir the car is not moving just upload the edited program or plz mail it to me i need it for my ptoject plz reply soon as soon possible i am waiting...........
@nguyenthanhhoan4223
@nguyenthanhhoan4223 3 года назад
you done yet?
@RomsTech
@RomsTech 3 года назад
@@nguyenthanhhoan4223 yup lol its been year now
@siddhantindave6391
@siddhantindave6391 5 лет назад
kadak re bhava
@1man4tech47
@1man4tech47 6 лет назад
Can you provide for l298d with program . I was typing to change your program but I cannot make.
@JahangirAlam-gs6uq
@JahangirAlam-gs6uq 5 лет назад
Can i use arduino uno?
@latachavan9013
@latachavan9013 3 года назад
Sir please give me the Arduino nano programing
@shalinimondal779
@shalinimondal779 5 лет назад
Please tell while loop wala portion kitna tak delete karna hoga please
@chaitanyachavan7278
@chaitanyachavan7278 6 лет назад
Please make same project using Arduino Uno
@sankalpjadhav4147
@sankalpjadhav4147 4 года назад
Can you plz share the list of all components required for this whole project and even the program we have a project based on this! Please sir
@bahaaeldin2656
@bahaaeldin2656 4 года назад
can it be made with python? i have been trying for 2 days to recreate it with python and rpi but no luck
@tanishtated1926
@tanishtated1926 4 года назад
what we can write in behalf of c/cc+ which is written in code
@vantakulasairam5401
@vantakulasairam5401 5 лет назад
hello! I made it. but, It's not following line and also not detecting obstacles. just moving in different directions. can you please help me!
@nguyenthanhhoan4223
@nguyenthanhhoan4223 3 года назад
you done yet?
@projectxshan509
@projectxshan509 Год назад
I have this line follower code
@raghavnaikdessai6577
@raghavnaikdessai6577 4 года назад
Can we use arudino uno insted of arudino nano
@relaxingandrefreshingvideo801
@relaxingandrefreshingvideo801 5 лет назад
reply brooooooooooo if obstacle is there again after turning left, what to do?
@dasunsathra1335
@dasunsathra1335 5 лет назад
this robo is very easy made
@marshrodrigues8116
@marshrodrigues8116 4 года назад
can i erase the old program of line following and use this new given program
@huythang3478
@huythang3478 5 лет назад
can it work with arduino uno r3?
@bimalxaviour8464
@bimalxaviour8464 5 лет назад
Thắng Huy Yes
@nguyenthanhhoan4223
@nguyenthanhhoan4223 3 года назад
xe chạy được chưa bro ơi.
@ravishankarshetty2583
@ravishankarshetty2583 4 года назад
Can we use arduino uno instead of arduino nano
@fazalmohammad6176
@fazalmohammad6176 6 лет назад
Where we have to write 'if' in the delay to come to line?
@zalriego298
@zalriego298 8 месяцев назад
This the code updated?
@jitendrakumardash3142
@jitendrakumardash3142 6 лет назад
Can I use arduino uno instead of arduino nano?
@ghatkarinagesh6173
@ghatkarinagesh6173 2 года назад
Is their any code to do this
@bimalxaviour8464
@bimalxaviour8464 5 лет назад
Which battteries do you use
@mohammedjubaed968
@mohammedjubaed968 5 лет назад
Maker Q help me when i clicked the link of code it shows (No preview available)what can i do now???
@vantakulasairam5401
@vantakulasairam5401 5 лет назад
DOWNLOAD it.
@dhaneshbaheti
@dhaneshbaheti 5 лет назад
Nice
@divyanshsao9380
@divyanshsao9380 4 года назад
Sir I want to stop the robot when there is obstacles how to do that , please share another code for that please please please 🙏
@divyanshsao9380
@divyanshsao9380 4 года назад
Please share this code without rotating it
@muhaiminulhaquepiyas7428
@muhaiminulhaquepiyas7428 4 года назад
sir your attachment code is not open .Why?plz help me
@ayaismeal4647
@ayaismeal4647 3 года назад
do you have the same code using raspberry ?
@eswarchandu2122
@eswarchandu2122 4 года назад
is it work with power bank?
@sab_tech
@sab_tech 6 лет назад
hi MAKER Q i'm using adafruit motor shield can you give me the program for that plsplspslspls i have school exhibition
@thrillsconnect2494
@thrillsconnect2494 6 лет назад
Will the cose work with ardiuno uno
@samkitjain148
@samkitjain148 5 лет назад
the code is unspportive....what should I do?
@Secret.words.p
@Secret.words.p 3 года назад
U dont have Instagram?
@gangstergamingyt2864
@gangstergamingyt2864 4 года назад
Nan robotics und pakshe corono aayathukond nadannilla nan colour sorter aake cheythu
@tejasoke655
@tejasoke655 5 лет назад
Can we use Arduino Uno instead of nano
@jabedomor887
@jabedomor887 5 лет назад
the code is error....why?? expected initializer void
@hasithasandeepa604
@hasithasandeepa604 5 лет назад
Sir...,How I can use Pid Control for this car...?
@ShubhamGupta-bs5rh
@ShubhamGupta-bs5rh 5 лет назад
In place of Arduino Uno can I use Arduino nano
@aneesh2092
@aneesh2092 4 года назад
Can I know the circuit diagram with pro mini aurdino
@sugumarvelu2079
@sugumarvelu2079 Год назад
Sir what is the rpm of the motor
@saumtallyshahanahwardah8279
@saumtallyshahanahwardah8279 6 лет назад
Am using a L293D is it a problem and am having a problem the robot look like its about to move but stop , can u help me
@MAKERQ
@MAKERQ 6 лет назад
Have you removed the while loop from the code?
@saumtallyshahanahwardah8279
@saumtallyshahanahwardah8279 6 лет назад
Yess sir but it is not moving at all, can you send me you email address so that i can send you my codes and tell me what am doing wrong .
@gamingwithsimba3563
@gamingwithsimba3563 4 года назад
Nice brain
@nikhilkatakwar7852
@nikhilkatakwar7852 27 дней назад
आवश्यक सामग्री कि लिस्ट बताओ
@akhil_aryanad
@akhil_aryanad 4 года назад
Superrr
@mobilehelp4208
@mobilehelp4208 4 года назад
What weight bear this car
@AnuragYadav-cp6xn
@AnuragYadav-cp6xn 5 лет назад
Muje avoid hatha k buzzer use karna hai kaise hoga
@mohitmehta2023
@mohitmehta2023 5 лет назад
can you give the code for arduino uno
@hemambikav5097
@hemambikav5097 5 лет назад
Yeah I can't afford arduino nano
@dimplebhootra4730
@dimplebhootra4730 5 лет назад
Is it the same with arduino uno
@TRAVELLER_DEV
@TRAVELLER_DEV 5 лет назад
Sir i am student and making line following many error is occuring please help
@dhruvpanchal1359
@dhruvpanchal1359 6 лет назад
Bhai code ka link open kiya to no preview available aa raha h kya karr
@r0ckstar
@r0ckstar 5 лет назад
Can i use a 12v battery
@maddukuridurgaprasad1950
@maddukuridurgaprasad1950 6 лет назад
Can we add Bluetooth to it then send to me circuit diagrams please send me the code
@durgeshkumaryadav8476
@durgeshkumaryadav8476 5 лет назад
While compiling code through mobile application ArduinoDroid it says error What should I do
@TheDutchGamingBE
@TheDutchGamingBE 5 лет назад
Maybe the library in which you're compiling the code ?
@shekhartandel4547
@shekhartandel4547 3 года назад
Can you pls send me the code for only two motors pls
@muhammadmehedihasanshishir9017
Can it work with 9V battery and using 2 motors?
@achrafnatouss4622
@achrafnatouss4622 5 лет назад
if you have code correct pls help me belkadirac@gmail.com
@pazhongautomation781
@pazhongautomation781 3 года назад
brother my ardioino is showing port com 3
@sahil.dzimal7411
@sahil.dzimal7411 4 года назад
it's not working please help me.
@piyushv5739
@piyushv5739 6 лет назад
Plzz tell if it is working so I can make my science model
@dodoashraf4014
@dodoashraf4014 6 лет назад
The code is not appearing Can you send me the code,please?
@TRAVELLER_DEV
@TRAVELLER_DEV 5 лет назад
Sir error occurred Of problem uploding to board
@arjunajee5167
@arjunajee5167 4 года назад
How can i get the items
@rogergamer5816
@rogergamer5816 5 лет назад
the code is not working
@prasannalaxmi1249
@prasannalaxmi1249 5 лет назад
Can you do with arduino uno plrase
@abhisheksahoo9229
@abhisheksahoo9229 3 года назад
Sir can I use Arduino Uno
@harishtwo52
@harishtwo52 5 лет назад
If I use arduino UNO instead of arduino nano then can I use the same codes or different codes are needed?
@culturarobotica6052
@culturarobotica6052 5 лет назад
you have no problem you can use any arduino
@nguyenthanhhoan4223
@nguyenthanhhoan4223 3 года назад
you done yet?
@67omkarwaghmare28
@67omkarwaghmare28 5 лет назад
Coding link is not working please make again.
@prasannalaxmi1249
@prasannalaxmi1249 5 лет назад
Can you please make the robot with arduino uno
@prabhavatikeny1375
@prabhavatikeny1375 5 лет назад
Without any programming circuit led is on or not
@vantakulasairam5401
@vantakulasairam5401 5 лет назад
it will be on , if power is supplied
@1man4tech47
@1man4tech47 6 лет назад
bro how you have taken motor connections in program
@MAKERQ
@MAKERQ 6 лет назад
What you mean?
@bgandhi5580
@bgandhi5580 5 лет назад
sir code sahi nhai hai
@youdisteve2918
@youdisteve2918 6 лет назад
what is the type of arduino you used in this car?
@MAKERQ
@MAKERQ 6 лет назад
Yudhi Ardian Arduino nano
@pazhongautomation781
@pazhongautomation781 3 года назад
what i have to do it not moving😭
@jasonflores8734
@jasonflores8734 5 лет назад
what are materials for this project? need asap
@saifkhld
@saifkhld 4 года назад
how can i get the code
@shakirmppnd5401
@shakirmppnd5401 2 года назад
How many total expensive bro
@maddukuridurgaprasad1950
@maddukuridurgaprasad1950 6 лет назад
I did it but motor is not running,what is the folt
@vantakulasairam5401
@vantakulasairam5401 5 лет назад
i too did it, motors running, but not following line
Далее
How To Make Line Follower Robot      Step by Step
7:33
Просмотров 177 тыс.
How To Make A DIY Arduino Line Follower Car At Home
5:51
DRAWING/WRITING MACHINE V2 | CNC 2d plotter
9:27
Просмотров 4,6 млн
Are PID line followers ACTUALLY faster?
6:07
Просмотров 16 тыс.
How to build a Line Follower robot
5:51
Просмотров 3,6 тыс.