Controlling a Servo using PID control.

31 次查看(过去 30 天)
Robert
Robert 2013-4-15
评论: Steve 2014-11-9
Hi Guys,
Wonder if you could help me.
I am learning about Simulink and the Arduino. I am trying to use PID feedback control with PWM but I'm not sure that makes sense due to the results.
I have a continuous servo that reads a value from 0 to 180 and a pot as an analog in and they work fine together and it is calibrated nicely.
Now I am trying to improve the response time mimicking an experiment that I did at Uni to control a servo using PID control.
So I have my input value going into a sum through a PID controller to the servo with the input signal going to a scope. From the servo read, the signal goes into the sum as a minus, and that signal also goes to the scope.
But trying to tune the PID controller, the signal just goes from high to low as PWM of 5Hz.
I am clearly missing something here.
Sample rate is set to 0.01
P = 1 I = 0 D = 0
Let me know what other info I need to give. D
  3 个评论
Gaurav Pipersaniya
Gaurav Pipersaniya 2013-5-27
can you tell me how can i do this project. actually i have to do project on pid controller similar to yours using simulink so if u can help in detail?
Steve
Steve 2014-11-9
Do you have a mathematical model for the servo you were using(assuming it was a hobby servo) ?
Did you get through Gaurav Pipersaniya ?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 PID Controller Tuning 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by