STM32 motor control: PID theory and implementation

  Рет қаралды 19,097

Steppe School

Steppe School

Күн бұрын

Пікірлер: 24
@steppeschool3629
@steppeschool3629 2 жыл бұрын
Hello guys. This video is about the PID controller and how to implement it in embedded systems. The source code and slides can be found on: www.patreon.com/posts/pid-control-code-75506709?Link& www.steppeschool.com/products/communities/steppeschool-miscellaneous
@payalpal4386
@payalpal4386 2 жыл бұрын
The accessibility is denied. Cannot read further unless payment is successful.
@steppeschool3629
@steppeschool3629 2 жыл бұрын
@@payalpal4386 It is paid content. For the price of a cup of coffee, you get access to a whole range of valuable materials: pdf documents, source code, etc. And this small fee allows me to keep creating more useful content for you.
@botak333
@botak333 9 ай бұрын
It posible to control 3phasa motor pmsm sir???
@botak333
@botak333 9 ай бұрын
It posible to control 3phasa pmsm motor sir?? With 2000ppr encorder ABZ
@sumedhburbure4173
@sumedhburbure4173 4 ай бұрын
wonderful demonstration of the PID controller!
@wasifmehmood85
@wasifmehmood85 9 ай бұрын
Hi yerke! I want to know how did you define the value UPDATE_RATE?
@steppeschool3629
@steppeschool3629 9 ай бұрын
Hi! In my project, it is 1 kHz
@AdaptivePhenix
@AdaptivePhenix 4 ай бұрын
To actually answer your question; it's generally accepted that the ideal sampling frequency is 5 or 10 times greater than whatever you're driving can respond. So, in this case of 1KHz, it's ideal for a plant that can respond @100Hz (10ms). In my own case where I use motors of 2KW+, anything faster than 250Hz is a waste of processing power. This demonstrated PID is known as "continuous" which I would never use. The "discretized" method is far superior, in my experience and doesn't require the moving average filter. Recommended references are Dr. Jacob Tal (my mentor) and Chuck Lewin of PMD. Both of these gents explain everything in a way that mere mortals can actually understand. 😁
@unholy1771
@unholy1771 8 ай бұрын
Thanks a lot! May I ask why use a moving average filter instead of a low pass filter?
@steppeschool3629
@steppeschool3629 8 ай бұрын
It works much faster than a low pass filter. Of course, the low-pass filter can be used instead of the moving average.
@unholy1771
@unholy1771 8 ай бұрын
@@steppeschool3629 really surprised to hear it works faster honestly. What about delay? Doesn't the moving average add more delay because of the more samples?
@benjaminshields9421
@benjaminshields9421 Жыл бұрын
How do you find the time required for division affects the process in a full implementation with multiple PIDs and MIMO systems?
@steppeschool3629
@steppeschool3629 Жыл бұрын
Hi I am sorry, but I did not fully understand your question. What do you mean by division? Do you mean the time for computation?
@lohikarhu734
@lohikarhu734 7 ай бұрын
It would be interesting/useful, to show, on the graph of the motor speed, the PWM value that is applied, so that we could see the action of the differential and proportional functions make the quick response of the PWM, and the slower changes due to the integral part... Hmmm... Possibly also show the values of each of the three correction terms? But, maybe that's in the next video?
@steppeschool3629
@steppeschool3629 7 ай бұрын
It could be really interesting to show that using an oscilloscope, which I do not have currently😀
@AdaptivePhenix
@AdaptivePhenix 4 ай бұрын
At a sample rate of 1KHz?
@yigitmertsevindim1669
@yigitmertsevindim1669 Жыл бұрын
Why using filters ? For calculate clear?
@rajdeepdas86
@rajdeepdas86 Жыл бұрын
very good bro
@steppeschool3629
@steppeschool3629 Жыл бұрын
Thanks
@lailasymky2750
@lailasymky2750 Жыл бұрын
Can u give the code please?
@steppeschool3629
@steppeschool3629 Жыл бұрын
You can find the source code and tons of other materials on my Patreon page: www.patreon.com/user?u=80399744
@sinhphan8202
@sinhphan8202 Жыл бұрын
@@steppeschool3629 Does it cost 7 dollars to read the code??
@steppeschool3629
@steppeschool3629 Жыл бұрын
Yes, it does. You will unlock access to all projects.
PID Tuning: intuitive understanding of PID gains
14:32
Steppe School
Рет қаралды 2,3 М.
PID Controller Implementation in Software - Phil's Lab #6
20:06
Phil’s Lab
Рет қаралды 214 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
What is a PID Controller? | DigiKey
22:19
DigiKey
Рет қаралды 101 М.
How a Microcontroller starts
28:49
Artful Bytes
Рет қаралды 61 М.
DC motor PID speed control
15:29
Curio Res
Рет қаралды 254 М.
STM32 Timer Encoder: motor velocity and position
8:47
Steppe School
Рет қаралды 16 М.
A real control system - how to start designing
26:58
Brian Douglas
Рет қаралды 278 М.
9-Axis IMU LESSON 26: Understanding PID Control systems with Arduino
1:10:36
Arduino PID Controller - From Scratch!
29:51
Ian Carey
Рет қаралды 66 М.
Hardware Demo of a Digital PID Controller
2:58
Gregory L. Holst
Рет қаралды 1 МЛН
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 120 М.