Тёмный

How to code your Line follower robot with PID control and working code! 

robojunkies
Подписаться 2,6 тыс.
Просмотров 120 тыс.
50% 1

Detailed video showing how you can code the Robojunkies LF-2 Line Follower Kit. This kit is based on the Arduino Nano and is intended to be a modular, easy to assemble line follower kit. The kit comes with sample code for you to easily test the robot yourself.
Buy the LF-2 kit here-
www.robojunkies.com/products/...
Motor Test Code-
create.arduino.cc/editor/robo...
Sensor Test Code-
create.arduino.cc/editor/robo...
Full Line follower Code-
create.arduino.cc/editor/robo...
Check out the assembly guide for the robot here- • How to make a fast lin...
Sparkfun website link- learn.sparkfun.com/tutorials/...
Follow our Instagram page- @robojunkies for more videos, projects and products. DM us on instagram in case youre keen on buying this kit.
Please check out our website- www.robojunkies.com for more products.
Aimoni Robotics is now Robojunkies! Sorry for the long break since the last video. We have come back stronger with more products and videos. Thank you for your support!
Music used- freesound.org/people/Erokia/s...

Наука

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

 

11 авг 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 123   
@robojunkies
@robojunkies 11 месяцев назад
Find the latest code here- www.robojunkies.com/pages/resources
@frostking7829
@frostking7829 7 месяцев назад
I notice that there is a Serial.begin(9600); is that for Bluetooth connection?
@moncefamor8613
@moncefamor8613 3 месяца назад
@@frostking7829 it's for serial monitor display
@surjitsinghdeo6533
@surjitsinghdeo6533 Год назад
Great job Robojunkies team . This video series of LF2 bot is very detailed. Thanks a lot for your hardwork.
@robojunkies
@robojunkies Год назад
Thank you Surjit!
@pokpikchan
@pokpikchan Год назад
Your teaching method is very nice.
@robojunkies
@robojunkies Год назад
Thank you very much!
@curlyhole8861
@curlyhole8861 9 месяцев назад
are there programs like this that i can use if I use digital light sensors? please reply in 2~3 days because this is for a competition thanks
@vikasjha2029
@vikasjha2029 9 месяцев назад
What we have to do if we have to run the robo on white line on black surface?
@advitkathuria7006
@advitkathuria7006 10 месяцев назад
Hey can u segggest some line following sensors as on ur site, they are out of stock.
@THEbonny95
@THEbonny95 8 месяцев назад
What kind of method is this for finding Kp? Can you explain?
@shaykherenalsayad2541
@shaykherenalsayad2541 5 месяцев назад
hey great video i would really appreciate it if you can share with us the specifications of material you used and also the code you used on arduino nano, thank you
@sailesh8950
@sailesh8950 Год назад
What to change in code for 3cm wide line
@RAJANYASARKAR-fy2sh
@RAJANYASARKAR-fy2sh 10 месяцев назад
Which motor is used?
@kundanprasad2221
@kundanprasad2221 5 месяцев назад
Can you provide us the circuit diagram of carrier board please....
@vishalp6263
@vishalp6263 Год назад
Can you please provide circuit diagram
@nnnbbb1400
@nnnbbb1400 Год назад
What the line width ? 2cm?
@rock1223
@rock1223 Год назад
👏👏👏 good job 👏👏👏
@robojunkies
@robojunkies Год назад
Thanks Avinash!
@smailmansouri1347
@smailmansouri1347 9 месяцев назад
can you provide the model solidworks file please
@catalin_2746
@catalin_2746 Год назад
Do you ship worldwide? In romania
@godgajet6763
@godgajet6763 3 месяца назад
how to change code for 8 sensors?
@user-fz5go6be4p
@user-fz5go6be4p Месяц назад
as usualy my one didnt work . can you send me a link about how to make a real life robot pls
@bookofrichest7817
@bookofrichest7817 Год назад
Please provide a circuit diagram
@chamudithaedirisingha237
@chamudithaedirisingha237 7 дней назад
Brother, please give me the lf-2 carrier board circuit diagram
@_aman_raj_005
@_aman_raj_005 3 месяца назад
Sir can you please provide code for 8 ir sensor array
@azverndias913
@azverndias913 Год назад
Keep it up
@robojunkies
@robojunkies Год назад
Thank you!
@godgajet6763
@godgajet6763 3 месяца назад
help it doesnt go forward
@gojosatoru7836
@gojosatoru7836 Месяц назад
What's the Rpm for the dc motor
@jithoshbabu3985
@jithoshbabu3985 Год назад
It’s very informative ❤️😍
@robojunkies
@robojunkies Год назад
Thanks Jithosh!
@alltop172
@alltop172 6 месяцев назад
Pin 11 and 12, are these push button with 10k resistor connected but 5v and groud along with 11 and 12?
@robojunkies
@robojunkies 4 месяца назад
We haven't used a pull up/ down resistor since we have configured the buttons as input pullup
@Francesco105590
@Francesco105590 Год назад
hello, where did you get the pcb?
@robojunkies
@robojunkies Год назад
Its a product we sell on our store- www.robojunkies.com
@chabibanii
@chabibanii Год назад
Does it always need to calibrate first before starting? Can it calibrate the line at first switching on, and use that calibration for the next switch on/off?
@robojunkies
@robojunkies Год назад
In that case you will have to modify code to save the calibration values in eeprom.
@mahmoudsalah7628
@mahmoudsalah7628 10 месяцев назад
yup after the first calibration you can make the arduino print these values record them and just hardcode them into the code but it's better to leave a few seconds for the calibration anyway, if you switch environment lighting conditions etc... could result in these sensors having different calibration values
@LawerenceiRidgwayv
@LawerenceiRidgwayv 6 месяцев назад
hey bro do u happen to know if i can use 1000rpm n20 geared motors for my racing bot using only ir sensors? struggling to pick between 300rpm 6V or 1000rpm 6V to avoid wasting money. not sure if using 1000rpm will put my robot out of track. i ma using l298N motor driver
@robojunkies
@robojunkies 4 месяца назад
1000 rpm is pretty good in terms of speed. For n20 motors beyond this you will find that it's torque is poor. For faster motors, you may have to try out other kind of motors
@amanshah2640
@amanshah2640 10 месяцев назад
Hello i am not able to order your kit from Nepal. So can you send me circuit diagram and components name of carrier board OR else any other alternative with carrier board
@Stitchds
@Stitchds 19 дней назад
Did you find any alternative? Pls reply
@unknownxyz7885
@unknownxyz7885 Год назад
How can the robot use the proportional term in PID controller when it doesn't know how far away from the desired path is the robot? You can't calculate distance just based on two sensor that are detecting Light vs Dark Path
@robojunkies
@robojunkies Год назад
It's actually not calculating distance from the centre of the line. The sensor array has 5 total sensors out of which two sensors are on either side of the line (equidistant), and assumes that the centre of the line is where both sensors see the same value (since they are analog out) Error= left- right sensor value This isn't exactly the centre always but for practical purposes it works very well as you can see int the video.
@nhatpham5797
@nhatpham5797 5 месяцев назад
Hello, can you do this with motor running backward? Thank you, i hope you can explain me how to do
@robojunkies
@robojunkies 4 месяца назад
I've tried this, however the robot quickly loses the line. This is due to the position of the sensor. The sensor needs to be located in the direction of motion. If the sensor is on the opposite side of motion, the robot isn't able to fully follow the line. Because you are trying the predict the line rather than follow the line. Or at least I haven't worked out how to work it well. For small corrections it may work but not reliably
@ReTr0MaKeR
@ReTr0MaKeR Год назад
Can I use 8 sensor array instead of 5?
@robojunkies
@robojunkies Год назад
Yes you can use 8 sensor also, however code will change accordingly.
@elijahresaba7662
@elijahresaba7662 5 месяцев назад
hello robojunkies, do u guys have a code for 8 sensors? im planning to buy the kit and upgrade the sensors, thankyou!
@robojunkies
@robojunkies 4 месяца назад
Hi, we do have code for 8 sensors, and will soon launch the sensor on our website along with accompanying code.
@ichikaorimuza9240
@ichikaorimuza9240 8 месяцев назад
Do you have a video tutorial about the car on the left at minute 0:25 ? pls
@robojunkies
@robojunkies 4 месяца назад
Hi, it was a Lego based line follower, pretty old video so don't have much with me now. Will try to find the code on my computer
@_SirLEGO_
@_SirLEGO_ 2 месяца назад
Nice work! Do you have similar code in EV3-g programming? Thanks!
@robojunkies
@robojunkies 2 месяца назад
Can you please drop a mail on our email id- robojunkiesindia(at)gmail(dot)com
@waqasch5955
@waqasch5955 Год назад
Hi, Can you give the motors specs. ? Thanks.
@robojunkies
@robojunkies Год назад
Motors are n20- 6V 600 rpm
@AaradhyMine
@AaradhyMine 10 месяцев назад
Can you please guide me that how to make it more faster without running out please reply under 2 days
@robojunkies
@robojunkies 10 месяцев назад
Please check out our website for the latest code under the resources tab
@KillChor1.
@KillChor1. Год назад
I am using l298 motor driver so what will be the changes in the code?
@robojunkies
@robojunkies Год назад
You will have to change the motor control functions. In the current program, it uses the tb66 library. Instead you will have to setup the wiring and functions as per the l298 motor driver
@KillChor1.
@KillChor1. Год назад
@@robojunkies ahh that seems like hard work😣
@nagendraprasadg8638
@nagendraprasadg8638 Год назад
My motors are not running, it just making sound, if i change 100 to 180 then it rotates
@robojunkies
@robojunkies Год назад
I'll need more info about what hardware you are using to understand better
@3grhappy
@3grhappy 4 месяца назад
what board is used sir? the green one
@robojunkies
@robojunkies 4 месяца назад
It's the lf2 carrier board- www.robojunkies.com/products/dual-motor-control-carrier-board
@JNECPavanK
@JNECPavanK Год назад
I am wanna to buy these products of pid line follower where I can get product link
@robojunkies
@robojunkies Год назад
Please contact our instagram page- @robojunkies to buy the kit
@honestreiewer2041
@honestreiewer2041 Год назад
Can you provide the code, the previous link isn't working
@robojunkies
@robojunkies Год назад
Can you check again. The link works on my end
@user-sk1pn1wk8i
@user-sk1pn1wk8i Год назад
Is it also available on Raspberry Pi?
@robojunkies
@robojunkies Год назад
This is only for Arduino nano as of now
@Intelli_Sphere
@Intelli_Sphere 6 месяцев назад
how to make it work for 3cm lines?
@robojunkies
@robojunkies 4 месяца назад
Try out the new code listed on our website. Will work with 3cm lines ( white and black) Just specify the relevant line details at the start of the code
@sikandaramir9615
@sikandaramir9615 Год назад
Bro can you make a full video on how to make this robo
@robojunkies
@robojunkies Год назад
Hi, Please check the earlier video about the building guide on our channel
@sikandaramir9615
@sikandaramir9615 Год назад
@@robojunkies bro can you make video about how to set pid value
@antosatle-logger3217
@antosatle-logger3217 Год назад
Is it possible to use l293d instead of this TB motor drive.... Any difference
@robojunkies
@robojunkies Год назад
In terms of the hardware compatibility, you can use an l293d instead, although its max output is slightly lower and is in general lower performance for this application. In terms of code, you will have to modify the code to work for the other motor driver and make associated functions for robot movement. In short, the code won't work directly, but will work with appropriate modifications
@dakshwadekar
@dakshwadekar 4 месяца назад
How fast is it going, mean any stats.
@robojunkies
@robojunkies 4 месяца назад
Will do a speed test and post soon. Earlier tests showed an avg speed of around 1m/s
@punyapinwiset9062
@punyapinwiset9062 Год назад
i can not see full code ..help me please
@robojunkies
@robojunkies Год назад
create.arduino.cc/editor/robojunkies/8f43a49f-aab5-494d-8dcf-c9f00e55a3c1/preview
@shettyadithcreations1799
@shettyadithcreations1799 11 месяцев назад
At kp = 0.020 Ki = 0.001 Kd = 0.010 My robot works well with speed 40.But I am clueless after many tries how to make it tune for speed 140.Please help me sir
@HarshithDevadiga-pr2zc
@HarshithDevadiga-pr2zc 7 месяцев назад
circuit diagram you have
@LawerenceiRidgwayv
@LawerenceiRidgwayv 6 месяцев назад
​@@HarshithDevadiga-pr2zc hey bro do u happen to know if i can use 1000rpm n20 geared motors for my racing bot using only ir sensors? struggling to pick between 300rpm 6V or 1000rpm 6V to avoid wasting money. not sure if using 1000rpm will put my robot out of track
@HarshithDevadiga-pr2zc
@HarshithDevadiga-pr2zc 6 месяцев назад
@@LawerenceiRidgwayv 1000rpm will be very high bro. sensor and controller should br good enough to handle the response
@AnandBhatB
@AnandBhatB Год назад
Y not use 2 li ion cells with 1000rpm motor
@robojunkies
@robojunkies Год назад
18650 Li ion cells tend to get a bit heavy, so robot may tend to become sluggish. 1000 rpm is a great option. Sourcing it becomes challenging at times hence we provide 600 rpm in our kit. You can check out our website for more details www.robojunkies.com
@_AbhishekGarg
@_AbhishekGarg Год назад
hey i need ur help
@robojunkies
@robojunkies Год назад
What help do you need?
@AIstream171
@AIstream171 Месяц назад
Can you deliver to Pakistan??
@Stitchds
@Stitchds 19 дней назад
Hi did u find any alternative for tge carrier board?
@shankargouda2534
@shankargouda2534 Год назад
It is available for purchase
@robojunkies
@robojunkies Год назад
Hi, it's available for purchase on our website- www.robojunkies.com
@shankargouda2534
@shankargouda2534 Год назад
@@robojunkies it is urgent for me
@sikandaramir9615
@sikandaramir9615 Год назад
Bro why did not you use digital array
@robojunkies
@robojunkies Год назад
You can use analog or digital, however the code will change accordingly. I find that students find it easier to use analog sensors especially when using without any libraries.
@JoaoPedro-eo7tx
@JoaoPedro-eo7tx 10 месяцев назад
Can you tell me if it is possible to make the PID control with Digital IR sensors instead of Analog ones???
@sailendraku.biswal3841
@sailendraku.biswal3841 Год назад
What it the cost of this . I want it to buy 🙃
@robojunkies
@robojunkies Год назад
Please contact us on instagram- @robojunkies to buy this kit
@desispiderman2546
@desispiderman2546 9 месяцев назад
Mera bot 10m/s ki speed se chalta hai
@muhammadammar387
@muhammadammar387 Год назад
yes i want fastest line follower form your side
@robojunkies
@robojunkies Год назад
You can contact us on Instagram for sale inquiries
@aqiladhiasyarafans6854
@aqiladhiasyarafans6854 Год назад
Can you send me schematic or pcb file for sensor sir
@robojunkies
@robojunkies Год назад
IIT Techfest generally happens in december every year.
@craftkids6795
@craftkids6795 10 месяцев назад
bro it is not mworking bro
@anandsk398
@anandsk398 7 месяцев назад
Try another motor driver
@biswajitdhal2469
@biswajitdhal2469 Год назад
Price
@robojunkies
@robojunkies Год назад
Please contact our instagram page- @robojunkies to buy the kit
@kanishkayadav1561
@kanishkayadav1561 6 месяцев назад
Yes the code isn't working
@robojunkies
@robojunkies 4 месяца назад
Hi, try out the new code listend on our website
@animearistocrat
@animearistocrat 11 месяцев назад
the code dose not work
@robojunkies
@robojunkies 11 месяцев назад
Latest code available here- www.robojunkies.com/pages/resources
@sarabasheer-jc7ws
@sarabasheer-jc7ws Год назад
please stop using music. The voice is not clear enough
@robojunkies
@robojunkies Год назад
Thanks for your feedback
@nevillecreativitymentor
@nevillecreativitymentor 2 месяца назад
One unfortunate thing I see about our Indian videos is the poor quality of communication. It becomes very uncomfortale saying that since many initiatives shown by these service providers/companies is reasonably commendable.... and comments like mine could sound de-motivating ... but in reality its quite the opposite.
@ashwanthshorts322
@ashwanthshorts322 6 месяцев назад
don't do this
@robojunkies
@robojunkies 4 месяца назад
? Didn't get you
@RanjithKumar-kd9hn
@RanjithKumar-kd9hn Год назад
Carrier board full na enna bro@robojunkies
@robojunkies
@robojunkies Год назад
Hi Ranjith! Carrier Board now available on our store- www.robojunkies.com
@arduinomaquinas
@arduinomaquinas Год назад
Awesome, nice ❤ 😉👍 👏👏👏 subscribed and like 578 @arduinomaquinas thanks you !
Далее
Speed Test- LF2 Line Follower Kit
0:37
Просмотров 12 тыс.
The Fastest Maze-Solving Competition On Earth
25:22
Просмотров 19 млн
Наше обычное утро 💕
00:42
Просмотров 1,5 млн
I made a SUPER FAST Line Follower Robot Using PID!
10:02
HYDRAULIC PRESS VS ARMOR, USA AND RUSSIA
10:16
Просмотров 427 тыс.
Controlling Self Driving Cars
4:41
Просмотров 501 тыс.
Arduino Line Follower - Code Development #1
48:11
Просмотров 35 тыс.
Are PID line followers ACTUALLY faster?
6:07
Просмотров 15 тыс.
Arduino PID Controller - From Scratch!
29:51
Просмотров 50 тыс.