Arduino PID Controller - From Scratch!

preview_player
Показать описание
In this video I dig into the details of a basic PID controller implemented on an Arduino. Check the link below for the code and reference materials to get started implementing your own controller.

#arduino #pid #controller #controltheory #pidcontroller #pidcontrol
Рекомендации по теме
Комментарии
Автор

I designed this system with an approach based around how I would like to have been thought it originally years ago when I studied it. All credit to the education I got, it was excellent, but for all the theory I had a firm grasp of, I failed utterly at being able to apply it in real life outside of simulations in Matlab. I think if I had been able to sit down with a physical system in front of me, code the microcontroller and see the outputs in real time it would have done so much for my understanding. My hope is that this is an accessible resource for people who are coming at this as a beginner hobbyist or a student, like I was, with a good understanding of the theory but fuzzy on the real world application.

careyian
Автор

one of the most through explanations ive seen, so refreshing to see behind the scenes instead of someone just using a library that makes everything into a black box

dhaufjebzjchseis
Автор

your code clean, your explaination clear, your voice good --> 10/10 video, thanks bro !

nhatcao
Автор

I've been tuning PID's for 25 years from chain driven sloppy movements to oven temps to CNC, and thought I was accomplished when I used the PID library.. I wish I had seen this years ago. Very well done and simplified the black box magic. Those block diagrams are great but thinking thru the math is essential for tuning intuition.

dkraft
Автор

Man, at my 3rd year of engineering and i am thinking of making a stability project with 2 brushless motor, but I wasn’t sure if how easy it is, but after watching your video now I’m 💯 sure i will be doing it.
The hand gestures, the way you explain and the plan you choose to explain the code and the oscillation graph it was all perfect. Thank you ❤

mahdiallaw
Автор

Thank you! This was exactly what I needed to implement a motor speed controller. Your explanation was concise and clear and your video was enjoyable to watch.

cosmacgrandpa
Автор

Loved your explanation throughout, very easy to follow and understand. Also, it's visible that you love this stuff too. Makes it an interesting watch.

Timmygardiner
Автор

Many thanks brother, I´ve been interested in making balancing robots for fun, and donate the project to my university so other students can see the helpfulness and importance of PID in control systems. With this explanation I feel more confident in starting this iniciative.

mariorafaelbritopavon
Автор

Man, this is perfect. ❤
Respect from EGYPT.

abdallahmostafa
Автор

Thanks for this video and especially the link to the code. This helped me to understand the PID calculation. In code format its much easier to understand than to read Wiki and see the long formula with strange symbols :D

HSuomi
Автор

doing 3rd year mechanical, and wanted to see actual application of such, this video is great.

Letter_l
Автор

Thank you for this video! I'm currently working on a personal project - creating something like a diesel engine controller based on the VP37 pump. There's a type of inductive solenoid that adjusts the fuel dosage based on a PWM signal it receives. The feedback signal is from a Hartley generator, generating a DC voltage that changes depending on the position of the actuator. It seems like a straightforward task - just drive the solenoid with the right waveform based on the feedback voltage... But unfortunately, it's not that simple! Unexpected problems arise, such as the coil heating up during operation, requiring compensation for temperature drift, or fluctuations in the solenoid's supply voltage... The solenoid itself is mounted on springs and can oscillate on its own... :) I struggled with this a bit, and I have to say that PID behaves impressively well in this regard, better than all my other solutions. I'm still dealing with the issue of voltage fluctuations - when the coil's supply voltage changes, the solenoid changes its position. After a while, the PID stabilizes it, but there's still some fluctuation in the actuator's position. Thanks again for the great explanation in your video!"

jaszczurtd
Автор

very strong video! could you do a follow up video implementing a MPC control algorithm for the same system in Arduino? It would hightlight the key differences and relative performance really well I think

ThomasHaberkorn
Автор

very fascinating experiment and easy to understand, for something that I really struggle to learn.

mrlajel
Автор

Thank you so much for your effort 👍🏻
Greetings from Germany

mathiskose
Автор

This is an amazing content . i wish there was a quick way to calculate the pid values and tune them quickly since as an engineer you have dead lines to meet

derrickadusei
Автор

thanks mate, you helped a bachelor student here :)

arshiafas
Автор

Thanks for uploading this. Gigachad move

ObsequiousV
Автор

That's a great explanation; however, I think we should consider making the PID gains more adaptive to enhance the code's generality and accuracy. Would this improvement be beneficial or will it add unnecessary overhead to the code?

abdoelzohiery
Автор

Thank You so much!! Just what I needed.

sami_-