Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 08-01-2014, 05:44   #1
Registered User
 
Tscott8201's Avatar

Join Date: Nov 2012
Location: North Florida
Posts: 104
DIY Autopilot

This was on my Facebook feed this morning. Thought you all might enjoy it.

(FYI can't watch video embedded you must follow the link to youtube)



Tom
Tscott8201 is offline   Reply With Quote
Old 08-01-2014, 07:17   #2
Registered User
 
DeepFrz's Avatar

Cruisers Forum Supporter

Join Date: Mar 2006
Location: Winnipeg
Boat: None at this time
Posts: 8,462
Re: DIY Autopilot

Now that is cool.
DeepFrz is offline   Reply With Quote
Old 08-01-2014, 08:31   #3
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Re: DIY Autopilot

The video of course does not demonstrate the real design issues of autopilot control and that is dynamic response. whats shown drop box description is a very simple PID, with the differential gain taken from the horizontal rate element of the compass chip.

see https://www.dropbox.com/sh/l1l1432c9vfs4g1/7PJUMgsj0E for those of you interested in the code

The issue of course is not so much XTE tracking ( almost anything will do that ), but instaneous response to significant rate of heading change

dave
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 08-01-2014, 12:36   #4
Senior Cruiser

Cruisers Forum Supporter

Join Date: Oct 2008
Location: Coos Bay, Oregon
Boat: Valiant 40 (1975)
Posts: 4,073
Re: DIY Autopilot

Its going to be fun to see what autopilots we have in a few years time. As I understand Dave, the problem is to get a rapid correction on a boat that is going many different vectors at once- like a multihull skimming over the water sideways.
s/v Beth is offline   Reply With Quote
Old 08-01-2014, 16:37   #5
Registered User
 
DeepFrz's Avatar

Cruisers Forum Supporter

Join Date: Mar 2006
Location: Winnipeg
Boat: None at this time
Posts: 8,462
Re: DIY Autopilot

I watched a video at the same link (displayed after the link video) of a new autopilot on a quad copter that seemed to "learn" about the forces on it and start improving its accuracy. Its the ArduPilot Mega 2.5. Might be a step up from the one shown and software is all open source.
DeepFrz is offline   Reply With Quote
Old 09-01-2014, 01:52   #6
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Re: DIY Autopilot

Quote:
Originally Posted by s/v Beth View Post
Its going to be fun to see what autopilots we have in a few years time. As I understand Dave, the problem is to get a rapid correction on a boat that is going many different vectors at once- like a multihull skimming over the water sideways.

I think since rate gyros have been added, future improvements will be limited to small advances. The issue t now is clearly the physical dynamics of moving the rudder quick enough to respond to big perturbations in vessel position. Thats not easily solved.


dave
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 09-01-2014, 05:48   #7
Registered User
 
colemj's Avatar

Join Date: Oct 2005
Location: Presently on US East Coast
Boat: Manta 40 "Reach"
Posts: 10,108
Images: 12
Re: DIY Autopilot

Autopilot control of multiple thrusters and stabilizers?

Mark
__________________
www.svreach.com

You do not need a parachute to skydive. You only need a parachute to skydive twice.
colemj is offline   Reply With Quote
Old 09-01-2014, 06:47   #8
Marine Service Provider

Join Date: Aug 2010
Location: north carolina
Boat: command yachtsdouglas32
Posts: 3,113
Re: DIY Autopilot

I once made an in flight adjustable prop that used an electric screw driver motor to change the pitch of the prop, I dont remember where I saw it but a fella made a self steering autopilot for his boat from one also..Electric screwdrivers can be used for lots of different applications when a little bit of "throw" is needed, I would feel more comfortable with the hydrolic setup as it tends to be more robust...
tropicalescape is offline   Reply With Quote
Old 09-01-2014, 06:51   #9
Nearly an old salt
 
goboatingnow's Avatar

Join Date: Jun 2009
Location: Lefkas Marina ,Greece
Boat: Bavaria 36
Posts: 22,801
Images: 3
Quote:
Originally Posted by colemj View Post
Autopilot control of multiple thrusters and stabilizers?

Mark
Already built in to upmarket commercial autopilots.
Dave
__________________
Interested in smart boat technology, networking and all things tech
goboatingnow is offline   Reply With Quote
Old 09-01-2014, 07:50   #10
Registered User
 
familycruisers's Avatar

Join Date: Aug 2011
Location: On the boat
Boat: Westerly Centaur. 26'
Posts: 500
Send a message via Skype™ to familycruisers
Re: DIY Autopilot

Rc heli gyros are about up to the task, they have rate and heading hold as well as integration into GPS autonomous applications. Once again the big boys are behind the tech.
familycruisers is offline   Reply With Quote
Old 09-01-2014, 08:00   #11
Registered User
 
DeepFrz's Avatar

Cruisers Forum Supporter

Join Date: Mar 2006
Location: Winnipeg
Boat: None at this time
Posts: 8,462
Re: DIY Autopilot

The Pixhawk autopilot is just amazing.
DeepFrz is offline   Reply With Quote
Old 09-01-2014, 08:32   #12
Registered User

Join Date: May 2011
Location: Lake Ont
Posts: 8,561
Re: DIY Autopilot

Quote:
Originally Posted by goboatingnow View Post
The issue of course is not so much XTE tracking ( almost anything will do that ), but instaneous response to significant rate of heading change
Is instantaneous heading change the grail, though? From thinking about my time hanging onto a tiller, it seems the best control comes from observing how the boat heading is oscillating around the desired direction, and how the heading relates to travelling the desired line, and the feedback was a combination of observation and pressure from the tiller, and the most efficient control was a series of well-timed nudges. What we learn to do almost instinctively. Possibly too complex to push into an Arduino.

(I did take control systems 35+ years ago but it wasn't my favourite subject)
Lake-Effect is offline   Reply With Quote
Old 09-01-2014, 08:58   #13
Registered User

Join Date: Dec 2013
Posts: 209
Re: DIY Autopilot

I agree with the previous post. I think a fast response time to keep an exact heading, would just drain the batts. Would be nice on a calm day motoring but in waves and wind, not good. Motor would run back and forth and never stop. So i think an averaging over time and then make a small correction and "wait" to see if the correction worked would me my method. You constantly get knocked back and forth heading wise so no point in correcting when the next bounce might straighten your heading out. Maybe record headings every second, then average them over 10 seconds. Ignore any angle change under 5 degrees and only move the rudder if average heading changed more than 5 degrees. Then do a "preset" rudder deflection, then return to center. The amount of deflecton tuned as needed to not spill drinks. Then wait till the next 10 second cycle and compare the new average heading. Also record the direction of heading corrections so that if the autopilot corrects the heeading 2 or more times in the same direction then make a small shift in the neutral rudder angle so next correction is smaller than the last one so any weather helm would be tuned out in a few cycles. Relieving the autopilot from constantly correcting for the same thing.
All of the perameters for "turn rate" "delay time" and so forth could be adjusted "on the fly" with pots making setup real easy.
I love working out logic problems and programming stuff like this.

Andy

Sent from my SCH-I415 using Cruisers Sailing Forum mobile app
wellin is offline   Reply With Quote
Old 09-01-2014, 17:21   #14
Registered User
 
colemj's Avatar

Join Date: Oct 2005
Location: Presently on US East Coast
Boat: Manta 40 "Reach"
Posts: 10,108
Images: 12
Re: DIY Autopilot

This is how the good ones work now. They don't seesaw back and forth reacting to every heading change - they learn how the boat responds and the acceleration rates and anticipate or hold off steering as needed. I am always amazed watching our AP steer in largish seas just like (or better) than I would.

Mark
__________________
www.svreach.com

You do not need a parachute to skydive. You only need a parachute to skydive twice.
colemj is offline   Reply With Quote
Old 09-01-2014, 19:10   #15
Registered User
 
GILow's Avatar

Join Date: Sep 2008
Location: On the boat, somewhere in Australia.
Boat: Swanson 42 & Kelly Peterson 44
Posts: 9,339
Re: DIY Autopilot

I built an autopilot a few years ago, tiller pilot style. I found the two hardest parts were finding a linear actuator that was up to the job and expressing the "learning" aspect of the code in the very simple language available to me using the chip I had chosen (picaxe).

In the end I got the the learning aspect right using a variable resistor to control the tolerance to course deviation and another to set the response rate. Playing with these two got some very good results.

In the end it was the lack of a good (affordable)durable linear actuator that scuttled the project and I went out and bought a tiller pilot instead. But I still have the bits, particularly the ic2 compatible compass chip (CMS300 or something like it from memory?) waiting for a chance to play again. I am thinking I will use the bits in conjunction with my windvane steering when I have built it as a supplement for light air sailing. Getting around the problem of a decent linear actuator by controlling a trim tab instead of a full rudder.

Fingers crossed, it should be fun.

And in the interim, the options available to replace the picaxe component are just terrific, though I still love the simplicity of the picaxe itself.

Matt
GILow is offline   Reply With Quote
Reply

Tags
autopilot


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Advertise Here


All times are GMT -7. The time now is 21:57.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.