Beautiful PID explanation video
One of our great readers Ivan just sent this through to me.
He has created a video explaining how a PID (proportional / integral / derivative ) controller works and shows an example of it running on a simple NXT robot towards the end.
Now the video is in Portugese (who says we don't cater for the international audience! :D) and although I've only done a semester of learning Spanish at university, I was able to keep track of what was going on.
Even if I didn't understand any of the writing (he goes through a *lot* of post-it notes!), it was still great fun to watch, the style, pace and music of it just perfect. I loved the little things that happen throughout, such as running out of room to write and having to add another post-it, and trying (unsuccessfully) to attach the NXT with masking tape :)
Ivan's offering to put in English subtitles, so if you're interested, please make a comment!
**EDIT: Ivan has added English subtitles! :) **
He has created a video explaining how a PID (proportional / integral / derivative ) controller works and shows an example of it running on a simple NXT robot towards the end.
Now the video is in Portugese (who says we don't cater for the international audience! :D) and although I've only done a semester of learning Spanish at university, I was able to keep track of what was going on.
Even if I didn't understand any of the writing (he goes through a *lot* of post-it notes!), it was still great fun to watch, the style, pace and music of it just perfect. I loved the little things that happen throughout, such as running out of room to write and having to add another post-it, and trying (unsuccessfully) to attach the NXT with masking tape :)
Ivan's offering to put in English subtitles, so if you're interested, please make a comment!
**EDIT: Ivan has added English subtitles! :) **
Comments
Give our readers the English subtitles, please!
But i have questions i would to ask; What is the use of the compare block in this program?
Because I would like to try this method using two light sensor to make it align it on a dark line, but then i came across the Fuzzy Line Follower which has the same kind of method;
( subtracting -> multiplying = speed of motor ). Which method is better?
The "compare" block is just a trick, to set the direction of the motor forward or backward, because the power input only accept 0-100 integer values, we need to check if the "P" is below 0 or not, and set the direction correcly, otherwise, the robot would only go in one direction.
About "Fuzzy" algorithm. The way you explain, it's more like "P" control, because Fuzzy is commonly used in controls that you need to "set" states to things, like: "between 0-5, the output is -50". P is more like you said: "( subtracting -> multiplying = speed of motor )", with is P algorithm. For Line followers, is VERY reccomended, to use at least a PI algorithm, because in curves, if the robot doesen't integrates (sum) the error, he will go out of the line. If you increase the kP, than, the robot will have a LOT of overshot, causing the same thing. So, use a PI controller, that will work just fine!