tracking an aircraft for video

I am an aerobatic pilot and I would like to make an automated pan/tilt system to track my aircraft during flights.

I will need a microcontroller, gps/ins, and some kind of radio on the aircraft.

I will need a pan/tilt, microcontroller, gps/ins, and a receiver on the ground.

I am a programmer and familiar with arduino and other microcontrollers.

But I do not know much about the available options for the radio and gps/ins systems.

My needs for the radio:

  1. Must be able to transmit position information at 30Hz
  2. Must be able to transmit position information at least 1.5km (1 mile)
  3. Must be able to transmit in any orientation
  4. Transmission must be powerful enough that the aircraft does not blanket the signal.

My need for the gps/ins:

  1. Accurate within a few feet on all three axes.
  2. Update at 30Hz or higher

Thanks for any advice!

Jim

Will the pan/tilt system be on the ground?

I suspect the only way to achieve what you want is by using a camera with image recognition software which is far beyond the capability of an Arduino.

An ESP-32 cam can do face recognition so it may be powerful enough but I suspect it would be easier to do this sort of project with a laptop and all the powerful software that is available for PCs

...R

The fastest refresh rate on any GPS I've owned was 10 Hz. On a good day, you might be able to get lat & long to within six feet, but altitude is notoriously inaccurate.

So, I don't think your project is very practical, at least if you want close up video of your aircraft. As Robin2 says, perhaps image recognition is the way to go, but that's not really an Arduino thing. You might use a GPS to give the software a starting point for where to point the camera though.

Interesting project, but decidedly not trivial.

A longer response just got eaten. I’ll wait to see if it reappears, in the meantime I can repeat

Nice work! I think you’ll always do better with a real (hunan) camera crew who know what you’re gonna be up to.

a7

This may interesting

https://forum.arduino.cc/index.php?topic=706701.0

a7

There are antenna pointing systems to increase the comms range of autonomous aerial vehicles (UAVs) what some call drones that could probably be adapted to point cameras. The accuracy required for pointing an antenna is probably less than that needed for video, but the antenna pointing systems might be a good starting point.

The antenna pointing systems use the location of the UAV broadcast back to the base station via the telemetry system. The update rate of the GPS could be less than 30 Hz and still be used as Kalman filters allow for different sampling rates for the different sensors.

How much are looking to spend? I ask because you could use an real time kinematic (RTK) GPS system to obtain a much higher fidelity location. Check Sparkfun if you are interested in RTK as they have some affordable systems.

A hybrid system using the location-based pointing system to get the plane within the field of view of the imager and then use video processing to get the plane in the center of the FOV. One possible problem with an image-based system is the plane will look very different depending on the relative orientation that the imager sees. Using artificial intelligence might get you around the orientation issue at the expense of additional computational horsepower needed. As stated by others a standard Arduino does not have the horsepower to do video processing.

I would probably start with a UAV antenna pointing system and see if that gives you the required accuracy and implement RTK if it does not, this is assuming you want a robust solution and are willing to pay for it. One benefit of the UAV solution is an autopilot could be used on the plane just to provide the comms and location information with a base station on the ground. The autopilot would not have any connectivity to the planes controls. The software for the autopilot, base station and pointing system is all open source.

Maybe this helps,
wade

Robin2:
Will the pan/tilt system be on the ground?

yes

I suspect the only way to achieve what you want is by using a camera with image recognition software which is far beyond the capability of an Arduino.

I've done a lot of image and video processing work and it is doable but there are complicated problems to solve.

Check out my software, MotionCrop: Jim Bourke Airshows

Jim

alto777:
https://m.youtube.com/watch?v=YQLRr2OG3F0

Nice work! I think you’ll always do better with a real (hunan) camera crew who know what you’re gonna be up to.

Thank you! That was a fun flight.

A real human will be better in many ways but sometimes I can't find someone willing to sit out in the sun and point a camera at me. :slight_smile:

wwbrown:
How much are looking to spend? I ask because you could use an real time kinematic (RTK) GPS system to obtain a much higher fidelity location. Check Sparkfun if you are interested in RTK as they have some affordable systems.

I'm happy with a budget of $5,000 +/- a few thousand.

A hybrid system using the location-based pointing system to get the plane within the field of view of the imager and then use video processing to get the plane in the center of the FOV. One possible problem with an image-based system is the plane will look very different depending on the relative orientation that the imager sees. Using artificial intelligence might get you around the orientation issue at the expense of additional computational horsepower needed. As stated by others a standard Arduino does not have the horsepower to do video processing.

I have a lot of opencv experience and have written some software that already does pretty much what you describe, but it takes a lot of computing power to do it in real-time and is unfortunately not practical. I need something that I can pack up with me and take in my airplane which has very limited baggage space.

I would probably start with a UAV antenna pointing system and see if that gives you the required accuracy and implement RTK if it does not, this is assuming you want a robust solution and are willing to pay for it. One benefit of the UAV solution is an autopilot could be used on the plane just to provide the comms and location information with a base station on the ground. The autopilot would not have any connectivity to the planes controls. The software for the autopilot, base station and pointing system is all open source.

Maybe this helps,
wade

It all helps a lot because I had somehow missed that sparkfun had an RTK solution that seems reasonable.

But one thing I still need help with is the radio to communicate the position information to the base station.

Thank you!

Jim

But one thing I still need help with is the radio to communicate the position information to the base station.

The u-blox c94-m8p is a self contained RTK-GPS setup, with a built in radio link that can be used to report the position of the rover, relative to the base station. It is a bargain.

Extensive performance review.

jtbourke:
I'm happy with a budget of $5,000 +/- a few thousand.

I have a lot of opencv experience and have written some software that already does pretty much what you describe, but it takes a lot of computing power to do it in real-time and is unfortunately not practical. I need something that I can pack up with me and take in my airplane which has very limited baggage space.

It all helps a lot because I had somehow missed that sparkfun had an RTK solution that seems reasonable.

But one thing I still need help with is the radio to communicate the position information to the base station.

Thank you!

Jim

Radio connectivity is a normal part of the autopilot as the it broadcasts at the minimum telemetry to the base station and the ground station transmits instructions to the AP in the air.

The heavy openCV computations will be done on the ground as that is where the pointer is, so you room and power to support a GPU or two if need be.

jremington:
The u-blox c94-m8p is a self contained RTK-GPS setup, with a built in radio link that can be used to report the position of the rover, relative to the base station. It is a bargain.

Extensive performance review.

I had not seen the u-blox RTK solution you posted, I would be hard pressed to go with Sparkfun's product as you might as well go the King of GPS, ublox, at that price point.

In the performance review I linked, the author mentions that the radio link works perfectly at remarkably long range, at least 13 km line of site. It seems that the RTK solution is occasionally lost, though.

I've not tried any range tests like that, but in my short range tests, the performance of the setup is awe-inspiring.

Perhaps using a RPi with Tensor Flow Lite:

GitHub - EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi: A tutorial showing how to train, convert, and run TensorFlow Lite object detection models on Android devices, the Raspberry Pi, and more! as a detection thingy?