05-26-2018 10:13 AM
Hi everyone. I want to design pid implementation for dual dc motor control. I am using the Spartan 3- starter kit board. I have ultrasonic range sensor and i can show the object's range on seven segment display as centimeter. And also, i can control dual dc motor by using pwm technique on fpga board. But, i can not put everything together.
I can get distance value as centimeter and i can control dc motor by using pwm technique but how can i put pid on it? or how should i write pid code? Could you please help me to get rid of this chronic issue?
05-28-2018 01:49 AM
What is the controlled variable? Distance to target? Velocity?
Distance to target is potentially a tricky one as it requires the ability to reverse the motor - and most motors/controllers aren't going to give a linear response around that region.
05-28-2018 02:27 PM
This is a duplicate post, and I already replied with a solution here:
06-03-2018 02:41 AM
i want to control dc motor's speed. But i have range sensor not speed sensor. That's why i tried to change distance value to mean value speed by using trigger time of range sensor. Than, i send the information as speed into pid block. Actually i did this but when we look at the whole part of this design, is the system has PID control ? if it is ok , where the pid control is? This is my main problem.
07-04-2018 06:19 AM