LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple feedback control with labview?

Hi

I am still busy with the control of the modified RC-car.

At the moment I try to control the steering of the car. Now I do have the problem that the servo-motor that adjusts the angle of the front wheels is just to fast.
I am getting the current angle from a potentiometer that I mounted at the front.
When I for example want to turn the wheels to the right about 7 degrees the wheel turns right passes the 7 degrees and ends up maybe at 21 degrees.
Than it turns back to maybe -7 degrees. After that it starts turning right again and so on .....

To solve this problem I was thinking about to use some feedback control. A simple PID controller should work.
So my question. How can I do this? Is there any function that I can use to implement the feedback control? Are ther maybe some useful files in the internet?

Attached the VI that I did so far.  Don't mind that it is not finished. It should just clarify what I am going to do.

Bye Martin
0 Kudos
Message 1 of 2
(2,614 Views)

Hi Martin,

There is a example in the Example finder called Simple PID Demo.vi that you perhaps can use.

 

Best regards

/Karin

0 Kudos
Message 2 of 2
(2,595 Views)