Boat autopilot - PID not centralizing rudder.

Robin2:

Tobbera:
When tacking upwind, tell tales is basically the only input you have when steering the boat. You set the sails, and steer as high as you can by looking at the tell tales. The tell tales shows the flow around the sail, which essentially is the wind direction. The only reason the tell tales indicates lift or heading, is because of change in apparent wind direction, which I hope I can sense with my wind vane in front of the sail.

I tried to indicate in my earlier post that I understand telltales. Of course they bear some relation to wind direction, but they do not represent the direction of the wind far enough away to be unaffected by the boat. A wind direction sensor that is as close to the sail as the telltales will give the same result as the telltales. One that is clear of the sails will give different data. The telltales are so close to the sail they are almost in the boundary layer.

Placing the wind vane in front of the tell tales will hopefully give enough input to the autopilot to keep the tell tales "flying". At lest better than I as human can. By placing the wind vane lower down in front of the boat, it will replicate what I see on the tell tales, and not be affected as much by side to side movement as you have in the top of the mast (which can oscillate 2 meters from side to side and upset the vane.)

This is where I fear you will be sadly disappointed. As I said earlier I don't believe it will replicate the telltales and I think you are grossly underestimating the computing power of your human brain.

I was never interested in racing but I crewed once or twice with a friend on a 30ft keelboat. He was adjusting the main sheet 1 or 2 inches at a time and it was having a beneficial effect. I don't think an Arduino program can match that.

I am puzzled by your statement that the telltales are not entirely affected by the apparent wind direction. Yes sure, the sails "disturb" the wind around the tell tales etc, but the original source is the apparent wind that blows on the boat/sails. The same apparent wind that will blow on the wind vane. I If the apparent wind shifts 5 degrees to port, the starboard telltale is going to indicate. If the apparent wind shifts 5 degrees to starboard, the port telltale will indicate. The only information I'm getting from the steering telltales in the jib, is wind direction (wind shifts). Or am I missing something regarding wind direction versus beating upwind?

Howe ever, the tell tales itself is not really important for the autopilot anyway. Its just a measure to try to explain and replicate what I as a human is doing with the rudder when going upwind.

If the apparent wind shifts 5 degrees to port, you want to steer the boat 5 degrees to port. This is to keep the full power in the sails, and take advantage of any lift. If the apparent wind shifts 5 degrees to starboard, you want to steer the boat 5 degrees to starboard. That is what I'm trying to make my autopilot do.

Regarding sheeting the main sail, how is this related to the auto pilot?