How To Make Line Follower Robot Using PID Controller | Maze Solver Robot Using Arduino At Home
Vložit
- čas přidán 26. 08. 2018
- How To Make A Maze Solver Using Line Following Robot With PID Controller Using Arduino Nano and L298N Motor Driver Module : In this project we will learn how to solve a maze using "Left Hand On Wall Algorithm" using a Line Follower Robot with PID Controller using Arduino Nano.
----------------------------------------------------------------------------------------------------
Required Hardware's:
```````````````````````````````````
IR Modules : amzn.to/2PMyLbs
Car Chassis : amzn.to/2P78x22
Breadboard : amzn.to/2wjFPEm
Arduino Nano : amzn.to/2ogcOF6
7x2 cm Wheels (2 Pcs) : amzn.to/2BTshVn
L298N Motor Driver Modules : amzn.to/2NoCcDB
12v 300 RPM DC Geared Motors (2 Pcs): amzn.to/2MVXriT
----------------------------------------------------------------------------------------------------
Circuit Diagram: drive.google.com/open?id=11XM...
Source Code: drive.google.com/open?id=1uwI...
----------------------------------------------------------------------------------------------------
Follow me on social media:
``````````````````````````````````````````
Instagram: / geektechnophiles
Facebook: / geektechnophiles
----------------------------------------------------------------------------------------------------
Background music:
``````````````````````````````
Song: Mike Posner - I Took A Pill In Ibiza (Instrumental Remix)
Video link: • Mike Posner - I Took A...
GeekTechnophiles - Věda a technologie
This is the best I have seen so far. Thank you for sharing!
Good work with full of explanation.. 👍👍
Bravo, Excellent !!!
My remark regarding this kind of projects about the car, and the motors.
The motors are very fragile !!! you should reinforce the motors connections with some tape.
The other thing, is that the key for this project is the batteries !!!
I finished by using 18650 batteries.
I will try to use this PID source.
It looks very fluid robot.
BRAVO one again.
Thanks to share.
this is really helpfull , glad to see this vid !
Very cool indeed
You could sell the whole thing as a kit, including a printed path :)
Undoubtedly the best video on this topic... and keep making more videos 👍
Thank you so much brother 💓💓🤓
@@geektechnophiles2494 can i use arduino uno???
@@rafinmahfuz8979 yes of course
It's a very detail and beautiful process! Thank you very much! Likes for your music taste
Amazing , Geek Tehnophiles
First,thank you I used TCRT5000 5 sensors and I adapted your code to mine.Very beautiful.Thank you
@emir uzuner can you share your code
can you share your code please
Hi sir, Can you share your code please, Thanks
is it ur modify code is work
This is something else wooooooooooo 🤟🤟🤟 this is better line follower I've ever watch so far 👍🤟 but can I ask sir? how about using motor shield? And Arduino uno?
Greate work 👌
Bro, does the source code given in your description use only pid algorithm or both? And can replacing sensor(number)==high or low instead of 0s and 1s work for analog pin?
Awesome !
awesome broo very nice video
Thank you for a wonderful video. Now I have a project about PID. Can you give me some reason to find out constants PID. Thank a lot
Great video, which really helped me a lot. Hope there's another video about how the code works.
thank yooooouuuuu!!!!!!!!!!!!!!!!!!!!!!!!!!!
good video thankyou
Does it can simply solve maze or it can record shortest path to solve the maze ?
Ir module uses which op amp 358 or 393
Done using Left hand wall algorithm and PID algorithm, kindly note!
Thankyou !
Nice info bro🔥
Hi where the negative point of the two batteries for motor driver is used?
Awesome thanks for the help
Thanks buddy 🤓🤓
Can I use a reflective array sensor instead?
Can i use 100 rpm motors in this project??
Awesome broiii
Thanks bro 🤓🤓
Sir, can you give me the circuit diagram and the code for the 5v buzzer for the line follower robot, so the line follower robot gives the sound when crossing the checkpoints of the black line for the line follower robot, is it possible or not?
Cool !
Thanks buddy 🤗🤗🤓
In the code you have used ENB with the right motor ...is that correct ?
bro I have build as same as you build . it will follow the lane but if curve comes some times it will go out of track and it will be rounding in circle . can you suggest me what I should alter in it
will i have to change in the code if i use a 5 ir channel sensor?
good
Does it also learns the shortest path ?
good keep it up
Thanks 🤓
can it do turns which are more than 90 degree?
First Thank for your video. IF I WANT TO INCRASE SPEED HOW SHOULD I DO?
can I use 8 IR sensors instead of 4 IR sensors?
will it work just by modifying the read sensor values by adding 4 more sensors values and their if condition statement?
or I need to change the entire code of yours?
No you can go ahead and modify the code with four new sensors input.
bro,
how you made the black line (either paint or any other)
where did you get the kp ki and kd values for the pid regulateur?did you find them by trial and error or are they random?
PID controllers are normally made by trial and error, but if you know the transfer function there are some methods to approximate the values, but they don't take into account the non-idealities such as noise and things like that
doing great job bro👍🏻
Thanks buddy 🤓🤓🤗🤗
@@geektechnophiles2494 hello bro, I had tried to make same but it won't work will helpe plzz 6295494500 this is my whatsapp No. Plzz help me
I'm not getting why you use the speed of 110 and 90 in any cases, is it just to sync both of the motors? It depends on our motor working the same or not, right?
yes because the commercial motors is not the same quality and speed so he made some tests to make the motors the same speed
Good job...
can I use 3 sensors instead of 4 sensors?
for 3 want to alter the code bro
is there any problem if the width of the black line is less than the width of the black line in this video?
can i use analog value of sensor to read the line instead of digital value. Thanks
Yes you can but for this code you need digital values of sensors.
Can we use Bo motor
What is the line width si?
How about dificult Track..
Can we use this robot?
This is an excellent tutorial.......but can you plz help me? i want to track black and white both line with one code at a time... can you plz provide me the code using these same materials?
whatif we are using uno module??
What should be change in the code if there is a white line and black background?
How did you powered up the dc motors of 12 v with the battery of 9v. Will it not go slow??
if you need more power, just add some converter (step-up converter),
Where did you connect the battery please tell
Does the code work as you uploaded it? Or are there modifications required?
hey bro,
I have several questions,
1. why did you put analogwrite right motor speed -30? is it because of your l298n didn't give the same voltage for both of motors?
2. why did you only concern about error 100-103? Are the others are not impornant?
Michael, thanks
I want to try to practice it ... but I am confused how the program would you share the program? please
Battery konsi use kiye
Why did u connect the +5v pin of L298n with the +5v pin of arduino when u are powering the arduino with a separate powersource?
The ground and Vcc of motordriver and arduino must be same
Can you describe the connections from battery.
Hi, I built the same robot as You. But I used 2xpololu motors (micro version 12v N20-BT03 micro 10:1 3000RPM - 12V). But when i started the motors havent power to move the robot. Idk why. I done everything like You but have different motors that's all.
anyway cmiiw, maybe your supply ennergy for your motor is not enough. you must increase voltage your power supply
,maybe other poeple in here may give other advice
Can you please show how to connect the batteries or explain it properly plz.
What i have to do if a want to run the bot on white line on black surface ? pls tell
Sir please send me an circuit diagram for aurdino uno please is urgent and also a code if we use 8 it sensor
Can you share its clear image of circuit diagram
Can you explain why you use different value for Enable A and Enable B (Enable A is 120 but Enable B is 90). Is it due to motor is not "perfectly" the same?
because the commercial motors is not the same quality and speed so he made some tests to make the two motors at the same speed
Please explain me the interest to use more than 2 IR sensor for that application
4 IR sensor is used to make it more accurate and i have used PID algorithm and Left hand wall algorithm to solve a maze which can't be possible with 2 sensors...
Bro can u share me the code a line following bot that is capable of following the path of black line as well as the white line in a black surface.
hi, what was done at 5:39 ? i didnt really understand that part
Can it find shortest path
This robot works any kinds of maze structures
Bro we can use L293D instead of L298N...Is there any code problem when motor driver is changed
you can , but make the pins the same
if i want to follow a white line then what should i change in code
If code is duplicated will it be same outcome
Have you connected all three batteries on breadboard. You have used three batteries. 1 and 2 batteries joined with common ground. 2 and 3 are connected in series. I m not able to see the red wire of battery 3 fixed underneath chassis. Could you please help?
In diagram you have shown connection with +9v but in this video demonstration I am not able to see any that connection? Kindly help
same problem with me also
How do you choose Kp Ki Kd?
is the maze already implemented with pid????
Which is the best motor.. And can we use aurdino uno bro. Pls.. Last doubt
If you have BO motor use it otherwise use suggested motor in video components list
How can i buy these tires
can we just use 2 sensor IR ? i have tired now but its not working :V
How do you all learn this?! I want to be that good but I don't even get past basic ideas!
Start with C or C++
no
watch a full courses of arduino
because th C and C++ will take alot of time but arduino is easier
Bro mera robot nhi chal raha connection jo circuit diagram walay wohi kiye or code wohi ap ny diya tha but wo round round ghoom raha bas or submission date kal hai btao ab mai kya krn
How do you power up your system
I have used three 9v batteries one for Arduino nano and another two for L298N module to drive motors. Watch video carefully to understand it.
Bro can we use two sensors
you can , but it is not very accurate and you need to modify the code for 2 sensors
Hey, why did u use -30 in case of right_motor_speed?
Just to sync both motors speed.
@@geektechnophiles2494 Thanks. Is it necessary or does it depend on the bot?
Can someone tell me where did he connected the red wire of 3rd battery
I have connected two batteries in series so red wire of one battery is connected with black wire of another battery to make series connection between two batteries. I hope you understand 😃😃
Thx bro for making video but Kay ap muje 5 sensor vala code de sakte ho one sensor in middle plz Bhai muje code Nahi atta Mene robot Accha banaya he liken meri clg me compulsory 5 sensor vala dikhna he after 2 day submission he plz Bhai is code me Edit Karke 5 sensor vala code do I humble request....
can you send me the fritzing file for IR sensor to make the citcuit diagram of mine ?!
can we use L293D instead of L298N
yes but l298n is better
Is the code differs for l239d
No, you can use L293D driver module which has PWM input pins.
Hey why kp value is greater than kd value....???
For stability
It gives me error in the code after uploading?what should I do please help me
What error is it?
Can we increase the speed of the motor bro
Yes
sir iam not getting 12volt supply for motor
please help me....
Ask for motor driver l298d
Can u please provide another link for the code
No need of 4 sensors, it could be done with just 2
no..... we... need at least 3
More sensors more accuracy
Help me for doing white line follower instead of black line i am in middle of my project pls help me fast of tell me code for it plsssss
bro please help me to make a pick and place bot
Your line maze solver can find shortest path?
can anyone explain, why in code we take the value of Kp=25,Ki=0and Kd=15
Actually thats just a number.......
U shud start with all three 0....
And keep on trying with diff variation of three nos....and fins the best possible value......it's complete practical thing