How to Make PID Line Follower Robot Using Arduino
Vložit
- čas přidán 25. 08. 2024
- order your PCBs from JLCPCB
just 2$ FOR 5 PCBs
jlcpcb.com/ESC
EDISON SCIENCE CORNER
In this video tutorial I am showing how to make a PID Arduino line follower robot.
BUY FROM HERE
www.esclabs.in...
tutorial
www.instructab...
download code and circuit from here
drive.google.c...
links to buy parts
Arduino Nano
amzn.to/3lkjSNR
QTR 8 RC
amzn.to/3k6h4F0
DRV8835
www.pololu.com...
N20 motors
amzn.to/3lhHZgj
__you can find__
IoT projects, tutorials
Arduino projects,tutorials
diy stuffs
blynk app projects
science projects
__lets connect___
🅆🄷🄰🅃🅂🄰🄿🄿
chat.whatsapp....
🄸🄽🅂🅃🄰🄶🅁🄰🄼
/ edison_science_corner
🄵🄰🄲🄴🄱🄾🄾🄺
/ escpage
🅃🄴🄻🄴🄶🅁🄰🄼
t.me/edisonsci...
#linefollowerrobot #arduino #robot
electronics project
arduino
arduino projects
easy projects
electronics
edison science corner
Projects
Electronics projects
How to make
Top arduino projects
Simple arduino projects
Easy Arduino projects
Arduino uno
How to make robot using arduino
Robotics projects
Diy
Diy projects
Diy arduino projects
Arduino robot
Arduino iot projects
Iot
Iot projects
Top 10
Best arduino projects
Pcb
Pcbway
Gerber
Easyeda
Amplifier
Jlcpcb
Ki kad
Atmega328
Esp8266
can i use any other motor driver?
The thicker the line is, the more IR sensor it needs right?
I'm building my own IR sensor. I just finished one but I don't know how many more I need.
Is 2 sensors enough?
Nope not like that. Number of sensors increase the precision.
@@EDISON_SCIENCE_CORNER Thank you
Nice !
please use a better micro soldering iron while soldering SMDs and also use good soldering techniques.
good PCB !👌
Thanks for your suggestions..❤️
@@EDISON_SCIENCE_CORNER hello bro i want learn pid how can i learn?
Great design and video.
Thank u
Sir please can you make a code for aurdino uno with same ir arrays and l298 motor driver please
Will make that
@@EDISON_SCIENCE_CORNER please I need it before 19
Love it! - When will your PCB and complete robot be back in stock?
In a month may be
Can u mention what all are the SMd and through hole components, also if I use a 400 rpm motor and 1293d motor driver which battery should I use
Are you using analog or digital sensor?
Digital
@@EDISON_SCIENCE_CORNER were you able to improve the robot?
amazing project! how much time did it take to make such a robot?
2-3 days
I have a question can I use the motor driver DRV8833 instead of DRV8835?
Noo
More tuning pid to smooth running
Yes
@@EDISON_SCIENCE_CORNER waiting your better pid setting
Awesome ❤️
Thanks
What changes should be done if I use tb6612 motor driver
You have to change the code and design
How do you perform the trail and error tuning for PID gains? What values do you start with?
Start with Kp, Ki and Kd equalling 0 and work with Kp first. Try setting Kp to a value of 1 and observe the robot. The goal is to get the robot to follow the line even if it is very wobbly. If the robot overshoots and loses the line, reduce the Kp value. If the robot cannot navigate a turn or seems sluggish, increase the Kp value.
Once the robot is able to somewhat follow the line, assign a value of 1 to Kd (skip Ki for the moment). Try increasing this value until you see a lesser amount of wobbling.
Once the robot is fairly stable at following the line, assign a value of 0.5 to 1.0 to Ki. If the Ki value is too high, the robot will jerk left and right quickly. If it is too low, you won’t see any perceivable difference. Since Integral is cumulative, the Ki value has a significant impact. You may end up adjusting it by .01 increments.
Once the robot is following the line with good accuracy, you can increase the speed and see if it still is able to follow the line. Speed affects the PID controller and will require retuning as the speed changes.
Hey, hell of a job! Your videos are hella useful and interesting.
Can you help with a 16-sensors linefollower using 2 qtr instead of 1?
Thanks. I will try
Need the schematics for this project.
Check the video description
Cool!!
Thanks and welcome
Why does latest library works but 3.1.0 doesn't
Inwrote the code using old library
Great work
Thanks
@@EDISON_SCIENCE_CORNER what was the total cost would be great if u remember
Good work ❤️
Thank you
How can i increase the speed ?
Should i use high rpm motors?
You have to change the motor RPM
Good job... u are so...
So...
What kind of QTR library version did you use?
Not the latest one. Just use the penultimate version
where is buy DRV 8835??
Aliexpress
Can you help with the code for the line follower robot following white lines in black surface
Yes
what will happen if I use 300 rpm motors?
It moves faster
It will be slow as shit
Then eat that shit
How to use it in White line
We can change the code
hello, can you do it with motor backward?
Whats that mean
Awesome 😍
Thanks buddy
What is U3 the smt component?
Voltage regulator
Any replacement for drv8835. Because drv8835 driver Price is too high😢.
New version uses l293d
@@EDISON_SCIENCE_CORNER how bro . Can you tell
what is the H1 and H2 and u3
Voltage regulator and header pins for connecting motors
Can we use another motor driver. The one you used is too expensive because of shipping.
We can't use other drivers with this circuit
@@EDISON_SCIENCE_CORNER 🙁
Where can I buy the PCB you haved made
Message me
Can i do with l298N motor drive
Yes but you have to modify the code
Не могу найти проект для easyEDA. не хочется в ручную переделывать плату
What
can u tell which battery u used
7.4 volt li - ion
I cant seem to open your code from the google drive link you sent, could you send another one copy of your code please?
Ok
Arduino: 1.8.19 (Windows 7), Board: "Arduino Uno"
LF29:1:10: fatal error: QTRSensors.h: No such file or directory
#include
^~~~~~~~~~~~~~
compilation terminated.
exit status 1
QTRSensors.h: No such file or directory
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Kindly tell the solution
Include the library
Awesome.
Can I substitute DRV8835 for DRV8833 ?
You have to check the datasheets of both. If the pins are the same you can use them. I have not tested
👍👍
Thanks 😊
🔥🥰🤟
🍑🍑🍑
Hello
U have made a connection for TX, RX, GND, VCC on PCB is it for programing Arduino through FTDI? if not then for what purpose it is there? Also we can skip that right if we are programing Arduino directly using cable?
I made that for connecting Bluetooth module for debugging
@@EDISON_SCIENCE_CORNER ohhhhhhhh for manually setting PID values right? I get it thanks alot and very good deign and project.
What if I use 450 rpm motors?
Speed will increase
whats is the R1
You mean
Where can I learn PID algorithm
Internet
How to increase speed?
You can change in code also by changing the motor
@@EDISON_SCIENCE_CORNER how bro can u say
@@IbrahimDhanishJDefine speed in code or just change the motor to higher rpm ons
what battery u used
7.4V li- ion battery
Nice work,
How to using pid with 5 IR sensor (not array sensor)?!
I will make a video soon
@@EDISON_SCIENCE_CORNER
Thanks 🙏
🔥
🤩🤩🤩
Can I use a breadboard instead?
Yes
can we have the pcb files
You have to pay
Sir can we use any other motor drive other than that because it's not easily available in my country
We can use. Then we need to redesign the circuit and code. Btw where are you from.
battery???
7.4volt
Where you buying all electronics components.
www.esclabs.in
Link is not working
Check again
Sir how do you know where to put what parts?
please also name all the parts in the vid?
from where can we get these parts?
and please make a vid on how we can load the code...like u did in this vid
Please check discription for parts. Please watch my other videos to know how to upload code to arduino
Can I use L298n motor driver?
Yes but you have to redesign the circuit and code
@@EDISON_SCIENCE_CORNER ok bro, thanks for the reply
can we code in verilog..?
May be i don't know
Hello.. Nice job..
I would like to ask u a question if u don't mind.
If i want the robot moves for only 4 circles and then stops, how can u code this?
We can do that with different methods
Would it be possible to provide the EDA files of the pcb for someone who would like to modify it? Thanks in advance.
Nooo
sir, What is kp ,ki, kd ?
That are pid terms
👌👌
💕💕💕💕
How to test that ir array is working or not
Serial print showing analog values for each sensor output from 1000 to 1020
Also the bot is not calibrating on pushing button (actually I am using wires to touch to 5v and turning high instead of push buttons) and executing forward brake (0,0) function please explain errors .
Are there any error in the code because I checked and not found any.
You can test the sensor by running the qtr example code
where do you get n20 clamp footprint ? did you made it by yourself?
Yes
Also available just search in easyeda
@@EDISON_SCIENCE_CORNER any keyword ? i try to search but i didn't find any
Try N20 motor mount
@@EDISON_SCIENCE_CORNER sorry i still didnt find anything like that in easyeda can u share the link
Wow
Did you use the N20 - 6v - 100rpm motor?
U can use any RPM MOTORS but should use 6v
What is the speed of the robot ?
100rpm
What if we use TB6612fng instead of DRV8835
Will not work
Whare i can buy drv8835 and how much???
Pololu,fabtolab etc....
How about to make the code?
Check the video description
Why do u need PID?
For better seep and consistency
but it's not calibrated right? the robot oscillates a lot which shouldn't if the PID was properly calibrated
Calibration . But not 100 percentage
Yes that's correct
that's cool, sir. Where i can download the design pcb file?
You cant download
www.esclabs.in/
@@EDISON_SCIENCE_CORNER thank a lots. But your robot is very nice, i'm gonna build a robot base on your own
💯
😊
what is RPM of motors
100
Thank You so much sir also good job
And subscribed 😇
I think you have used all colour variations in PCB
Please tell me which is your favourite
Which appears fascinating
No bro not yet.... Purple is pending... And my mattee black is my favourite...❤️
@@EDISON_SCIENCE_CORNER
Second number
After black
Because it is hard to find track and trace them in black
I want to suggest you to search for another caster wheel
I think this is bigger
Gives inclination
Yellow
Yes true that but this is the smallest one i got
Where is the pcb design
www.esclabs.in/?term&s=Line+follower+robot+&post_type=product&taxonomy=product_cat&doing_wp_cron=1691427762.8503189086914062500000
How much did it costs to you in building the robot
4k
@@EDISON_SCIENCE_CORNER
Ok thanks
Can I get it please
Yes
I also want to get a pcb I live in Sri Lanka
Please
My father can buy me one if it is in Sri Lanka but this comes from a bother country
And I am 12
I am also susbscribe
Pcb can I get
Yes message me. Check the description
I need help for component
Can you give me Gerber file?
You have to pay for that
Do u sell this?
Yes but out of stock now
😊😊😊
Thanks
♥️♥️♥️♥️♥️♥️♥️♥️
❤️
bro can u send the pcb design
No
Y?
Sir where is the 2nd part of the video ?
Why.?
what should I make after line follower
Make what you want
@@EDISON_SCIENCE_CORNER can you give some suggestions
I have no idea about what I should do next to it
Did you made line follower
@@EDISON_SCIENCE_CORNER Sorry it is the late response.
I have made obstacle avoidance and line following robot
now I want to do something new.
:*
😊