homemade autopilot

Discussion in 'OnBoard Electronics & Controls' started by bertho, Nov 8, 2009.

  1. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    Yes, I saw that one. I think that may be the one that Jay is using.

    I think I will order one of those and see how it performs.. Hook it up and drive around with it in the car... etc. See how much nearby iron affects it etc. It will be interesting to see how fast the device can be polled for data.

    I found an oem that makes compasses for a few autopilot manufactures and they are just a little over $100 if ordered in quantities of 100. http://www.autonnic.com/enclosed-compass.html If you buy them from the retail sellers they are about $325-400 each. A bit of a markup!

    I sent them an inquiry to see if I could buy them in lesser quantities.

    Dave
     
  2. X7JAY7X
    Joined: Jun 2011
    Posts: 28
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Toledo, OH

    X7JAY7X Junior Member

    Joakim, that is the compass I am using. The little bit I used it it seems to work great. I am polling it pretty fast but I noticed if I poll it too fast it stops responding and requires the power to be cycled for it to start working again... at least this was my experience. Dave, let me know the results of your testing. I dont have any other compass to compare it to so I would like to know how it compares to your other compass. BTW, your probably going to need a TTL <-> RS232 converter for the serial.
     
  3. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    Here is a video of sailing on Lake Erie on Sunday with the autopilot steering the course...

    http://www.youtube.com/watch?v=GuVcg3vkVn8

    We were out for a few hours and the autopilot did all of the steering except for leaving and returning to port.

    It was really nice sailing weather. Low 60's and full sun. We only saw 3 other boats in about 3 hours. I had a hard time getting the angle right so the camera did not pickup glare off the cockpit display. It is a lot more readable than it shows in the video. My Dad, who was in the boat, could read it from the back of the cockpit where he was sitting.

    Time to put everything into a proper box and clean up the wiring. The tape over the cockpit display was there since I didn't have the display screwed in place and I didn't want water spray to run into the unit.

    Dave
     
  4. Tim B
    Joined: Jan 2003
    Posts: 1,438
    Likes: 59, Points: 0, Legacy Rep: 841
    Location: Southern England

    Tim B Senior Member

    Looks good. Congratulations on getting it so far.

    Tim B.
     
  5. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    Thanks.

    I'm happy with the progress so far.

    Once I get everything mounted into a box I will take a picture of it and put it on my website.

    I ordered and received the compass board that Jay was using. Wow is that small! The board cannot cover up a Quarter dollar coin. I may try and get it talking this weekend so I can take it for a ride in my car and check it out.

    The boat is in the cradle, so further water testing may have to wait until spring. April is 20 weeks away. It is going to be a long winter.

    I'm already plotting out a long sailing trip for this next summer.

    Having an autopilot has changed my perspective. :)

    Jay:
    >>your probably going to need a TTL <-> RS232 converter for the serial.
    I think the serial ports on this PLC are all 5 volts, so I should be ok. But I need to check that so I don't blow the board.
    Thanks for mentioning that!


    Dave
     
  6. X7JAY7X
    Joined: Jun 2011
    Posts: 28
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Toledo, OH

    X7JAY7X Junior Member

    I have never seen that. So these are serial ports that cannot be used for programming or communicating with other RS232 devices? Strange.
     
  7. Tim B
    Joined: Jan 2003
    Posts: 1,438
    Likes: 59, Points: 0, Legacy Rep: 841
    Location: Southern England

    Tim B Senior Member

    Nothing unusual in that. The three common specs are 3.3v, 5v and RS232 (+-12v?) just use a max232 to convert signal levels.

    Tim B.
     
  8. X7JAY7X
    Joined: Jun 2011
    Posts: 28
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Toledo, OH

    X7JAY7X Junior Member

    Tim, I was referring to a PLC. RS232 is defined as the logical states being -3 to -25 and +3 to +25.


    You do not need a MAX232 either. It can be done with transistors. Check out RS232 shifters. Common RS232 is +12/-12 but some laptops I heard are +5/-5.
     
  9. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    http://en.wikipedia.org/wiki/RS-232

    Look down the page at voltage levels.

    RS232 has gone the way of many standards - it is like the original, but not quite the same.

    I've plugged into many 5 volt RS232 ports with my laptop (via a USB to RS232 converter which also probably only does +/- 5v). The original compass I have only puts out 5 volts on the RS232 port also. Actually I think that NMEA 0183 specifies a 5 volt RS232 connection.

    I usually don't pay much attention to port voltages on RS232 unless something does not work.

    Still I want to make sure I don't pop the compass.. I just need to check carefully so I don't blow it. Better to be safe...

    Dave
     
  10. X7JAY7X
    Joined: Jun 2011
    Posts: 28
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Toledo, OH

    X7JAY7X Junior Member

    I think you guys are misunderstanding what I am saying. TTL is NOT RS232. Even if RS232 is +/-5v, TTL is 0-5v. Dave, you will need some sort of converter. You can talk 5v RS232 to 13v RS232 and vice versa. That doesn't matter. Check out http://www.sparkfun.com/tutorials/215

    That is fine as long as all the devices are RS232.
     
  11. frasco
    Joined: Jun 2011
    Posts: 41
    Likes: 1, Points: 8, Legacy Rep: 15
    Location: Finland

    frasco Junior Member

  12. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    Jay,

    Thanks for pointing this out.
    http://www.robot-electronics.co.uk/htm/cmps10ser.htm

    I missed that this is a TTL level serial link. Yep, I need a level shifter chip in there. I really didn't want to have to do that. But I do have some level shifter chips here that I use to adapt TTL level encoders to RS422 levels. If I use one leg of the RS422 end and ground the other, I might be able to get this board talking so I can test it. Chips are cheap, but this compass is getting more complicated.

    But I already have it, so I might as well wire it up and see how it works.

    Dave
     
  13. Dave911
    Joined: Aug 2011
    Posts: 70
    Likes: 2, Points: 0, Legacy Rep: 16
    Location: Indiana

    Dave911 Junior Member

    Frasco:

    I think the actuator I have is rated at 3 amps at 12 volts at full load. I would look for some heavier relays that what you quoted. 6 amp contacts would not be too heavy. An H bridge would work, but that will not be easily serviced if the actuator motor fails and blows out the H bridge.

    Dave
     
  14. X7JAY7X
    Joined: Jun 2011
    Posts: 28
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Toledo, OH

    X7JAY7X Junior Member

    Frasco, I would go with an H-Bridge. Some have overcurrent and overtemp protection so the chance of blowing them is slim. The relay is a cheap option but I would go solid-state over a mechanical relay. There are tons out there, but to start check out what Pololu has.
     

  15. zorbas
    Joined: Nov 2011
    Posts: 2
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Finland

    zorbas New Member

    Hello,

    I have been planing to build my own autopilot for a while now. Mostly because I think it would be fun. I have everything more or less sorted except for the drive system. Since it will be operating directly on the quadrant below deck I need to find a linear actuator that has a clutch. But I simply can't find one.. any ideas?
     
Loading...
Similar Threads
  1. Deering
    Replies:
    2
    Views:
    1,804
  2. Bumbleguy
    Replies:
    3
    Views:
    3,309
  3. missinginaction
    Replies:
    1
    Views:
    4,981
  4. sv alexandra
    Replies:
    2
    Views:
    3,478
  5. missinginaction
    Replies:
    1
    Views:
    1,954
  6. missinginaction
    Replies:
    2
    Views:
    2,076
  7. Jdawg
    Replies:
    9
    Views:
    2,606
  8. Tony.R
    Replies:
    0
    Views:
    2,104
  9. Steve W
    Replies:
    0
    Views:
    1,754
  10. cal_d_44
    Replies:
    0
    Views:
    2,105
Forum posts represent the experience, opinion, and view of individual users. Boat Design Net does not necessarily endorse nor share the view of each individual post.
When making potentially dangerous or financial decisions, always employ and consult appropriate professionals. Your circumstances or experience may be different.