That’s right. It was used to determine the values of Kp, Ki, and Kd. Once the values are finalized, you can use them by putting them into the constant value. I included it to demonstrate how to perform PID tuning. Looking at it now, the explanation seems a bit lacking. You can think of Kp as being used to increase or decrease overall responsiveness, Ki as being used when the system is unable to follow the target, and Kd as being used to reduce the magnitude of oscillations.
The MATLAB interface may differ slightly depending on the version. All the necessary settings and tutorials have been uploaded as videos in Part 1 and Part 2. I’m not sure what specific file you’re referring to, but if you want the source code, I believe you can obtain it by simply following the tutorials as they are. However, the video itself will not be provided. (Actually, I don’t really know how to upload files! 😂)
You can divide 360 degrees by the PPR (pulses per revolution) of the motor. In my current motor setup, 42 pulses are detected for a full 360-degree rotation. This means that for every increase of 1 in the encoder value, the angle increases by approximately (360/42 = 8.57) degrees. If there is a gear, you simply divide by the gear ratio. I’m planning to upload a video related to this (PID position control) soon, so I’ll tag you when it’s uploaded.
great video
You made my day! Thanks!
thanks bro
Any time
Could the PID tuner be used to obtain the values for Kp, Ki, and Kd?
That’s right. It was used to determine the values of Kp, Ki, and Kd. Once the values are finalized, you can use them by putting them into the constant value. I included it to demonstrate how to perform PID tuning. Looking at it now, the explanation seems a bit lacking. You can think of Kp as being used to increase or decrease overall responsiveness, Ki as being used when the system is unable to follow the target, and Kd as being used to reduce the magnitude of oscillations.
can i get this file ?
The MATLAB interface may differ slightly depending on the version. All the necessary settings and tutorials have been uploaded as videos in Part 1 and Part 2.
I’m not sure what specific file you’re referring to, but if you want the source code, I believe you can obtain it by simply following the tutorials as they are. However, the video itself will not be provided.
(Actually, I don’t really know how to upload files! 😂)
@@paranmanjang_ yeah i need the code for my universty , can u send it to me by any way
How to get the position of the motor using the encoder ?
You can divide 360 degrees by the PPR (pulses per revolution) of the motor.
In my current motor setup, 42 pulses are detected for a full 360-degree rotation.
This means that for every increase of 1 in the encoder value, the angle increases by approximately (360/42 = 8.57) degrees.
If there is a gear, you simply divide by the gear ratio.
I’m planning to upload a video related to this (PID position control) soon, so I’ll tag you when it’s uploaded.
I’ve explained this in detail in the PPT for “DC Motor Control Part 2,” so please refer to that.