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

  Рет қаралды 132,700

robojunkies

robojunkies

Күн бұрын

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.robojunkie...
Motor Test Code-
create.arduino...
Sensor Test Code-
create.arduino...
Full Line follower Code-
create.arduino...
Check out the assembly guide for the robot here- • How to make a fast lin...
Sparkfun website link- learn.sparkfun...
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/...

Пікірлер: 136
@robojunkies
@robojunkies Жыл бұрын
Find the latest code here- www.robojunkies.com/pages/resources
@frostking7829
@frostking7829 10 ай бұрын
I notice that there is a Serial.begin(9600); is that for Bluetooth connection?
@moncefamor8613
@moncefamor8613 5 ай бұрын
@@frostking7829 it's for serial monitor display
@pokpikchan
@pokpikchan Жыл бұрын
Your teaching method is very nice.
@robojunkies
@robojunkies Жыл бұрын
Thank you very much!
@AaradhyMine
@AaradhyMine Жыл бұрын
Can you please guide me that how to make it more faster without running out please reply under 2 days
@robojunkies
@robojunkies Жыл бұрын
Please check out our website for the latest code under the resources tab
@shaykherenalsayad2541
@shaykherenalsayad2541 8 ай бұрын
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
@surjitsinghdeo6533
@surjitsinghdeo6533 2 жыл бұрын
Great job Robojunkies team . This video series of LF2 bot is very detailed. Thanks a lot for your hardwork.
@robojunkies
@robojunkies 2 жыл бұрын
Thank you Surjit!
@AIstream171
@AIstream171 3 ай бұрын
Can you deliver to Pakistan??
@Stitchds
@Stitchds 2 ай бұрын
Hi did u find any alternative for tge carrier board?
@sarabasheer-jc7ws
@sarabasheer-jc7ws Жыл бұрын
please stop using music. The voice is not clear enough
@robojunkies
@robojunkies Жыл бұрын
Thanks for your feedback
@nevillecreativitymentor
@nevillecreativitymentor 4 ай бұрын
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.
@111.ashwin
@111.ashwin Ай бұрын
❤ thank you.
@chamudithaedirisingha237
@chamudithaedirisingha237 2 ай бұрын
Brother, please give me the lf-2 carrier board circuit diagram
@krupo900
@krupo900 Ай бұрын
Nice work! Do you have similar code in spike prime programming? Thanks!
@111.ashwin
@111.ashwin Ай бұрын
We haven't worked with spike yet
@amanshah2640
@amanshah2640 Жыл бұрын
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 2 ай бұрын
Did you find any alternative? Pls reply
@craftkids6795
@craftkids6795 Жыл бұрын
bro it is not mworking bro
@anandsk398
@anandsk398 9 ай бұрын
Try another motor driver
@SaveenAnanda
@SaveenAnanda 4 ай бұрын
as usualy my one didnt work . can you send me a link about how to make a real life robot pls
@LawerenceiRidgwayv
@LawerenceiRidgwayv 9 ай бұрын
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 6 ай бұрын
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
@arduinomaquinas
@arduinomaquinas Жыл бұрын
Awesome, nice ❤ 😉👍 👏👏👏 subscribed and like 578 @arduinomaquinas thanks you !
@jumbo999614
@jumbo999614 Ай бұрын
I made my own IR sensor instead of buying the module. Mine has 4 sensor with 3 cm distance between them. Total length of my sensor is ~14cm Does you code with on my sensor?
@111.ashwin
@111.ashwin Ай бұрын
You will have to change the code for a different sensor.
@gojosatoru7836
@gojosatoru7836 3 ай бұрын
What's the Rpm for the dc motor
@_aman_raj_005
@_aman_raj_005 6 ай бұрын
Sir can you please provide code for 8 ir sensor array
@godgajet6763
@godgajet6763 5 ай бұрын
help it doesnt go forward
@elijahresaba7662
@elijahresaba7662 7 ай бұрын
hello robojunkies, do u guys have a code for 8 sensors? im planning to buy the kit and upgrade the sensors, thankyou!
@robojunkies
@robojunkies 6 ай бұрын
Hi, we do have code for 8 sensors, and will soon launch the sensor on our website along with accompanying code.
@Stable_Robotics
@Stable_Robotics 5 ай бұрын
Nice work! Do you have similar code in EV3-g programming? Thanks!
@robojunkies
@robojunkies 4 ай бұрын
Can you please drop a mail on our email id- robojunkiesindia(at)gmail(dot)com
@kundanprasad2221
@kundanprasad2221 8 ай бұрын
Can you provide us the circuit diagram of carrier board please....
@waqasch5955
@waqasch5955 Жыл бұрын
Hi, Can you give the motors specs. ? Thanks.
@robojunkies
@robojunkies Жыл бұрын
Motors are n20- 6V 600 rpm
@nhatpham5797
@nhatpham5797 7 ай бұрын
Hello, can you do this with motor running backward? Thank you, i hope you can explain me how to do
@robojunkies
@robojunkies 6 ай бұрын
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 2 жыл бұрын
Can I use 8 sensor array instead of 5?
@robojunkies
@robojunkies Жыл бұрын
Yes you can use 8 sensor also, however code will change accordingly.
@manishashuklapandey4270
@manishashuklapandey4270 Ай бұрын
Nice
@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 Жыл бұрын
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
@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
@smailmansouri1347
@smailmansouri1347 11 ай бұрын
can you provide the model solidworks file please
@THEbonny95
@THEbonny95 11 ай бұрын
What kind of method is this for finding Kp? Can you explain?
@bookofrichest7817
@bookofrichest7817 Жыл бұрын
Please provide a circuit diagram
@nnnbbb1400
@nnnbbb1400 Жыл бұрын
What the line width ? 2cm?
@curlyhole8861
@curlyhole8861 11 ай бұрын
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
@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
@desispiderman2546
@desispiderman2546 Жыл бұрын
Mera bot 10m/s ki speed se chalta hai
@advitkathuria7006
@advitkathuria7006 Жыл бұрын
Hey can u segggest some line following sensors as on ur site, they are out of stock.
@vikasjha2029
@vikasjha2029 Жыл бұрын
What we have to do if we have to run the robo on white line on black surface?
@Intelli_Sphere
@Intelli_Sphere 8 ай бұрын
how to make it work for 3cm lines?
@robojunkies
@robojunkies 6 ай бұрын
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
@alltop172
@alltop172 8 ай бұрын
Pin 11 and 12, are these push button with 10k resistor connected but 5v and groud along with 11 and 12?
@robojunkies
@robojunkies 6 ай бұрын
We haven't used a pull up/ down resistor since we have configured the buttons as input pullup
@nextsodanextsoda6010
@nextsodanextsoda6010 Ай бұрын
I guess that, if we want to use this on a 3cm line we will need to change the Kp, Ki, and Kd values.
@ItsRomanomar
@ItsRomanomar Ай бұрын
did you find an answer please?
@111.ashwin
@111.ashwin Ай бұрын
Code works with a 3cm line. Check out our latest code on our website under the resources page.
@catalin_2746
@catalin_2746 Жыл бұрын
Do you ship worldwide? In romania
@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
@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.
@ichikaorimuza9240
@ichikaorimuza9240 10 ай бұрын
Do you have a video tutorial about the car on the left at minute 0:25 ? pls
@robojunkies
@robojunkies 6 ай бұрын
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
@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
@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 Жыл бұрын
Can you tell me if it is possible to make the PID control with Digital IR sensors instead of Analog ones???
@user-sk1pn1wk8i
@user-sk1pn1wk8i Жыл бұрын
Is it also available on Raspberry Pi?
@robojunkies
@robojunkies Жыл бұрын
This is only for Arduino nano as of now
@sailesh8950
@sailesh8950 Жыл бұрын
What to change in code for 3cm wide line
@3grhappy
@3grhappy 6 ай бұрын
what board is used sir? the green one
@robojunkies
@robojunkies 6 ай бұрын
It's the lf2 carrier board- www.robojunkies.com/products/dual-motor-control-carrier-board
@dakshwadekar
@dakshwadekar 6 ай бұрын
How fast is it going, mean any stats.
@robojunkies
@robojunkies 6 ай бұрын
Will do a speed test and post soon. Earlier tests showed an avg speed of around 1m/s
@ashwanthshorts322
@ashwanthshorts322 9 ай бұрын
don't do this
@robojunkies
@robojunkies 6 ай бұрын
? Didn't get you
@shettyadithcreations1799
@shettyadithcreations1799 Жыл бұрын
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 9 ай бұрын
circuit diagram you have
@LawerenceiRidgwayv
@LawerenceiRidgwayv 9 ай бұрын
​@@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 9 ай бұрын
@@LawerenceiRidgwayv 1000rpm will be very high bro. sensor and controller should br good enough to handle the response
@vishalp6263
@vishalp6263 2 жыл бұрын
Can you please provide circuit diagram
@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😣
@nextsodanextsoda6010
@nextsodanextsoda6010 Ай бұрын
Will the old code still work
@111.ashwin
@111.ashwin Ай бұрын
Yes old code will also work. Just need the library with the old code.
@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
@godgajet6763
@godgajet6763 5 ай бұрын
how to change code for 8 sensors?
@111.ashwin
@111.ashwin Ай бұрын
Please refer to our website for code with 8 channel sensors
@RAJANYASARKAR-fy2sh
@RAJANYASARKAR-fy2sh Жыл бұрын
Which motor is used?
@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
@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
@Francesco105590
@Francesco105590 Жыл бұрын
hello, where did you get the pcb?
@robojunkies
@robojunkies Жыл бұрын
Its a product we sell on our store- www.robojunkies.com
@azverndias913
@azverndias913 2 жыл бұрын
Keep it up
@robojunkies
@robojunkies 2 жыл бұрын
Thank you!
@muhammadammar387
@muhammadammar387 2 жыл бұрын
yes i want fastest line follower form your side
@robojunkies
@robojunkies 2 жыл бұрын
You can contact us on Instagram for sale inquiries
@punyapinwiset9062
@punyapinwiset9062 2 жыл бұрын
i can not see full code ..help me please
@robojunkies
@robojunkies 2 жыл бұрын
create.arduino.cc/editor/robojunkies/8f43a49f-aab5-494d-8dcf-c9f00e55a3c1/preview
@rock1223
@rock1223 2 жыл бұрын
👏👏👏 good job 👏👏👏
@robojunkies
@robojunkies 2 жыл бұрын
Thanks Avinash!
@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
@_AbhishekGarg
@_AbhishekGarg Жыл бұрын
hey i need ur help
@robojunkies
@robojunkies Жыл бұрын
What help do you need?
@kanishkayadav1561
@kanishkayadav1561 8 ай бұрын
Yes the code isn't working
@robojunkies
@robojunkies 6 ай бұрын
Hi, try out the new code listend on our website
@jithoshbabu3985
@jithoshbabu3985 2 жыл бұрын
It’s very informative ❤️😍
@robojunkies
@robojunkies 2 жыл бұрын
Thanks Jithosh!
@biswajitdhal2469
@biswajitdhal2469 Жыл бұрын
Price
@robojunkies
@robojunkies Жыл бұрын
Please contact our instagram page- @robojunkies to buy the kit
@aqiladhiasyarafans6854
@aqiladhiasyarafans6854 Жыл бұрын
Can you send me schematic or pcb file for sensor sir
@robojunkies
@robojunkies Жыл бұрын
IIT Techfest generally happens in december every year.
@animearistocrat
@animearistocrat Жыл бұрын
the code dose not work
@robojunkies
@robojunkies Жыл бұрын
Latest code available here- www.robojunkies.com/pages/resources
@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
Speed Test- LF2 Line Follower Kit
0:37
robojunkies
Рет қаралды 13 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 2,9 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 262 МЛН
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Shyam Ravi
Рет қаралды 330 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,7 МЛН
Speed Line Follower Robot V4 (Assembly)
7:22
DrakerDG Robotics
Рет қаралды 21 М.
Controlling Self Driving Cars
4:41
AerospaceControlsLab
Рет қаралды 508 М.
Line Follower Robot using Arduino UNO, IR sensor and L298 motor driver
15:00
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1 МЛН
Arduino Line Follower - Code Development #1
48:11
Bot Reboot
Рет қаралды 38 М.
Understanding Porsche's New Six Stroke Engine Patent
21:57
driving 4 answers
Рет қаралды 1,3 МЛН
Arduino PID Controller - From Scratch!
29:51
Ian Carey
Рет қаралды 56 М.
PID Balance+Ball | full explanation & tuning
13:13
Electronoobs
Рет қаралды 746 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН