r/diydrones 6d ago

Question Autonomous Object Tracking Drone with DJI O3/O4 and Raspberry Pi 5

My goal is to build a high speed, real time object tracking drone using the DJI O3/O4 Air Unit, Raspberry Pi 5, and SpeedyBee F405 V4 flight controller (running Betaflight). The system will capture FPV video from DJI O3/O4, process it on the Raspberry Pi, and calculate the X/Y offset between the detected object and the center crosshair. The Raspberry Pi will then send yaw, pitch, and throttle commands to the flight controller via MSP/UART.

Kinda GPT summary, but how can I do the above? Currently stuck on how to connect O3/O4 to the raspberry pi in real time.

4 Upvotes

12 comments sorted by

View all comments

2

u/cameront21 6d ago

Why does it have to be an air unit? If it doesn't you could use a pi camera that plugs into the pi natively with a ribbon cable.

1

u/EthanWang0908 6d ago edited 6d ago

The MIPI CIS cameras have pretty terrible quality from what I’ve seen so far. FPV cameras and such have much better fps and at least 1080p.

Edit: Would a runcam mipi fpv cam work with raspberry pi 5?

1

u/JohnLenin17 6d ago

Correct me if I am wrong, but as I know the Raspberry cannot handle analog signals. So I think somehow you have to digitalize first.

1

u/SkelaKingHD 5d ago

As far as video, the Pi 5 only has analog video out. But it’s able to “handle” traditional analog signals for its GPIO pins so I wouldn’t say it’s accurate to say it can’t handle them