please make a postion control of DC motor using simulink arduino !!
@paranmanjang_8 күн бұрын
I’ll try making it next time when I have time. Other than speed control and handling encoder values, most of it is quite similar, so it might be a good idea to apply it on your own as well.
@EdwArd-l5k9l22 күн бұрын
thanks bro
@paranmanjang_22 күн бұрын
Any time
@javiervinanzaca739618 күн бұрын
Could the PID tuner be used to obtain the values for Kp, Ki, and Kd?
@paranmanjang_18 күн бұрын
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.
@jonyromany-x4y16 күн бұрын
How to get the position of the motor using the encoder ?
@paranmanjang_16 күн бұрын
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.
@paranmanjang_16 күн бұрын
I’ve explained this in detail in the PPT for “DC Motor Control Part 2,” so please refer to that.
@hongsethya49329 күн бұрын
i really want bts7960 motor driver with simulink
@paranmanjang_9 күн бұрын
I checked the datasheet, and it seems like you can connect it as follows: Use LPWM instead of IN1 and RPWM instead of IN2. Connect ENb to the PWM pin. Then, connect OUT1 and OUT2 to M+ and M-, and adjust the direction accordingly. It should work the same way.
@paranmanjang_9 күн бұрын
I recommend starting from Part 1 and following along. In Part 1, it focuses on setting the direction correctly. In Part 2, it calculates the RPM based on the encoder, and by reviewing and applying Part 3, it should work.