3689591341?profile=original

For anybody interested in improving the range of your FPV and the quality of the signal (and still stay FCC legal), and antenna tracking could be for you. After looking around for a 'stock' solution I decided to build one myself. Above is a photo of the final product.

I am using the 5.8Ghz band for my FPV configuration, and this keeps the antenna small and the entire package very compact and portable. There are two stock full-size servos and a servo base that I purchased from ServoCity.com.

I will not say that this solution is 'cheap', but it is very effective. I have yet to fly my plane out of range where I lose the  video so I cannot say what the exact range is, but I have not gone beyond 2 miles using a 500mw transmitter. The receiver antenna is a spiral RHCP (Right-hand-circularly polarized) antenna which has 16 turns! With this configuration the gain is 16dbi, which is excellent, but it's also very directional, and hence the need for the tracker. 

The total cost of this rig was about $280 (plus the work to assemble it).   Half the cost is the servo and the servo mounts and gears. The other half is the antenna and the Arduino. 

The link to the antenna is here (ReadyMadyRC). There are a number of other antennas that will work with this tracker as long as the footprint is not too big, but for 5.8ghz this is usually not an issue. To attach this antenna to the servo, I simply used a strip of Velcro so it can be easily removed. It is light enough that the Velcro holds it perfectly.

Here is the parts list for the servos: (ServoCity.com)

Qty  Description                             Unit                Amount
--------------------------------------------------------------------------------
1     (DDT500F) Direct Drive Tilt (Futaba)   $24.99              $24.99
       * Weight: 0.22 lbs. each

1     (SPG5485A-BM-36005U) Bottom Mount      $99.99              $99.99
         Servo Power Gearbox - 360 Degree
         Rotation
       * Weight: 0.62 lbs. each
       * Option: Servo is HS-5485HB          $24.99              $24.99
       * Option: Ratio is 5:1 Metal Gears
       * Option: Kit is Unassembled

1     (FUTM0718) (03.06.02) S3072HV Servo    $39.99              $39.99
       * Weight: 0.18 lbs. each

4     (91772A146) 6-32x3/8 inch  Pan Head    $0.17               $0.68
         Phillips Machine Screws (Stainless
         Steel)
       * Weight: 0.01 lbs. each

--------------------------------------------------------------------------------
     Total Shipment Weight: 1.23 lbs.   Subtotal:                $190.64
                                        Shipping & Handling:     $6.99
                                        Total:                   $197.63

You can choose different servos if you prefer to spend the money (or go on the cheap), if you can find them elsewhere, they are just standard size servos.  

You can also buy the kit with the servo included and pre-assembled, (additional $30 cost). Here is a link to the servo kit

If you are not good with a soldering iron, pay the extra. You will need to disassemble one of your servos, disconnect the potentiometer  wires, and re-solder them to the external one supplied in the gear box. The external feedback will allow your tracker to move 360 degrees in the azmuth. 

Also, I chose the 5:1 gear ratio, and this seems to work very well, even at full speed, there is no jerking and the tracker tracks the plane perfectly. A lower ration could make it jerky, but it may also work. 

Assembling the servo box is not too difficult but will take you about an hour (plus wiring if you buy the bare kit). I would suggest paying extra for the pre-assemble servo base as I found modifying the servo to be an 'advanced' activity, however I was able to pull it off without losing parts or damaging the servo.  All the instructions come with the kit, so I will not go into detail here on how to assemble the pan/tilt box.

The assembled serve pan/tilt will should look like this:

3689591437?profile=original

Part 2: The Arduino and Misson Planner communications to control the servos

Now comes the fun part. Controlling the servos. I am using a standard Arduino Uno board which you can purchase just about anywhere. Here is a sample link, Arduino Uno that cost $25. 

I also added the 'Servo Shield' to my Arduino, however I think it's possible to just wire the pins directly to the Uno without the shield, but the shield has the standard servo pins.  Here is the link to the servo shield.

To connect the servos to the Arduino, just use the standard connectors that come with the servo. No wiring necessary if you use the Servo Shield. You can pick any servo port on the Arduino, just take care to make sure the software is using the pins that you have selected to control the servos.

The ground wire on the servo (usually black or brown) should go toward the "G"  and the signal side (usually yellow) goes to the "S" label on the Servo Shield. If you do not use the shield, you will have to solder the wires or install your own plug on the Arduino.

For the servo power, I have chosen to use the power supplied by the Arduino through the USB port and for two standard size servos, this seems to work fine with a lightweight antenna. If the load becomes too big, you could trigger the on-board fuse, so in that case you may consider using an external power supply for the servos. So far, I have not had an issue with just using the power from the Arduino and the computer's USB port which will supply 500mA. 

Here is an image of the shield (use the digital servo ports shown labeled GVS):

3689591450?profile=original

Connected to the Arduino (and enclosed in a metal case), the assembled unit looks like this:

3689591517?profile=original

Part 3: Make it work with Mission Planner:

So after all this 'hardware' assembly, you will want to test it out to see if it works with mission planner. BUT you will need some software to run on the Arduino.  Here is the source code that I used:

ArduTracker.ino

Everything is done over the Arduino serial port when Mission Planner connects to the Arduino. I picked to hard-code a serial port baud rate of 57600.

There are two lines of code that determine which pins on your board will control the servos:

pan.attach(9);
tilt.attach(10);

On my board, I used pins 9 and 10 which end up being the first two servo ports on the Servo shield. 

There is one line of code that controls the pan calibration that I figured out using trial and error and some calculations to make the pan go 360 using the 5:1 gear ratio:

   interpVal = ((interpVal * 10) / 37) + 50;

   pan.write(interpVal);

   

   The inputs (interpVal) are PPM values sent by Mission Planner. The hard part is done in Mission Planner as it computes the PPM servo values from the GPS coordinates. To make it work with this setup, you will need to 'tweek' the values for your servos and the gear ratio of the pan gear box. If you duplicate the setup I have described, you should be able to load the firmware into the Arduino and simply connect the Mission Planner and it should work (in theory!). 

Load the Mission Planner and go to the "Initial Setup" tab, and select "Antenna Tracker" as shown below:

3689591499?profile=original

Using the default values shown here, (and your serial port), you should be able to connect and control the servos using the 'Trim' sliders. If everything is working ok, you should see the servos move to their extreme positions (pan = 360 deg), and (tilt = 90). The tilt will go from horizontal to the ground, to vertical straight up. 

If all is well, then you can try it in the field. Just plug it in, and connect, and Mission Planner does the rest.

Happy flying!

E-mail me when people leave their comments –

You need to be a member of diydrones to add comments!

Join diydrones

Comments

  • Bravo. Creat post. Thanks
  • Great write up, thank you Patrick! How is the performance of the tracker in terms of response time to the gps info? I heard from some that there is a 1-2s delay time due from the GPS with this set up. Any info from someone with experience in this project is appreciated!

  • @Sam, in that case, I would use two geared servos. It will be a lot more expensive, but more robust for sure. You will need a wide base to hold the extra weight so it won't tip over, or mount it to a tripod.

  • Ok, for the tilt system would you recommend I should use a geared tilt system or just a stronger servo on the direct drive tilt.

  • @Sam, a 2kg antenna will work if you don't use the tilt servo. If you want it to tilt, you would need a more robust tilt mechanism. 

  • What would be the recommended maximum weight you can use on this tracker? Ive been looking at using a 2kg antenna on this tracker but if thats to much I might have to change.

  • Scan mode is a mode in mission planner that you can put the antenna tracker in. It's under the flight data tab under actions. Not sure what else I can do with this thing, I'm at my wits end. I'm not sure what type of servos to use if these are correct.
  • @Keith, what is 'scan mode'? Seems like there is a software issue if the servo actually moves with some command. 

  • It doesn't pitch at all. Not even with the sliders. The only time it pitches is in scan mode
  • @Keith, I don't know much about ardutracker, so I need to study up on it. I am assuming that it is controlling the servos in the same way as the basic arduino that I am using so it should be similar, except for the data stream.   If the pitch servo output is not showing anything it sure looks like a software issue.  For my setup, I just use the slider on the tracker page to test the pitch servo since you won't really know if it's tracking correctly until the UAV is airborne.  Does the pitch servo move at all when you test it? 

This reply was deleted.