Great video and demonstration of how the values affect the robot's line-following abilities. Would love to have seen how it performs on bends in the line and sharp corners.
Thanks for this vid, but I never could get it to work on our FLL EV3 robot after tinkering for about an hour. I suspect it has to do with where our color sensor is placed: not out in front of the robot like yours, but actually underneath the robot slightly behind the wheels. We had to go this way after a disastrous result a couple years ago where the florescent gym lighting at our competition was much different than the warm lighting in my house where we set the programs, and we failed everything we set out to do since the reflected light values were so much different. The next year we put the light sensor beneath the robot so the outside light didn't pollute, and did much better with those kinds of sensors/programs. Is it possible to use a follower program similar to this even though the light is in a different position on the robot? Thanks for the help.
@@thebruisedreed9766 interesting. Did you try moving the sensor to the front to test and see if you're right about placement? I might do that. So odd that it won't work. Thanks for responding.
Yes, a PID is a feedback loop algorithm, so you can really apply it to any system that required corrections based on error; that means any motor type for line following. The difference between Medium and Large motors is that Medium motors have no Move Steering block, so you have to make your own by adding/subtracting the power values in two independent motor blocks to make turns.
@@Builderdude35Ok but i how will i do that.Lets say i find the error (colour sensor value - target) and i multiply times kp.Then how can i make medium motors move in this steering(correction).Please tell me the exact code cause i have to make a medium motor line follower.Thank you!
@@ggelosstavrou9117 The output of the PID algorithm is a single numerical value. Set both medium motors to a base power level (ex: 50%) and then add the PID output to the power value of one Med motor, subtract it from the other.
@@Builderdude35 oh ok thank you very much i will try this! By the way can you watch a video on youtube called robotex 2018 line following 14 years old and older and watch the 3 best robots in the end.You believe it is just pid or it has something more.Please i need your opinion. Thanks a lot!
Thanks for the info..btw im planning to build a follower guided pantograph for my plasma metal cutter, is it possible to use this design? The follower sensor will be riding on the x y axis table and the x y movements will be controlled by motors, it would need to be reversing..do you have a similar design that would fit my plan build? I wish you could help me..tia! Happy new year!
I went to summer camp and there was a robotics competition. The teacher used your videos to show kids everything they could possibly need to know for the program. The challenge was to make a robot drive in a perfect square and points were awarded for staying parallel and time. I used the same line follower (a month before this video) and it failed horribly. I know the program is perfect but the wood wrecked the color and the robot drive in circles. I ended up having to use a gyro sensor and came in third out of 16 teams. I only lost because I got stuck with tiny wheels and the two teams ahead of me had wheels bigger than Sirius. I’m still kinda mad lol.
Aww man! I'm sorry to hear it didn't work out! But, you can use this as a learning experience; taller wheels allow a robot to drive over bumps with less of an effect. Anyway, good luck next time!
You can certainly use that block to replace the two math blocks with one. I chose to do two separate blocks because I think it's clearer and easier to teach that way. Also, I don't like having those two extra empty terms. It all works the same way when it runs on the robot, so which way you program is purely a matter of opinion.
Thank you for your answer. What do you think to make a video about where to put the sensor ? In front, between the wheels, by a side or in the middle ?
Hi! I've a serious problem. We're using a robot similar to your robot, Sirius. The weight is distributed equally, it moves in a straight line, and the wheels has a firm grip. We've tried out your proportional line following program, but our robot seems to wiggle and lose track of the line.
I have a problem. I have NXT robot and if I use EV3 program its telling me that my color senzor is getting 0 or 1 and not more. If i measure the light reflection "manually" by the brick Im getting between 45-80 (table and black tape)
Make sure that your color sensor is detecting the line. You can verify this using Port View to see the reflected light intensity and comparing it to your threshold value.
As you can see, the robot I show in this demonstration, Sirius, has really tall wheels. 100% power would be too much and the robot would be way too fast to be controllable. If your robot has shorter wheels, then you might be able to try a higher power.
Thanks a lot, Builderdude35. But what I have to do to make your Sirius more fast (and controllable)? Can you continue to explain this theme (Line Follower) in your next video? Thank you!
You can definitely make it faster than the 35% I showed, but you will need to spend more time tuning. To make your robot more stable, you may want to rethink where the color sensors are in relation to the wheels. Check out this video (th-cam.com/video/kNXwkVwnwLI/w-d-xo.html), it explains what I mean. Also consider a two-sensor line follower; they are more stable.
If the robot starts FAR AWAY from the black line, what is the best way for the 'bot to ACQUIRE the line? If the approach is done at a steep angle (and not perfectly parallel with the black line in the first place), how can the robot "lock onto" the line without overshooting it? If the mat contains a lot of light & dark patches (mimicking the Reflected Light Intensity of the black line), how can the 'bot tell what is the desired line and what is just "clutter"?
dluders you can put a loop inside a loop with different end conditions. The inner one can be until it is close to a line and the outer can be the actual color value. That will make it so the robot does not stop until it reaches appropriate distance and on the line (in theory). You could also make the robot drive up to the line and use the line squaring video that builderdude37 already has up. Hope I helped!
Yes, it certainly can be. That's another way of setting up the math to get similar results, but I think that this way is easier to teach. Thanks for sharing!
Can it be programed for curved lines?
very nice video thanks to what i learned from you i always came first in competitions thank you very much
Thanks for this explanation! I'm going to be running a FLL summer camp and this is perfect for explaining how to do proportional follow the line.
You're welcome! Good luck with the summer camp!
Will try this too with our bots!! Cannot wait!
I'm glad to hear that! Keep on experimenting.
Great video and demonstration of how the values affect the robot's line-following abilities. Would love to have seen how it performs on bends in the line and sharp corners.
Thanks for this vid, but I never could get it to work on our FLL EV3 robot after tinkering for about an hour. I suspect it has to do with where our color sensor is placed: not out in front of the robot like yours, but actually underneath the robot slightly behind the wheels.
We had to go this way after a disastrous result a couple years ago where the florescent gym lighting at our competition was much different than the warm lighting in my house where we set the programs, and we failed everything we set out to do since the reflected light values were so much different.
The next year we put the light sensor beneath the robot so the outside light didn't pollute, and did much better with those kinds of sensors/programs.
Is it possible to use a follower program similar to this even though the light is in a different position on the robot? Thanks for the help.
We're having the same issue and also tucked our sensor in the middle under the brick. Were you able to resolve this issue?
Shazia Riaz nope. We just did without line following.
@@thebruisedreed9766 interesting. Did you try moving the sensor to the front to test and see if you're right about placement? I might do that. So odd that it won't work. Thanks for responding.
really helped me in the FLL.
Awesome! I'm glad.
Its not working on a curved line. Can u help me out?
Is it posiible to do pid with medium motors ?? If yes show us please
Yes, a PID is a feedback loop algorithm, so you can really apply it to any system that required corrections based on error; that means any motor type for line following. The difference between Medium and Large motors is that Medium motors have no Move Steering block, so you have to make your own by adding/subtracting the power values in two independent motor blocks to make turns.
@@Builderdude35Ok but i how will i do that.Lets say i find the error (colour sensor value - target) and i multiply times kp.Then how can i make medium motors move in this steering(correction).Please tell me the exact code cause i have to make a medium motor line follower.Thank you!
@@ggelosstavrou9117 The output of the PID algorithm is a single numerical value. Set both medium motors to a base power level (ex: 50%) and then add the PID output to the power value of one Med motor, subtract it from the other.
@@Builderdude35 oh ok thank you very much i will try this! By the way can you watch a video on youtube called robotex 2018 line following 14 years old and older and watch the 3 best robots in the end.You believe it is just pid or it has something more.Please i need your opinion. Thanks a lot!
Thanks! I needed this wro2019 elementary! Thx!
+1
Does it matter if you use the school edition rather than the home edition?
What is the program he is using ?
Your Sirius Robot is awsome:)
Thank you!
Can you make this code in Lego Mindstorms classroom software
That’s really cool 😎.
Thank you a lot. You truly helped me. :)
Good channel budy, your the besttttttttt!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thx I needed this for my competition!
Same
awesome vid
Good channel, but I need u to make a line follower program with 2 color sensors
very helpful! thank you!!
Thanks for the info..btw im planning to build a follower guided pantograph for my plasma metal cutter, is it possible to use this design? The follower sensor will be riding on the x y axis table and the x y movements will be controlled by motors, it would need to be reversing..do you have a similar design that would fit my plan build? I wish you could help me..tia! Happy new year!
I went to summer camp and there was a robotics competition. The teacher used your videos to show kids everything they could possibly need to know for the program. The challenge was to make a robot drive in a perfect square and points were awarded for staying parallel and time. I used the same line follower (a month before this video) and it failed horribly. I know the program is perfect but the wood wrecked the color and the robot drive in circles. I ended up having to use a gyro sensor and came in third out of 16 teams. I only lost because I got stuck with tiny wheels and the two teams ahead of me had wheels bigger than Sirius. I’m still kinda mad lol.
Aww man! I'm sorry to hear it didn't work out! But, you can use this as a learning experience; taller wheels allow a robot to drive over bumps with less of an effect. Anyway, good luck next time!
Thanks
Hi. Why did you not use the maths bloc with ADV mode and (a-b)*c instead of the 2 maths blocs ?
Thank for your videos.
You can certainly use that block to replace the two math blocks with one. I chose to do two separate blocks because I think it's clearer and easier to teach that way. Also, I don't like having those two extra empty terms. It all works the same way when it runs on the robot, so which way you program is purely a matter of opinion.
Thank you for your answer.
What do you think to make a video about where to put the sensor ? In front, between the wheels, by a side or in the middle ?
Definitely in front. I have a video that goes into a little more detail about sensor placement here: th-cam.com/video/kNXwkVwnwLI/w-d-xo.html
Thank you to your parents for having designed you.
That's line follower it is nice ¡
Hi! I've a serious problem. We're using a robot similar to your robot, Sirius. The weight is distributed equally, it moves in a straight line, and the wheels has a firm grip. We've tried out your proportional line following program, but our robot seems to wiggle and lose track of the line.
Your Kp is improperly adjusted. From your description, it seems most likely that it is too large, so try experimenting with a smaller constant.
Thanks Builderdude35 for making this video! It was great and i rely liked it!
Thank you! I'm thrilled that you enjoyed it!
I have a problem. I have NXT robot and if I use EV3 program its telling me that my color senzor is getting 0 or 1 and not more. If i measure the light reflection "manually" by the brick Im getting between 45-80 (table and black tape)
wowow ur voice has changed so much
How do u set a distance for the program
See my tutorial on Loop exits.
What type of tires/wheels are you using? Is it possible to send me the code of that wheel/tire?
Can you make more 2 sensor line followers?
I think I've made all that I want to as of now.
I tried the line follower with my robot, but it kept spinning in circles. How do I fix this? Thanks
Make sure that your color sensor is detecting the line. You can verify this using Port View to see the reflected light intensity and comparing it to your threshold value.
make sure your math block is a - and x
Make sure you're using the correct port for your sensor
thank you
Programm name?¿
Cool Dude !
I also made a vid on my own program for a line follower
Awesome!
Good video! But why don't you set the power 100 (-100)? Thank you!
As you can see, the robot I show in this demonstration, Sirius, has really tall wheels. 100% power would be too much and the robot would be way too fast to be controllable. If your robot has shorter wheels, then you might be able to try a higher power.
Thanks a lot, Builderdude35. But what I have to do to make your Sirius more fast (and controllable)? Can you continue to explain this theme (Line Follower) in your next video? Thank you!
You can definitely make it faster than the 35% I showed, but you will need to spend more time tuning. To make your robot more stable, you may want to rethink where the color sensors are in relation to the wheels. Check out this video (th-cam.com/video/kNXwkVwnwLI/w-d-xo.html), it explains what I mean. Also consider a two-sensor line follower; they are more stable.
what is -0,6? help thanks. Carlos from Chile.
That is the proportional constant, which you can adjust to make the robot more or less sensitive when line following.
it's -0.6
thanks
You're welcome.
amazing
How do I make the robot stop at a certain place?
Check out my tutorial on loop exits; it's exactly what you need: th-cam.com/video/_YRwKHP4v8A/w-d-xo.html
ok thnks a lot BuilderDude!
how i can use in curved line?
you can make it SUPER sharp turns
Good video !!!
Thank you!
do you have robocup tutorials?
yes
your are awesome
The robot starts on track but goes too much towards one side after that. Thanks for the video though
If the robot starts FAR AWAY from the black line, what is the best way for the 'bot to ACQUIRE the line? If the approach is done at a steep angle (and not perfectly parallel with the black line in the first place), how can the robot "lock onto" the line without overshooting it? If the mat contains a lot of light & dark patches (mimicking the Reflected Light Intensity of the black line), how can the 'bot tell what is the desired line and what is just "clutter"?
Thank you for the suggestion! I'll be certain to make a tutorial on this topic in the coming weeks!
dluders you can put a loop inside a loop with different end conditions. The inner one can be until it is close to a line and the outer can be the actual color value. That will make it so the robot does not stop until it reaches appropriate distance and on the line (in theory). You could also make the robot drive up to the line and use the line squaring video that builderdude37 already has up. Hope I helped!
Thank you for sharing! That's pretty much what I was planning to say in the tutorial.
I help me a lot,thank
10/10 Butiful
Thanks!
speech 100
good but bad boi how you turn help im in engkish class in india in colombia help my guy
eh, so I could also make a math block with c(a-b)?
yes that would be correct
damn you've
grown
You are osom
I don't like one sensor line following generally.
{>>" Good work/ nice ideas";}
Can't the arbitrary value be 50/(Target-Black intensity) Which means the maximum steering is 50 ? Try it out yourself.
Yes, it certainly can be. That's another way of setting up the math to get similar results, but I think that this way is easier to teach. Thanks for sharing!
It doesn't turn why
This didn't work for me
2:20
2:55
he stole my line follower that i used to come first in ontario!!!
Michael Wang congrats
Now explain it in Scratch. Thanks
good
Thanks.
This doesn’t work it won’t go round a left turn or a right turn at all
You will need to adjust the k value to handle sharper turns. Or, use a PPID algorithm.
Merci je vais pas échouer à mon test
Thank i going to WRO and iam open ,iam not regular
Ńïćê
It is the worst program ever!!!!!