Subject: Cheap auto pilot
From: Rotary Engine
Date: 3/1/2007, 8:09 AM
To: AARotary Engine


This $30 PICAXE board can be used to build a cheap digital auto
pilot. You can use an RS232 input from a GPS
with a NEMA 1083 output and control a model airplane
servo connected to an aileron trim tab.
The electrical connection from the PICAXE to the
servo could not be easier.

The servo shown puts out 20 inch pounds of torque.

GPS NEMA 0183 data out looks like this second jpg.
This ASCII data is sent out ever 2 seconds from the GPS.
Any cheap $89 dollar GPS with NEMA interface will work.
Most have the interface.

The job of the PICAXE is to read the heading in from the
GPS and compare it to a heading entered into the PIXAXE by
you using a single push button. Fly a steady heading and push
the button to record that heading in the PICAXE. From now on the
PICAXE will hold the heading. The numbers in this case are
181.9 degrees. (Field 8) These ASCII character codes are converted
to a binary number and this is added to or subtracted from
the preset initial heading binary number. The difference
forms a pulse width sent to the model airplane servo on
the aileron trim tab. A simple programming job. It does
this every two seconds. The rest of the GPS data is ignored.

You could use a separate PICAXE for altitude hold and direction
because they are so cheap. The altitude hold would work much
the same way only it would read a Free Scale pressure sensor
every few seconds and control a servo on the elevator trim tab.

-- 
Paul Lamar ...No rotor no motor.


Neat! I have to get used to the idea of a single-job computer. :)

Doc Custer
Retired Software Engineer and sometime Audiologist



The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Copyright 1998-2006 All world wide rights reserved.