11-07-2023 09:55 PM
I am trying to create a boat that maintain a specific direction, for that I use a rudder to change direction of the boat the rudder is controller by a servomotor, and a gyroscope to measure the angle on which the boat is pointing at.
I want to know if the logic of my connection to the PID function are correct :
the part I am really confuse is: If I put my set point to be 0 degrees I want the rudder to change the direction to stabilize the system if the boat is not at 0 degrees, but I don't know if the PID function knows if the values of the gyroscope and the rudder are related to each other or not, because the process value I am working is from the degrees of the gyroscope and the output I put to be is the rudder with that range of values, when trying in real life the PID it didn't work. and I don't know if it is because of my logic of or what
11-08-2023 12:56 AM - edited 11-08-2023 01:06 AM
Hi Wottrich,
@Wottrich wrote:
the part I am really confuse is: If I put my set point to be 0 degrees I want the rudder to change the direction to stabilize the system if the boat is not at 0 degrees, but I don't know if the PID function knows if the values of the gyroscope and the rudder are related to each other or not, because the process value I am working is from the degrees of the gyroscope and the output I put to be is the rudder with that range of values, when trying in real life the PID it didn't work. and I don't know if it is because of my logic of or what
And what are your PID gains? They determine the relation between sp, pv and output!
On your VI:
Example: