Code For Line Follower Robot

  Рет қаралды 114,729

Youth Transform

Youth Transform

7 жыл бұрын

The video explains about the code for line following robot.
You can also download the code for line follower from the link below:
github.com/shubhamgupta2502/L...
You can purchase whole kit from the link below:
www.roboinventors.com/index.ph...
You can purchase arduino from the link below:
www.roboinventors.com/index.ph...
You can purchase L293d motor driver from the link below:
www.roboinventors.com/index.ph...
You can purchase analog array sensor motor driver from the link below:
www.roboinventors.com/index.ph...

Пікірлер: 116
@iamkeyans
@iamkeyans 5 жыл бұрын
Super sir! We are waiting for the best upcoming robotics videos.
@pearlabeywickrama9845
@pearlabeywickrama9845 7 жыл бұрын
Thanks.... using this code & 3 sensors... I made... it works
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
Thank you...
@itmemo8617
@itmemo8617 7 жыл бұрын
thank you for the explanation < 3 mins thumbs up
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
you are very welcome sir...
@faizanahmad3033
@faizanahmad3033 7 жыл бұрын
nice brother
@techguide2742
@techguide2742 3 жыл бұрын
Thanks bro
@life_is_code
@life_is_code 3 жыл бұрын
Can u tell which app u use for recording code in windows 7
@shrushtiwamne6611
@shrushtiwamne6611 5 жыл бұрын
Sir , what is needed to be done to make bot turn complete 180 degree?
@prasadurunkar13
@prasadurunkar13 6 жыл бұрын
plzz can u make a video on making obstacle sensing and line follower in single robot...
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Okay I will upload soon.
@vivekbanerjee6852
@vivekbanerjee6852 6 жыл бұрын
sir, apke programming me ir sensor k liye to koi code nai tha...to apne jo code likha hai isse ir sensor kaam karega?....aurapne yaha analog leke kia hai....kya hum digital pin leke ker sakte hai kya?
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
This code is for analog sensor if you are using digital sensor like ir you can change analog pins to digital and values of reading like 700 to 0 or 1.
@kakak_macho5871
@kakak_macho5871 4 жыл бұрын
it is same with pololu sensor??
@rashmiraj5197
@rashmiraj5197 4 жыл бұрын
Plz post the circuits designing for this code
@mahendramishra9863
@mahendramishra9863 7 жыл бұрын
Can you make a video on ardunio programming learning
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Yes sir I will
@debanjanghosh3571
@debanjanghosh3571 6 жыл бұрын
Hello!!! I understood the coding except one part, it is that why use specifically "700" as reading of analog array sensor and not any other no.??????? Please clarify. Thank You.
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Serial Monitoring (Readings) of analog array sensor which I have used is the average of the reading on black colour line and on white colour line...so the average is 700 that means if the reading is less then 700 then the sensor will see black line and perform defined operations. And if you want to learn whole robot practically then you can visit www.roboinventors.com where online courses are available. Thank You.
@debanjanghosh3571
@debanjanghosh3571 6 жыл бұрын
Youth Transform How did you get the average?
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Serial Monitoring refers to the sensor reading, what the sensor see so from the reading let the value on white colour be x and value on black colour be y so the average will be (x + y)/2... And I got average 700.
@shivangitiwari856
@shivangitiwari856 6 жыл бұрын
How can we know the value of white n black color sir ? As u have told that the term 700 was calculated by taking the average
@stephanusbryan8281
@stephanusbryan8281 4 жыл бұрын
suwon
@manojrabha3421
@manojrabha3421 6 жыл бұрын
Hello Sir, i have gone through all the comments & i have understood how you got 700. But, how to apply the same logic with the digital IR Sensors? Regards..
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
If you are using digital sensor no need to take 700 as digital sensor only gives digital values like 1 and 0, so better used 1 or 0 instead of 700 and in given code replace analogWrite with digitalWrite.
@talpasaidasari8809
@talpasaidasari8809 5 жыл бұрын
Why only 700 there is a concept behind it please explain it sir
@bokamososhimamorejwane4523
@bokamososhimamorejwane4523 7 жыл бұрын
Hey thanks. How can I use this code in MPLAB IDE??...
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
You can use logic of this code anywhere you want but pls change format as you change IDE.
@theilluminator9566
@theilluminator9566 7 жыл бұрын
How can i program a T junction to always go left for example?
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
just put this condition:- if(ex_right
@vivekbanerjee6852
@vivekbanerjee6852 6 жыл бұрын
apne void loop me jo int centre lia hai wo kis liye hai??
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
int centre is for center sensor reading
@KrishanDhanda
@KrishanDhanda 4 жыл бұрын
What if both left and right are > 700 ..condition not handled
@JavedAliURL
@JavedAliURL 6 жыл бұрын
I made it works
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Great..:-)
@salmanalfarisi9395
@salmanalfarisi9395 4 жыл бұрын
Please program line follower using IC STM32
@welkyyohannes9511
@welkyyohannes9511 6 жыл бұрын
i have problem using your program arduino say " 'ex' was not declared in this scope" , so how to overcome it?
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
check the declaration on the top of the code with the line where you ex is used, both should me same and also case sensitive.
@frostywamne9186
@frostywamne9186 5 жыл бұрын
sir , can we use this same code to follow white line as well? or do we need to change something into it?
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Yes, you can use it for white line follower just you need to change the sign from "" and from ">" to "
@shrushtiwamne6611
@shrushtiwamne6611 5 жыл бұрын
Youth Transform thank you
@shrushtiwamne6611
@shrushtiwamne6611 5 жыл бұрын
One more thing I wanted to ask , what is needed to be done to turn the not complete 180 degrees .
@shrushtiwamne6611
@shrushtiwamne6611 5 жыл бұрын
Bot*
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
To turn bot complete 180 just reverse the direction of second motor with direction of first one. If your right motor is rotating forward so just reverse the left motor in coding, it will take 180 degree.
@kartikasingh6042
@kartikasingh6042 5 жыл бұрын
hello sir which sensor you are using and the code of program are in which language ?????????? please reply
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
I am using analog array sensor and code is in c language which is used in Arduino IDE. It is known as Embedded system code.
@frostywamne9186
@frostywamne9186 5 жыл бұрын
sir , i really need to know this , it will be very kind of you if you could tell this at the earliest
@S1ynced
@S1ynced 5 жыл бұрын
Yeah i would also like to know +Youth Transform
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
check the above comment.
@pratikkakade5747
@pratikkakade5747 Жыл бұрын
Only 2 sensor are used in this code. what about other?
@md.hafizurrahman5495
@md.hafizurrahman5495 4 жыл бұрын
you should use a condition for end point
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Thanks for advice
@kailashchavan2892
@kailashchavan2892 4 жыл бұрын
How you the value 700
@sayeedmajidsunny5200
@sayeedmajidsunny5200 6 жыл бұрын
i have an ir sensor board....where 6 sensors are present....how can i calculate average value of 6 sensors??
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
For accuracy don't use all 6 sensor check the size of the line and use extreme sensors shown in the video. Or if you want to use all 6 sensors check values from serial monitoring code and take average of values.
@chazcarothers4093
@chazcarothers4093 7 жыл бұрын
Can I use this for the M-bot?
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
yes, you can use, but you have to change the numbers in program at which your pins are connected in M-bot kit, and also you analog array sensor.
@prrathammehta609
@prrathammehta609 6 жыл бұрын
which senssor you arre using
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Analog array sensor.
@nearlyop8265
@nearlyop8265 5 жыл бұрын
thanks for the code, but can you tell me what is the meaning of the number 700 pls
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Nearly OP 700 is the average reading of the analog array sensor, average of sum of reading on which and black.
@nearlyop8265
@nearlyop8265 5 жыл бұрын
@@shubhamgupta0524 thanks bro ^^
@kairy6174
@kairy6174 4 жыл бұрын
do you have the instructions about how to make the product?
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Khôi Vũ Duy yes, we develop products also. For more details you can mail us at Roboinventors@gmail.com
@revannasiddiah7227
@revannasiddiah7227 5 жыл бұрын
Can we use it for Arduino nano
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Yes you can, just check connections properly on nano as in nano their are less no. of pins compared with arduino uno.
@sandhyaudyavar6869
@sandhyaudyavar6869 4 жыл бұрын
May I know what 700 stands for?
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Sandhya Udyavar 700 is average value for reading of analog sensor on white and black.
@bhavaninallamilli1850
@bhavaninallamilli1850 4 жыл бұрын
Can we use this for only two sensors
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Bhavani Nallamilli yes you can...
@fvviz409
@fvviz409 6 жыл бұрын
any sensor will work?
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
It should be Analog Array Sensor.
@mahendramishra9863
@mahendramishra9863 7 жыл бұрын
What code should be for Arduino Nano
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Same code like Arduino Uno just change pin number in code
@fazilanasim1240
@fazilanasim1240 5 жыл бұрын
my sensors are working properly but it takes too much time that the car is going forward without detecting the line.. I set speed at110 using pwm but still result is same. can u plz tell how to solve this problem?
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Which sensor you are using?
@labibahmedtonmoy2247
@labibahmedtonmoy2247 6 жыл бұрын
what should i do if i use 7 ir sensor??
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Use any sensor as the logic implemented is same just change the values in code.
@qubaali1928
@qubaali1928 4 жыл бұрын
Can you share line followers robot using microcontroller?
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
Quba Ali Hello, this video is using arduino microcontroller.
@SoDu97
@SoDu97 7 жыл бұрын
what is nc in sensor ? please tell
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
nc means Not Connected... you don't have to connect this pin...
@shoroukelsebaie8487
@shoroukelsebaie8487 7 жыл бұрын
how did you know that you should use 700 ?
@shubhamgupta0524
@shubhamgupta0524 7 жыл бұрын
From the Serial Monitoring... From the serial monitoring program you can know exact readings or any sensor..& in this case this is analog array sensor so the readings from Serial monitoring on the white color line is 400 and at black 1000 so the average taken is 700. And if you want code for Serial Monitoring provide me you your mail id I will mail you.
@jakeshalla1056
@jakeshalla1056 6 жыл бұрын
Bro ., What is 700 there in the code
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
jakesh alla 700 is the reading of analog array sensor...know as Serial Monitoring.
@vikashkhande58
@vikashkhande58 4 жыл бұрын
Programming upload Ni ho rahi h or kabhi ho jati h toh run ni ho Raha h yr...
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
We can help you in making your bot, code and connections are right they are working fine. If you need help you can mail us at support@roboinventors.com
@2mcucukakek61
@2mcucukakek61 5 жыл бұрын
ok
@rashmiraj5197
@rashmiraj5197 4 жыл бұрын
Where is the circuits on proteus
@shubhamgupta0524
@shubhamgupta0524 4 жыл бұрын
For understanding circuit diagram you can go to the link kzfaq.info/get/bejne/pJqXn6aimZ7cp58.html
@rajabmur4311
@rajabmur4311 4 жыл бұрын
why did you connect five sensors and used only two?
@sandhyaudyavar6869
@sandhyaudyavar6869 4 жыл бұрын
That's exactly what my question is
@anupbadgujar8468
@anupbadgujar8468 5 жыл бұрын
nice but improve it
@abhishekmurgeson3263
@abhishekmurgeson3263 6 жыл бұрын
how to stop line follower at same point after 3 rep
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Just include the condition at which you want to stop and for motors use LOW.
@mousumighosh6614
@mousumighosh6614 5 жыл бұрын
u wrote a 2 sensor motion code but u are accepting 5 sensor input????
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Yes, because if you want to use 5 sensor you can use it easily. We are taking output for 5 sensors but using only 2, if you want to improve accuracy you can use all 5.
@sayeedtagorofficial9991
@sayeedtagorofficial9991 5 жыл бұрын
Can you give me a code of 8 ir sensor ???
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
It is depend upon the size of line and the sensor you are using so if possible send me the image of the path which robot has to follow as well as image of the sensor you are using. Mail at: shubhamgupta00524@gmail.com
@awanspeaksofficial6720
@awanspeaksofficial6720 6 жыл бұрын
man i run this code on ardinuo but it gives error
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Tell me error or better send me code on my mail id: shubhamgupta00524@gmail.com
@piyashmirza4909
@piyashmirza4909 6 жыл бұрын
plz give me that programming code
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Github link is given above
@aqsabutt7560
@aqsabutt7560 6 жыл бұрын
Why you used 700?
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
Go through other comments.
@amitsahu5966
@amitsahu5966 2 жыл бұрын
Can you help me
@shubhamgupta0524
@shubhamgupta0524 2 жыл бұрын
Sorry for late reply, yes please tell me how can I help you?
@awanspeaksofficial6720
@awanspeaksofficial6720 6 жыл бұрын
CAN YOU SEND ME THIS CODE
@shubhamgupta0524
@shubhamgupta0524 6 жыл бұрын
Code link is mentioned above.
@janiruhettiarachchi4386
@janiruhettiarachchi4386 6 жыл бұрын
T junction
@shubhamgupta0524
@shubhamgupta0524 5 жыл бұрын
just add some more functions.
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Shyam Ravi
Рет қаралды 299 М.
LINE FOLLOWER SENSOR'S REVIEW
7:00
Grey Robotics
Рет қаралды 47 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 114 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 61 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 49 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 26 МЛН
mBot following a line - Define path for your mBot
3:08
BDS Education
Рет қаралды 4,1 М.
7 Programming robot for line following and Junction identification
10:53
The Fastest Maze-Solving Competition On Earth
25:22
Veritasium
Рет қаралды 19 МЛН
Obstacle avoiding robot using arduino - correct program
4:44
Mohammed Faadhil Engineer
Рет қаралды 35 М.
Line follower robot using PID control
23:13
IIITDM K SciDude
Рет қаралды 40 М.
explanation of  line follower robot using ir sensor and L293d
11:41
Fast Line Follower Robot using PID: Step by Step Tutorial
10:51
Aslam Hossain
Рет қаралды 38 М.
Line follower Robot with circuit diagram explanation-HINDI
6:02
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 114 МЛН