PID Line Follower for EV3 - The Ultimate Line Follower!

  Рет қаралды 251,911

Builderdude35

Builderdude35

7 жыл бұрын

This video will teach you everything you need to know in order to program a PID line follower for your EV3 robot. In the video, I explain how to measure your target Color Sensor light value; I explain the three aspects of PID line following (Proportional, Integral, Derivative) and the math behind them; I teach you how to apply these mathematical concepts into your own EV3 program; and finally, I teach you how to fine tune your K values so that your EV3 robot is tuned for optimal line following.
My Patreon supporter(s) for more than $5 for the month of _ were: Venkateshalu, Albert Bricker, Stephen Rozmiarek and Turnabout Akamia. Thank you so much!
My supporters on Patreon contribute additional funding that allow me to build up and improve this channel and to make more videos. If you would like to help, you can support me here: / builderdude35
My Website: builderdude35.com/
Builderdude35 KZbin: / @builderdude35
EV3 PID Line Follower: • PID Line Follower for ...

Пікірлер: 219
@williambruneau8667
@williambruneau8667 4 жыл бұрын
Thanks a lot, I am programming in C++, but only clearly understood the programming when searching for your video. Great job
@jacobmejia7564
@jacobmejia7564 Жыл бұрын
Thank you for the help! I have used this as a baseline to understand conceptually how to code a PID control using C++! Before, I didn’t understand how this worked, but now I know how the math works out. You have been a great help and allowed our VEX robotics team to go to State Championships due to us heavily using PID control for our autonomous😅
@TheToadcode
@TheToadcode 6 жыл бұрын
Thank you for all your hard work. I teach the concepts to my FLL team then I send them, to your site as follow-on. You are indeed passing on the knowledge to a younger generation!!! KUDOS
@Builderdude35
@Builderdude35 5 жыл бұрын
Thank you! I am honored to have had such an impact!
@omsrijan
@omsrijan 3 жыл бұрын
thank you, this line following video was really helpfull for my FLL team
@ScottMorgan88
@ScottMorgan88 5 жыл бұрын
Awesome job. Well done!
@technicalwaffle9859
@technicalwaffle9859 7 жыл бұрын
Really nice video! Helped me a lot on FLL! I also used this PID feature for our/your Gyro following program that we are also using in FLL. The Gyro follower was only proportional, but now it can also use PID. You can probably make a tutorial out of this too. You really don't know how much you've helped me and my team in programming.
@Builderdude35
@Builderdude35 7 жыл бұрын
I'm glad to hear that I've helped! And thanks for the suggestion!
@jennipickett
@jennipickett 6 жыл бұрын
Thanks! You are a great teacher!
@CH-fh2lh
@CH-fh2lh 2 жыл бұрын
Great video. I am a robotics teacher and am rolling out an EV3 based robotics class. I could not find good documentation on the EV3 block language. This video answered a lot of my questions and saved me a ton of time! I am going to try applying the PID to a standing robot. Rather than the gyro sensor I am using an ultrasonic to measure the amount of tip. A proportional loop is insufficient. Hoping the I and D will do the trick. I am worried that the problem is more the rate at which the program runs. If so, I guess I will have to learn Python
@ryanberardelli2363
@ryanberardelli2363 7 жыл бұрын
Great video and very helpful, haven't tested it out yet, but this was a big help on my college project. Thanks!
@Craftymango5
@Craftymango5 3 жыл бұрын
Hey
@Craftymango5
@Craftymango5 3 жыл бұрын
Can you help me I can’t do it.it is to hard
@pdmarsh5466
@pdmarsh5466 3 жыл бұрын
Excellent tutorial. Thank you very much. I'm not sure that I have PID tuning down, though. It seems that proportional control is pretty much all you need when going in a straight line. I found that Ki and Kd can remain at 0 while still getting smooth and straight travel. However, you do start to get waggle in a curve. I decided to tune while the robot is on a curve. Even so, I don't think I really understand how to tune a PID loop.
@jessnam
@jessnam 3 жыл бұрын
holy shit its 2 am and u just blew my mind thank you!
@apriljoyalbior5809
@apriljoyalbior5809 3 жыл бұрын
Great help!
@timshort2601
@timshort2601 7 жыл бұрын
t job explaining keep up the good work
@harygren4033
@harygren4033 5 жыл бұрын
you are very clever and can explain very clearly. Thanks ! I wish my teacher at the uni explained it so well 20 years ago:)
@Builderdude35
@Builderdude35 5 жыл бұрын
Thank you! I am honored!
@joseclaudio568
@joseclaudio568 6 жыл бұрын
Excellent! Very good indeed! Thanks for everything you taught me, I can not wait to test and calculate my variables!
@Builderdude35
@Builderdude35 6 жыл бұрын
Fantastic!
@cksmaya
@cksmaya 7 жыл бұрын
Think you very mach.
@gismosgadgets8343
@gismosgadgets8343 7 жыл бұрын
well done
@acutosan7335
@acutosan7335 4 жыл бұрын
Find the Kp value first. If u want the robot to correct the error fast then a higher Kp is needed at the cost of some jittery during the line follow. If u want a smooth line follow then a lower Kp shall be applied at the cost that the robot cant follow the line when coming from a steeper angle ( doesnt correct error fast enough). Ki should always be 0 unless youre using a gyro sensor and wants to go for a curve. Kd kinda supports Kp so trial and error is the way for me. the first value i go for Kd is according to my Kp. So the lower the Kp the lower my first guessed value for Kd. its the most effective for me
@pavelyarovoy
@pavelyarovoy 6 жыл бұрын
Your set of videos on PID is fantastic, thanks!is it possible to apply PID to two sensors to achieve the best result in a competition? If not, then what is better: 1-sensor PID vs 2-sensor proportional?
@Builderdude35
@Builderdude35 6 жыл бұрын
Thank you! It is possible to apply PID to two sensors, but there's no need for it, because it's excessive. 1-sensor PID is very difficult to refine, but if you have the time and patience, very little can match its performance.
@-A-TranHuynhang
@-A-TranHuynhang 4 жыл бұрын
Thanks
@attupsgeorge224
@attupsgeorge224 4 жыл бұрын
Thanks for sharing your videos. They are very useful. How do we change the target value of the program at FLL tournament since we cannot edit the program with a laptop. Appreciate your suggestion
@timo5727
@timo5727 3 жыл бұрын
You can edit during practice runs on practice tables.
@meltemerzurum742
@meltemerzurum742 4 жыл бұрын
hi! i do the same things but my robot doing like zig zag or doing nothing except go straight what can i do
@rhianngacusan1227
@rhianngacusan1227 4 жыл бұрын
nice!
@jeftemelo4452
@jeftemelo4452 3 жыл бұрын
Tenho um pouco de noção sobre o EV3 qual vídeo , seu você me recomenda assitir ?
@404nohandlefound
@404nohandlefound 6 жыл бұрын
You can also make the threshold percentage to be adaptive as well, making this code impossible to go haywire, this allows it to work in dynamic lighting conditions.
@Builderdude35
@Builderdude35 6 жыл бұрын
Great suggestion! Thanks for sharing!
@andychu2532
@andychu2532 6 жыл бұрын
how do you do that?
@neilorion9953
@neilorion9953 2 жыл бұрын
Shouldn't the K values vary with the speed that you are going higher K as faster you go, or are the K values independent from your speed?
@GuyEvron
@GuyEvron 6 жыл бұрын
Great video. very helpful !
@Builderdude35
@Builderdude35 6 жыл бұрын
Thank you!
@yanganzhi
@yanganzhi 3 жыл бұрын
Loved your video... Could you provide code for download though? Thanks!
@lukeqiao5477
@lukeqiao5477 7 жыл бұрын
nice video! it helped me a lot!
@KIXEMITNOG
@KIXEMITNOG 5 жыл бұрын
Please make Arduino robotics videos as it would be great and very helpful. I suggest this because you are the most helpful youtuber.
@Builderdude35
@Builderdude35 5 жыл бұрын
That's an awesome idea, I will consider it.
@KIXEMITNOG
@KIXEMITNOG 5 жыл бұрын
@@Builderdude35 thx
@Cloonsey_
@Cloonsey_ 3 жыл бұрын
Epicly
@yanganzhi
@yanganzhi 3 жыл бұрын
can provide 3 sample kp, ki and kd values for us to start testing from?
@benciruiz6493
@benciruiz6493 6 жыл бұрын
Hello, can somebody explain to me how the robot go on the right side? I didn´t quite understand how to do so in the video.
@laurenreynolds4132
@laurenreynolds4132 4 жыл бұрын
can you make a video of this code commented?
@arhamjain7306
@arhamjain7306 5 жыл бұрын
It totally confused me but I will make the program and I think I will understand soon.😅😅😅😅
@wackings7776
@wackings7776 4 жыл бұрын
Can you give me the link to this program?
@LucEv3
@LucEv3 7 жыл бұрын
Awesome!!!
@imarrb809
@imarrb809 4 жыл бұрын
kyle, you missed the part where you put to go until color sensor senses 35
@honeybanga2865
@honeybanga2865 7 жыл бұрын
the same issues mentioned before. Tried different values for Kp, Ki and Kd. The robot follows a straight line perfectly when Kp is set to 1 and Ki and Kd are set to 0. Then, when I try to play around and fine-tune the program, the robot goes off. It follows a straight portion of the line well, but when there is a turn, whether sharp or round, it just goes off. as I am in the wro team I need to use 1 sensor for line following
@Builderdude35
@Builderdude35 7 жыл бұрын
If you are having too much trouble adjusting the PID line follower, I recommend changing it to a proportional line follower for now to make it a little easier to work with (set Ki and Kd to zero).
@jeftemelo4452
@jeftemelo4452 3 жыл бұрын
Boa noite Sou do Brasil e começei a estudar programação vc poderia me dá alguma dica ou disponibilizar essa programação para eu aprender mas sobre PID
@austinharris5700
@austinharris5700 5 жыл бұрын
For the people who have their robot spinning in circles when any Ki value is used the fix is to put another write integral variable set to 0 in the loop, It only works if the variable is at the start of the loop or the end. The reason that this fixes it is the integral is getting higher and higher as the program runs and makes the robot go in circles I hope this allows the program to use Ki. :)
@morgangadd4988
@morgangadd4988 5 жыл бұрын
This does fix the problem Thanks
@Builderdude35
@Builderdude35 5 жыл бұрын
The problem is, this effectively removes the integral term; it's just the same as if you had just set the Ki to zero. Then, what you really have is just a PD line follower.
@cronicas_imemoriais
@cronicas_imemoriais 4 жыл бұрын
And It doesnt Go higher and higher, It gets higher when the error is positive, but the correction and the negative setor Will balance It almost at 0, you are probably using a Very high ki value.
@hutai66
@hutai66 4 жыл бұрын
This mans is the biggest brain alive!!!
@moon2schyzo
@moon2schyzo 4 жыл бұрын
Builderdude? More like Buildergod
@leyawonder2306
@leyawonder2306 7 жыл бұрын
your channel is the best
@advaitpatel9940
@advaitpatel9940 7 жыл бұрын
Need help! I've tried to program this line follower, but it doesn't work. Instead of following the black line, it just turns. I took out the Ki and Kd values but still it didn't work.
@ob4394
@ob4394 Жыл бұрын
Hello do you know how to calculate the conversion factor for ev3 robot to spin in place ??and how would I turn that into robot degrees?? I’m struggling in robots and teacher not helpful.
@percyho7013
@percyho7013 5 жыл бұрын
what is the use of the last error?
@rochesterrobotics5259
@rochesterrobotics5259 5 жыл бұрын
Why do you use a target value of 35 instead of 50 (half dark and half light)? Would the target value need to change with each re-calibration at an FLL tournament?
@Builderdude35
@Builderdude35 5 жыл бұрын
Ideally, the black line returns a reflected light intensity of 0%, and the white line returns 100%. However, reality almost never fits this description, because the light intensity measured by the sensor varies based on 1) the ambient light conditions, and 2) the surface the sensor is observing. In my case, the black line returned 5%, and the white line returned 75%, so I use 35%, which is about halfway in between (and directly measured from my target).
@jerrymk6846
@jerrymk6846 4 жыл бұрын
I have a problem, I think the sensor value is not linear to the offset from the target. What I mean is in the proportional part, you do value - target as the error, but let's say your robot is exactly on the edge of the line. If the robot shift for example 1 mm to the white side of the line, the error will not be same as shifting towards the black part 1 mm. Will PID fix it? I don't think so, so should I calibrate both side and try to calculate the none linear formula to convert error to robot's offset or it is too minor and is not an issue?
@Builderdude35
@Builderdude35 4 жыл бұрын
A PID will not help with this, because PID also assumes that your system's error is linear. Calibrating both sides (by measuring values on both sides at various points and creating a regression) is a good way to go.
@ncf3535
@ncf3535 7 жыл бұрын
How do you go along tuning PID? tune KP Then Ki?
@Builderdude35
@Builderdude35 7 жыл бұрын
Yes, Ki should be the last to be adjusted.
@mariosnacouzi8180
@mariosnacouzi8180 6 жыл бұрын
Does a pid line follower get you much better results than a proportional one. And would it make a difference in a wro competition?
@Builderdude35
@Builderdude35 6 жыл бұрын
A PID line follower will get you better results only if adjusted correctly. It takes a while to get a PID adjusted correctly, while you can get a proportional line follower up and running in a minute. You'll have to weigh performance with time requirement. In most cases, a proportional line follower serves your needs just fine.
@404nohandlefound
@404nohandlefound 6 жыл бұрын
This video is awesome, I have one question, you keep adding error to integral, wouldn't that increase the integral value to a lot eventually ?
@Builderdude35
@Builderdude35 6 жыл бұрын
Yes... This is something I will discuss in a video that I have coming soon.
@izakkanter452
@izakkanter452 6 жыл бұрын
Yes, and if the line has a very sharp curve, your robot will make a very wide turn. This turn becomes less wide thanks to the integral. However, when the robot finally reaches the line, the integral value is so big that the robot overshoots the line. When the robot crosses the line though, the error value becomes negative, and you thus begin to subtract from the integral. The robot oscillates around the line until the integral becomes zero. Questions?
@elipregerson9065
@elipregerson9065 4 жыл бұрын
Error can be both positive or negative, depending on which direction your robot is off of the line. These two possibilities work to neutralize each other over time so that the integral does not get too big.
@lukeqiao5477
@lukeqiao5477 7 жыл бұрын
can you demonstrate the PID line follower please?
@namay7449
@namay7449 6 жыл бұрын
You have an extra block on the green tab(Action tab), can you tell me what it is??
@Builderdude35
@Builderdude35 6 жыл бұрын
Thant is for the Mindsensors GlideWheel, which I used for my Thundersmart IV project. They are third party hardware that essentially turns a Power Functions motor into an EV3 motor. You can find it on the Mindsensors website: mindsensors.com
@NikolasSamaras
@NikolasSamaras 7 жыл бұрын
I would like to ask what is the range of values of Ki and Kd. Especially Kd can be over 1 or always between 0 to 1?
@Builderdude35
@Builderdude35 7 жыл бұрын
The values will be specific to your robot, so I can't necessarily tell you exactly what they will be. I will sat that either Ki or Kd -- I forget which one -- will need to be VERY small.
@countdownquest
@countdownquest 7 жыл бұрын
In my tests usually the Ki value is VERY small in my gyro following program.
@GiorgosPamboris
@GiorgosPamboris 7 жыл бұрын
Start by Kp=1 and experiment until your robot follows the line. Have Ki=0 and Kd=. Then slightly increase Ki=0.0001 and see if it gets better. Then Do the same with kd
@pieterpretorius1014
@pieterpretorius1014 7 жыл бұрын
how can this be adapted to control the motor like a hobby servo motor that only move within a certain range? i need that kind of behavior for the motors because of an idea i have so i can build a helicopter swashplate demonstrator
@Builderdude35
@Builderdude35 7 жыл бұрын
You can program the EV3 motors to rotate a specific number of degrees (or rotations). That will enable to control the rotation to do whatever you want.
@joseespejoaliaga4053
@joseespejoaliaga4053 6 жыл бұрын
you can give a demonstration of the program on the robot?
@Builderdude35
@Builderdude35 6 жыл бұрын
Coming soon... Watch out for next week's video!
@danielcavalcante5263
@danielcavalcante5263 7 жыл бұрын
thanks
@chandrimatitk6250
@chandrimatitk6250 3 жыл бұрын
I love robotics and how are you
@jasonfath6948
@jasonfath6948 4 жыл бұрын
Could you use 2 sensors to make it follow straighter?
@Builderdude35
@Builderdude35 4 жыл бұрын
Indeed. I have a tutorial on this.
@spazywazi8673
@spazywazi8673 7 жыл бұрын
I have tryed most of your coded and they all helped me a lot during our FLL season... I am now working on the PID program but not using light sensor using Gyro Sensor to help keep robot move in straight lines. Do you have an idea how to do this PID ?
@Builderdude35
@Builderdude35 7 жыл бұрын
You are more or less going to use the same program, just replacing the color sensor with a gyro. The rest of it stays the same.
@spazywazi8673
@spazywazi8673 7 жыл бұрын
I have tried to do so ... but i got confused with callulating the error of the gyro reading where the goal i want the robot to move on is 0
@yichern4351
@yichern4351 6 жыл бұрын
Is this overkill? Or would proportional line following work fine for WRO line following purposes?
@Builderdude35
@Builderdude35 6 жыл бұрын
Yes, this is overkill. A proportional line follower will adequately serve your needs and allow you to bypass a lot of the time associated with adjusting the PID line follower's K values.
@Brian-jn2pi
@Brian-jn2pi 6 жыл бұрын
Peter Bergmann My team in FLL used a PID controller because we could go so much faster than just a P controller
@user-jk2qf7yf9n
@user-jk2qf7yf9n 10 ай бұрын
HOW can I GET TO THE INTEGRAL?
@Aeroheath
@Aeroheath 5 жыл бұрын
Is there a line follower that stays on the line that the color sensor doesn't go on the line half, but actually stays on the line?
@Builderdude35
@Builderdude35 5 жыл бұрын
You will need to use two sensors for that. See my tutorials on how to program those.
@laksshaysehrawat5559
@laksshaysehrawat5559 7 жыл бұрын
can we make a line follower which does not need any calibration. calibrate once and it will calibrate the values further by itself. Please tell and if possible make a tutorial.
@Builderdude35
@Builderdude35 7 жыл бұрын
It's absolutely possible. In fact, none of the line followers I have made tutorials on require calibration, nor have I ever had the need to run a calibration.
@geneworxoughtamation372
@geneworxoughtamation372 6 жыл бұрын
Coach here. BuilderDude -- You may not recall, but a couple of years ago but we suggested that you do this tutorial after a team member struggled to implement PID on our robot. You've done a great job on this. While the team implemented this a couple of times over the last few years, your explanation is through and clear. I used this in an advanced FLL/Robotics class this summer and the kids (12-14) were able to successfully implement it. I also then had them convert the program to work with the gyro instead of the light sensor. That worked well as well. I now have a couple of suggestions for followups to the PID video/suggestions for more advanced videos: - Look at this video (goo.gl/5hoZFq ) which explains the PID in terms of how it adapts to past and expected performance. - You might make a follow-on video showing how to implement the gyro PID (very useful) using the explanation of past/present/future to inform your discussion. - I see you just posted a replacement line follower tutorial. You might do the PID update along the same lines, incorporating the Gyro into the video as well/instead. You might show how you can integrate "warp speed" with the PID controller to have the robot accelerate and decelerate to the destination as an add-on to the PID by making speed a variable that's controlled by a My-Block. - You might show how to use both the light sensor and the gyro sensor at the same time to follow the straight line more accurately by using both the angle and light intensity. (Hint: use a Kalman filter for this. Unfortunately, Kalman Filters are best done with matrices, and LabView doesn't handle Matrices well). I mention this one in part because I expect you are getting more advanced in math, and might enjoy learning about Kalman Filters if you liked the PID. - You might do a survey of characteristics of the best-scoring robots in at world championships (sensors, motors, size, attachment mechanisms, attachment types, etc). However, I understand you might just be ready to move on to other challenges. Either way, you've been a great asset to the FLL community over the last couple of years, and you've been an inspiration and positive impact of at least tens of thousands of youth around the world. Keep up the outstanding work. If there's anything GO can do for you, please let us know.
@Builderdude35
@Builderdude35 6 жыл бұрын
Thanks for taking the time to share this! It's almost as if you've read my mind! I already have a PID follow-up video in the works, which goes into more depth about what each term means, just like in the video you included. It will be out in September. I will also look into getting a PID gyro video out for October. As for the Kalman Filter, I love the idea, but I think it's a bit overkill for something like this... especially considering the EV3-G programming environment does not do matrix operations (at least not to my knowledge). I am currently using a Kalman Filter in a personal project of mine, which involve GPS and is programmed in C. Anyway, thanks for sharing your thoughts!
@Rxnkshitij
@Rxnkshitij 7 жыл бұрын
are you sure this will work ? Cause i have WRO in one month? How to measure ki,kd,kp values??? on what factors?
@Builderdude35
@Builderdude35 7 жыл бұрын
The PID line follower takes a lot of time to properly calibrate. If this is too much time for you, don't use a PID and use a proportional line follower instead.
@Rxnkshitij
@Rxnkshitij 6 жыл бұрын
on what factors and i ahve got a lot of time
@Rxnkshitij
@Rxnkshitij 6 жыл бұрын
I have made the program but is there any way to make just PD llne follower
@Builderdude35
@Builderdude35 6 жыл бұрын
That video is coming very soon!
@mihirbaviskar2035
@mihirbaviskar2035 5 жыл бұрын
For derivative isn’t your last_error always going to be greater than your current error so derivative is always negative. That doesn’t seem right. Am I missing something. Can someone please explain? Thank you
@Builderdude35
@Builderdude35 5 жыл бұрын
There isn't anything that says the last_derivative is always larger than the current error. Ideally, we would want error - last error to be less than zero because that means the robot is trending towards the correct path and will eventually reach zero when both error and last_error = 0. However, the robot is in a feedback loop and will stray off the line as the line curves or because of other forces that cause the robot to deviate (ex: imbalance of friction), in which case, last_error > error and derivative > 0.
@mihirbaviskar2035
@mihirbaviskar2035 5 жыл бұрын
Thank you it makes sense now. Great video btw
@ncf3535
@ncf3535 7 жыл бұрын
Is it possible to have just PD instead of PID?
@Builderdude35
@Builderdude35 7 жыл бұрын
Yes, I recently found that PD is better than PID... I'll have a video up soon that explains why.
@gevink6174
@gevink6174 7 жыл бұрын
Great video, but since I am in the Robocup team representing Melbourne,Victoria, on one of my practice runs, instead of following the line the robot just went crazy bashing all the other robots making me one of the worst!
@Builderdude35
@Builderdude35 7 жыл бұрын
Oops! I'm sorry to hear that. I guess my best advice would be to always make sure your program and sensors are optimized (calibrated) for your environment.
@vivangupta4928
@vivangupta4928 5 жыл бұрын
PLEASE DEMONSTRATE!
@Crunch_Games
@Crunch_Games 7 жыл бұрын
I tried to add a Ki and it did not work at all but when I took it out it worked. What is the problem and what should I do?
@Builderdude35
@Builderdude35 7 жыл бұрын
The Ki value should be very (read: VERY) small. Experiment with it for a little while. If you still don't like it, set your Ki to zero, which will effectively remove it from the program.
@olfmombach260
@olfmombach260 7 жыл бұрын
Keep in mind that with this edit you delete the whole Integral thing out of the program, since you multiply the Integral value with zero, so it is not just the K(i)-value that is being crossed out.
@danielkatanski6503
@danielkatanski6503 2 жыл бұрын
Good programming example. You are influencing programmers young and old. Will you please improve your program examples by adding comments! In my FLL team students put in comments before the code blocks; if you cannot briefly write the intent in words, then the odds of getting the code correct is greatly reduced. Lead by example by documenting the what and why of what your code is doing.
@Mark-jj1fc
@Mark-jj1fc 7 жыл бұрын
Hi! We tried to use the PID line follower... We calibrated our sensor 1(minimum, black line colour intensity) to 100 (maximum, white line colour intensity). We looked at our Black-White midpoint and it showed us an ,,n,, value. We put the value into the Midpoint value and started the program. This did not work.. the robot started to go circle around ... We tought that the Kp value is too big, but after we modified the value the robot did the same thing. What is the problem.. Please answer earlier as you can.
@Mark-jj1fc
@Mark-jj1fc 7 жыл бұрын
FIrstly, I am using the normal PID line follower with just a Kp valu.. Secondly I did not try to set my Kp value to 0. I think taht this program is not working because I can not set the middle value (50% white 50% black).. I calibrated but this is not working.. How can i set a constant value for the middlepoint?
@Mark-jj1fc
@Mark-jj1fc 7 жыл бұрын
I put at the middle ot the white and the black and i saw a number ... After this i wrote that number into the program and it did not even work.
@jaderyandelrosario4846
@jaderyandelrosario4846 7 жыл бұрын
I got the same problem
@omeghana
@omeghana 4 жыл бұрын
I tries it but mine was in spin loop.Can u help me.Thx.
@fabiolally
@fabiolally 4 жыл бұрын
Mine too, it just spins nonstop
@reid-dye
@reid-dye 4 жыл бұрын
Mine did too. Just turn your Ki way down
@aznbreaker37
@aznbreaker37 7 жыл бұрын
demonstration of the line follower in action?
@Builderdude35
@Builderdude35 7 жыл бұрын
I'm going to have a line follower comparison video for next week, which will show all of them working back-to-back.
@ranveerj5021
@ranveerj5021 2 жыл бұрын
If integral is something, but error finally becomes zero, it just adds zero to integral but integral does not change it remains the same value it was before. So it multiplies to ki and it will correct, even with zero error!
@milesrothman4345
@milesrothman4345 7 жыл бұрын
I don't understand what any of the variables have to do with anything. what are they for?
@Builderdude35
@Builderdude35 7 жыл бұрын
Storing, transferring or reading values. Each one is explained in the video.
@jeudygamboa7390
@jeudygamboa7390 6 жыл бұрын
I don't speak so much English I'd like you show what the robot does after programming. Greetings
@Builderdude35
@Builderdude35 6 жыл бұрын
Maybe ou can send me an email through my website, builderdude35.com?
@arefhafza4070
@arefhafza4070 7 жыл бұрын
Can show how we can save time during fll rounds
@Builderdude35
@Builderdude35 7 жыл бұрын
See my video on Dog Gears. That's a good first step.
@yichern4351
@yichern4351 7 жыл бұрын
It would be great if u could show us this in action
@busteman
@busteman 5 жыл бұрын
Use this link: kzbin.info/www/bejne/hmaTdHhmrdybrNE. Near the end is the pid
@roboticsc7053
@roboticsc7053 7 жыл бұрын
I tired it, and it is working. However, it only turns right and does not turn left when suppose to do. I don't know why can you help with that please? and can you please explain how to do it for more than one sensor?
@Builderdude35
@Builderdude35 7 жыл бұрын
The robot should be able to turn in both directions. I recommend adjusting the first value you subtract from your light sensor reading.
@jaderyandelrosario4846
@jaderyandelrosario4846 7 жыл бұрын
Builderdude35 We also have the same problem.. What do you mean? Can you show us a video that shows the trials?
@roboticsc7053
@roboticsc7053 7 жыл бұрын
Actually I fixed it by changing the target value. You have to put between the black line and the other color you do have. Then, measure the go to pot view, check the value there, and get it to be written as a target. After that, try to fix the Kp, Kd, and Ki again. In my situation, I have the target = 55, Kp = 2, Ki = 0.00001, and Kd = a big value but not fixed yet.
@gurmeetkaur-vw2ry
@gurmeetkaur-vw2ry 7 жыл бұрын
instead of kp can i use the advanced math block and set it to a-b*c and BTW great channel
@Builderdude35
@Builderdude35 7 жыл бұрын
Try it and see what happens.
@michaelyang1459
@michaelyang1459 4 жыл бұрын
I dunno how to know if my values are getting better or worse
@gregcollins3404
@gregcollins3404 7 жыл бұрын
Do you find that doing a complex algorithm slows down the control loop so much that a simpler, faster routine actually does better? Have you ever seen or found specs on what the execution speed of the EV3 is? People that are having trouble getting a line follower to work its often because their speed is higher than the line follower can respond to.
@Builderdude35
@Builderdude35 7 жыл бұрын
I'm not sure what the actual EV3 computing speed is, but I would say that this line follower, as complex as it is, will not significantly slow the EV3; I have run much more complex programs on the EV3, and it seems to take a lot more complex programming before the EV3 slows down.
@gregcollins3404
@gregcollins3404 7 жыл бұрын
It seems like on my EV3, it is very easy to go through a line and off the other side before the EV3 responds to it. We have to keep the speed pretty slow to stay at all smooth...
@meganton9417
@meganton9417 7 жыл бұрын
Builderdude35 i tried to solve this by putting the single parts in differented loops and i have the feeling that it works better now
@shutaroa1175
@shutaroa1175 6 жыл бұрын
Is it possible to download this data?
@Builderdude35
@Builderdude35 6 жыл бұрын
Download what data?
@shutaroa1175
@shutaroa1175 6 жыл бұрын
Data of the program (ev3 file)
@Builderdude35
@Builderdude35 6 жыл бұрын
No, the program is not available for download. You will learn everything you need to know from the tutorial.
@kaandere5833
@kaandere5833 7 жыл бұрын
please make a video a test it
@Builderdude35
@Builderdude35 7 жыл бұрын
I'm going to have a line follower comparison video for next week, which will show all of them working back-to-back.
@kaandere5833
@kaandere5833 7 жыл бұрын
thanks
@georgegeorge690
@georgegeorge690 7 жыл бұрын
is this better than a two line proportional? if yes is it possible to make a two light sensros pid?
@meganton9417
@meganton9417 7 жыл бұрын
George George of course its better just because of the less sensor port because you can coose better where on the line you want to drive along. Youre second question is a bit difficult because when you have two points on the line and want to move them you have one point Besides the line where you cant control it
@georgegeorge690
@georgegeorge690 7 жыл бұрын
Meganton thx
@quipoxd72
@quipoxd72 3 жыл бұрын
i try your coding but my robot is turning around in place. Virtual Robotic Toolkit
@rishiveerepalli4957
@rishiveerepalli4957 7 жыл бұрын
How do you get the target light value? . . I didn't understand that part
@rishiveerepalli4957
@rishiveerepalli4957 7 жыл бұрын
Never mind. . . The tutorial on the proportional line follower explained it.
@French28Pilot
@French28Pilot Жыл бұрын
Hi i know its 2023 but my robot is always spinning and when i put it on the line it spins aroun itself. How to fix please?
@bangerMURILO
@bangerMURILO Жыл бұрын
ajusta a luminosidade
@emeraldbunnyvlogs8171
@emeraldbunnyvlogs8171 7 жыл бұрын
Oops I just spilled my drink
@emeraldbunnyvlogs8171
@emeraldbunnyvlogs8171 7 жыл бұрын
D
@emeraldbunnyvlogs8171
@emeraldbunnyvlogs8171 7 жыл бұрын
Derp
@lancerafael8975
@lancerafael8975 2 жыл бұрын
Anyone here knows how to do this with raw sensor?
@kaminghui5544
@kaminghui5544 7 жыл бұрын
May I know how to follow a dotted line??
@Builderdude35
@Builderdude35 7 жыл бұрын
That's going to be very difficult, I don't have a tutorial on that.
@huikaaming3517
@huikaaming3517 7 жыл бұрын
KA MING Hui Thanks for you reply. Does it mean that there is no way to set a programme to tell my ev3 it is following a straight line or a dotted line?
@meganton9417
@meganton9417 7 жыл бұрын
Hui Kaa Ming its extremely hard to make a program that allows the robot to recognize when there is a dot and when a complete line. he would most likely think that it is a very small circle and would try to drive along it and then loose it in most cases
@Builderdude35
@Builderdude35 7 жыл бұрын
Yes, this is correct. Thanks for the explanation.
@jaderyandelrosario4846
@jaderyandelrosario4846 7 жыл бұрын
Builderdude35 Can you explain it in simpler way and make examples or actual footage of getting the values ? I can't understand it
@perdredupoids-vivresaineme9564
@perdredupoids-vivresaineme9564 4 жыл бұрын
Mine is just spinning
@lukeqiao5477
@lukeqiao5477 7 жыл бұрын
is it possible to build a two sensor PID line follower?
@MichaelTheGuy
@MichaelTheGuy 7 жыл бұрын
yeah
@roboticsc7053
@roboticsc7053 7 жыл бұрын
can you help with the two sensors?
@veebhushah9667
@veebhushah9667 6 жыл бұрын
How do you condense to my block
@Builderdude35
@Builderdude35 6 жыл бұрын
The same way you would with any other program, but you will have A LOT of parameters to set up. Check out my MyBlock videos: kzbin.info/www/bejne/mH6un3qja66AbM0 and kzbin.info/www/bejne/b6Gym4yNmbKig9k
@user-kf1qb5gn7t
@user-kf1qb5gn7t Жыл бұрын
I wanna program this in NXT 🙂💔
@charmingotter976rr
@charmingotter976rr 5 ай бұрын
That’s not builderdude35 that engineerboy53
@pidprogram9563
@pidprogram9563 4 жыл бұрын
I do the program with the new version of windstorm for Mac if you want the program you can download it drive.google.com/file/d/1Ot976jQswV5OU6tyIsUeJUPJ7uugpduc/view?usp=sharing
Proportional Line Follower for EV3 - Follow the Line Smoothly!
7:59
Builderdude35
Рет қаралды 204 М.
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 10 МЛН
DELETE TOXICITY = 5 LEGENDARY STARR DROPS!
02:20
Brawl Stars
Рет қаралды 18 МЛН
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 4,1 МЛН
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Shyam Ravi
Рет қаралды 290 М.
Controlling Self Driving Cars
4:41
AerospaceControlsLab
Рет қаралды 495 М.
Line follower v1. Робот для гонок по линии / Создание и соревнования
21:04
DevelTeam. Команда разработчиков
Рет қаралды 65 М.
PID Control - A brief introduction
7:44
Brian Douglas
Рет қаралды 1,4 МЛН
Stop Making THIS MISTAKE With Your LEGO Gyro Sensor
10:18
Builderdude35
Рет қаралды 17 М.
The Optimal Color Sensor Placement for EV3 Line Followers
6:38
Builderdude35
Рет қаралды 28 М.
Following a Line with Lego Mindstorms
15:56
Unibots
Рет қаралды 34 М.
Proportional Line Follower for LEGO 51515 - Fast and Reliable
14:31
Builderdude35
Рет қаралды 46 М.
Lego sumo 2012 RobotChallenge
12:33
Leivo Sepp
Рет қаралды 1,5 МЛН
MacBook Air Японский Прикол!
0:42
Sergey Delaisy
Рет қаралды 540 М.
🔥Идеальный чехол для iPhone! 📱 #apple #iphone
0:36
Не шарю!
Рет қаралды 1,1 МЛН
Девушка и AirPods Max 😳
0:59
ОТЛИЧНИКИ
Рет қаралды 18 М.