This is one of, if not the best explanation I have seen for the PID controller. Kudos to the doctor for breaking this down and building it back up from first principles. Great job!
@jnsjknn
2 жыл бұрын
I'm an automation engineer and part of my job is to write code to control the air flow and air temperature of HVAC units with PID controllers (mostly just PI, actually). I have also practiced JavaScript for 3 years. I got started with JS programming through p5.js, inspired by this KZitem channel. If I can somehow use my skill set to help the Coding Train community, I'd be happy to help.
@TheCodingTrain
2 жыл бұрын
I probably won’t get to setting it up until tomorrow but would welcome contributions to the GitHub repo for this stream!
@Krazy0
12 күн бұрын
Watched the PID lecture, then sped the video till I reached the result in p5.js and I was so impressed and amazed that I honestly smiled because of how great the video is, also I was going to use it in few days because I was doing a drone from scratch, now just setting up the MCU for communicating with the IMU, cheers!
@d_lollol524
2 жыл бұрын
I hope this video be available in the future when I need to watch it again ..
@yuangong7120
2 жыл бұрын
Hahaha
@kamtono5768
2 жыл бұрын
Survivor!!!!!!! Whaaaaaat!! this is Awesome!!!!
@StefanVosloo
Жыл бұрын
Great video! I was always scared by the calculus in PID controller and never attempted to code it up, but seeing how simple it really is is amazing! You're both great teachers.
@ZacharyVogt
2 жыл бұрын
I used to be a regular viewer of this channel. I'm still subscribed, but I have to admit my viewership has really fallen off for a couple years. But I decided to watch this one; and kudos to everyone involved; the guest speaker really Perfectly meshed into the whole vibe of the channel. Overall an A+ entry in the catalog.
@Marius-of6ty
2 жыл бұрын
Hey Dan and Christian, very cool video! I am now writing my bachelors thesis on controlling a triple linked pendulum so this is coming just at the right time for me! Please more collabs like this :)
@R67K
2 жыл бұрын
I would love to see this thesis. I am intrigued by this topic.
@Chrls5
2 жыл бұрын
i found Christian a super insteresting, very smart guy! this lecture was very interesting and fun to watch, i would love to see more crossovers like this Daniel! thanks for this! 👏🙏
@geoffkuhl
2 жыл бұрын
Very Awesome - thank you so much! Nothing better than watching a video and then needing to get out your favorite editor right away and start playing :)
@mistery79
Жыл бұрын
We use PID to tune drones. This is very informative. Thanks
@cleisonarmandomanriqueagui9176
2 жыл бұрын
I really admire this guy
@R67K
2 жыл бұрын
I will repeatedly watch this video until i understand it. Thanks for sharing. I am enjoying it a lot.
@evanbarnes9984
2 жыл бұрын
This is so awesome! Thanks for providing your expertise, each of you. I learned a lot!
@fourorigin4676
2 жыл бұрын
What about the PI control? this one is a great one when having to control continuous flow, speed, pressure, etc!. Great stream!, looking forward for more of these! Thanks Daniel and Christian!
@AGPROHL
2 жыл бұрын
Definately, for jerky movements that go back and forth, you want more of a PD controller, but when the motion is continuous, like the speed of a motor in a CNC lathe, the disturbance being the force imprinted by the material over the working tool, so the controller has to compensate in the same direction, has to settle fast, with no overshoot, then the PI controller is best for this! Dr. Christian is Spot on in every aspect of motion control! really nice!
@knifeninja200000
2 жыл бұрын
that noisy wind would be nice to watch
@Chrls5
2 жыл бұрын
true, good idea hahaha
@rodoldreamer
2 жыл бұрын
This was a very interesting stream, I hope to see you doing more collaborations like this
@DavidS-ji6qv
2 жыл бұрын
Christian Hubicki??? From SURVIVOR?????
@LitCactus
2 жыл бұрын
Yes
@TheCodingTrain
2 жыл бұрын
That’s right!
@Chrls5
2 жыл бұрын
i Just Noticed that @1:15:44 when the integral term is added, it looks a lot like a Zero Order Hold, which is a little buffer in digital systems that keeps track of the sampled signal in the digital Domain, very interesting!
@nakulsingh8444
2 жыл бұрын
Waiting for part 2
@afaque.
2 жыл бұрын
Thank you for putting so much effort in editing this videos.
@unebonnevie
2 жыл бұрын
Kp, Ki, Kd are all MAGNITUDES; thus are always positive constants/factors.
@rocketdawg3000
Жыл бұрын
All that really matters is that the gains are the same sign.
@Fun-Planet
2 жыл бұрын
Great stream!
@adaptine
2 жыл бұрын
I believe the reason you had to invert the gains is the assumption of the positive direction of the angle. In the mathematical formulation it is assumed that counter-clockwise is the positive direction, while in p5.js it is positive in the clockwise direction.
@youreale
11 ай бұрын
AWESOME!!! love you guys.
@bigbyallsmay8992
2 жыл бұрын
As a survivor fan too, this crossover is tripping me out - I vaguely remember seeing daniel in a RHAP meetup video once, what are the odds of daniel playing a game of survivor? 🤔😆
@adamday5045
2 жыл бұрын
Same
@TheCodingTrain
2 жыл бұрын
My dream is a RAANAP + Coding Train crossover! 🎡
@Jackolltradez
2 жыл бұрын
Brilliant as always!
@DF-ss5ep
Жыл бұрын
I was taught some control system theory in college and I don't think I got or was even told why the I term was there. I think all I saw was equations. But this was completely clear and made perfect sense.
@erik....
2 жыл бұрын
I made one of these inverted pendulums in Lego with an AVR controller 14 years ago.
@simonabunker
2 жыл бұрын
It would be great if you could look into Kalman filters for predicting and smoothing inputs.
@epipolar4480
2 жыл бұрын
I would love to see that!
@nyscersul42
Жыл бұрын
In conclusion: Dr. Hubicki ate all the pi.
@thehappycoder3760
Жыл бұрын
Absolutely brilliant
@noooaaahhhh13
2 жыл бұрын
Daniel, please play survivor, i think you'll be awesome!!!
@jorgeandresgarciamontiel1801
2 жыл бұрын
This is the best college class I’ve had
@kamtono5768
2 жыл бұрын
lol me too, it was fun as well!
@fourorigin4676
2 жыл бұрын
X3
@jaans3712
2 жыл бұрын
You can run into problems with that error integral. If the actuator output runs to the limit it can cause windup to the integral. There are some fairly complex anti-windup algorithms but the simpliest solution is my favorite: Just add the first-order filtered controller output to the sum. I learnt this from one of Åhström’s books
@timgluz
2 жыл бұрын
Thanks!
@TheCodingTrain
Жыл бұрын
Thank you for the generous support!
@stearin1978
Жыл бұрын
I still believe that it is the same guy filmed twice...:-)
@circulartext
2 жыл бұрын
NICE
@ablearner7515
2 жыл бұрын
How I understand PID P controller -> Gets you to your desired state D controller -> Stops you at that desired state I controller -> if something stops you from achieving that desired state then it gives you just enough force to get you there (Please corret me if im wrong or tell me about how you understand it)
@lmmartinez97
2 жыл бұрын
You're generally right, but you should avoid using derivative terms when possible since a pure derivative term cannot be implemented because it needs future information to operate right. Research the concept of feedback and you'll get a much better idea about what the derivative term does. You have a good simple explanation that's 90% of the way there!
@moshesakajo
2 жыл бұрын
I hear you fine
@neoncyber2001
Жыл бұрын
Cool I just wrote one of those in unity!
@phillipchampion3398
2 жыл бұрын
Dear God is that the comptroller of slam town?
@TheCodingTrain
2 жыл бұрын
Indeed!
@_QWERTY2254
2 жыл бұрын
maybe if we change desired angle little bit based on the PID of (error of centering the rectangle) it would work. Great Video btw
@alwysrite
2 жыл бұрын
If you combine PID controller with AI , can we make a PID controller that tunes itself to optimal?
@evanbarnes9984
2 жыл бұрын
They talked a bit about using evolutionary algorithms to tune controllers, which is close to what you're describing. Neural nets are sort of evolved
@carlosornelaslim9713
2 жыл бұрын
then just get rid of the PID, and let the AI do all the job
@nyscersul42
Жыл бұрын
I think mr special guest is quite used to having a class of people to do lectures to hehe
@RedHair651
Жыл бұрын
I don't think they were hiding that. He's a professor.
@bjoern.molinari
2 жыл бұрын
Could you please add the topic of windup in the I part of the PID? And about methods to get rid of it.
@IlCappellodiIrma
2 жыл бұрын
Molto interessante! 👍 Iscritta 😊 Buon pomeriggio 🌈
@Ajajqiqjaa
2 жыл бұрын
Omg YOURE BACK 😭😭
@lorenzo42p
Жыл бұрын
the stream auto plays after another video.. "goodbye everybody" stream ends. thank you youtube.
@francescobaio2912
2 жыл бұрын
I can't find how to make the processing editor text bigger
@technogaming5606
2 жыл бұрын
sir how do you get ridd of the text like :- // noStroke();
@circulartext
2 жыл бұрын
WOW HEY DAN
@evanr.lowetechgamingandcoo1410
2 жыл бұрын
What about bob?
@adampm1
2 жыл бұрын
2:06:37 Christian's reaction 😂😂😂
@PR2000
2 жыл бұрын
When do you do a new video of the Nature of Code 2?
@TheCodingTrain
2 жыл бұрын
I hope soon!!
@anga6064
2 жыл бұрын
Hi, I am new to nature of code and it is mind blowing🤯🤯🤯!!! I like to start learn nature of code. Please guide me, where I have to start?
@TheCodingTrain
2 жыл бұрын
The answer is kind of an "it depends""! Do you know coding already? If not start here: kzitem.info/door/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA If you do already know programming then you can jump right to here: kzitem.info/door/PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
@ac2italy
2 жыл бұрын
why not using Fuzzy Controllers? Much simpler
@renecura
2 жыл бұрын
Py Dan is almost as funny than Js Dan.
@parthvirani4959
2 жыл бұрын
Hey The Coding Train i have one big challenge for you can you create image which should be clickable, what i mean is we just sharing them across social media but if user open image and tap somewhere inside image then it should be clickable, And I think we might can achive this by manipulating image bytecode hope to see you thoughts on this challenge.
@RedHair651
Жыл бұрын
I don't understand what you mean
@parthvirani4959
Жыл бұрын
@@RedHair651 as we have actionable pdf where we can set clicks in element, is it possible same for images?
@codingpartner6649
2 жыл бұрын
What is the use of learning p5.js. It does not make any money to me and, makes money to you.
@toastyPredicament
2 жыл бұрын
Hi I got captures by copium addicts.
@RicardoOliveiraRGB
2 жыл бұрын
What's Dan's instagram?
@TheCodingTrain
2 жыл бұрын
I don't really use instagram but there is a CT one here: instagram.com/the.coding.train
Пікірлер: 87