vas
Well-Known Member
hydraulics, no point in hijacking the OP thread, if you want more info have a look here: Vosper Mini Fins Stabilisers retrofit on MiToSDid you use dc motors or stepper for the fins?
V.
hydraulics, no point in hijacking the OP thread, if you want more info have a look here: Vosper Mini Fins Stabilisers retrofit on MiToSDid you use dc motors or stepper for the fins?
Thankshydraulics, no point in hijacking the OP thread, if you want more info have a look here: Vosper Mini Fins Stabilisers retrofit on MiToS
V.
A potentiometer was the initial thought, but with limited programming skills i am not aware how it can drive the motor CW, or CCW were with the rotary encoder its more obvious.Friction is a big issue in a wind angle sensor, optical or magnetic sensors are often preferred. Making it cheap and waterproof is not trivial.
Your horizontally pivoted vane might have enough force to use a simple potentiometer?
Could you explain the "fixed error = fixed rudder position" a little more?I would definitely recommend starting with fixed error = fixed rudder position. This gives you only one variable to tune (the ratio). You may find you need a control loop on the motor to drive to the correct position, do you have a rudder angle sensor?
The purpose of the "device" is only to simulate a real mechanical wind vane system taking wind direction as the only data input. But even to achieve only this might be very complicated as you say. I am not aware if the mechanical wind vane steering, interacts with the rudder forces, or it is just one-way "data" - from the vane to rudder. My reasonιng says that only the vane should move the rudder and not the opposite?Control systems like this can be extremely complex to program and even harder to get all the parameters correct; there's a lot of non-linear feedback going on! It's a research topic in itself. And when you start to take into account periodic forces such as wave interaction with vane, heading and rudder forces, gust response and so on, it gets even more complex. It's all doable, but expect to a) need algorithms that can handle all the inputs and b) have a lot of tuneable parameters. And even then, expect it to do odd things from time to time!
Could you explain the "fixed error = fixed rudder position" a little more?
I don't have a rudder sensor.
I have no practical experience, but the linkages I've seen portrayed would certainly allow feedback from the rudder - no worm drives or similar to stop feedback forces. Whether they're significant is beyond me, but most people describe windvanes as tracking the motion of the boat over waves. On my own boat such forces could be significant - she is well balanced, but the tiller loads up quickly when she heels beyond a certain point, so she rounds up when a gust hits her.The purpose of the "device" is only to simulate a real mechanical wind vane system taking wind direction as the only data input. But even to achieve only this might be very complicated as you say. I am not aware if the mechanical wind vane steering, interacts with the rudder forces, or it is just one-way "data" - from the vane to rudder. My reasonιng says that only the vane should move the rudder and not the opposite?
I have no practical experience, but the linkages I've seen portrayed would certainly allow feedback from the rudder - no worm drives or similar to stop feedback forces. Whether they're significant is beyond me, but most people describe windvanes as tracking the motion of the boat over waves. On my own boat such forces could be significant - she is well balanced, but the tiller loads up quickly when she heels beyond a certain point, so she rounds up when a gust hits her.
Once you know how far off the desired heading you are (the 'error'), you have to decide what to do with this information in terms of steering the boat. You could for example have a very simple system where any error to one side results in driving the wheel/tiller at maximum force in the relevant direction. Of course this will result in full force being applied at all times so is not efficient (or effective). You could use proportional control, so as error increases the applied force increases. The problem with this is best illustrated with an example. Imagine the bow is pushed some angle to leeward by a wave. There is a large error so a large force is applied to the tiller. The tiller starts to move and the boat starts to round up. The error will therefore start to reduce, but will continue to be on the same side. Thus the force applied to the tiller will start to reduce, but will still be in the same direction. Thus the rudder angle will continue to increase until you return to the correct heading at which point the applied force will be zero. Unfortunately you will now be on the correct heading, but with the rudder hard over, and so you will continue turning onto the other side. And so on forever.
A much better solution is to have proportional control between input error and rudder angle. Thus as the boat returns to the correct course the rudder will return to the centreline. Mechanical windvane systems use a differential to achieve this result. If you don't have a rudder angle sensor you could probably get close by measuring the integral of applied force over time. This assumes a stiff system where there is little backdriving.
The problem with a proportional control system is that if there is some continuous bias (in this case weather helm) then you need a constant force applied to the helm. This force will only be applied if there is an input error, so you will reach a steady state that is slightly off your desired course. PID control avoids this, at the expense of being harder to tune. An alternative is a length of bungy cord between tiller and cockpit coaming.
That's what a PID controller will do, when correctly tuned. It will need a lot of testing and adjustment but the principle is straightforward: There's some output because there is an error - the Proportional part; there' another contribution because there has been an error the Integral part; and there's a further addition because the error is changing (Differential).4) Now the hard part...The boat starts to turn left and the relative angle of the windvane starts to increase again -45, -40, -35... The rudder should start correcting and when the vane reads 0, it should be at the center...oh...that's really hard!
Spot on! The challenge is that the thing you can actually control (motor torque) is several steps removed from the thing you are sensing (heading or AWA). Adding a rudder position sensor would definitely help, as would starting with the simplest possible control algorithm (proportional rather than PID).Great explanation. It's getting more complicated as things get more clear!
Can't we assume the vane, (whether horizontal or vertical) might work as the unique sensor that gives the error? A very basic algorithm could be like that:
......