PI Pico Flight Controller on QuadCopter with Video LiveStream to Phone/PC on same network (WiFi)

February 25, 2023, 14:37

lastlong

My idea was to build a drone that would be running some CNN network on the image from the camera. The first step is to get a drone up and running with RF Controller! Second step to attach a camera and video feed! Third step is to process video input with algorithms and get desired movement response. So I have been doing some research one of which is your videos and I have seen the basic parts of drones: 1) Brushless Motors x4 2) 4 ESC or a 4in1 ESC 3) PDB 4) FC 5) Reciver 6) Transmiter This is basic drone setup with no vision. Which is the picture shown below! (1st Picture) I was woundering regarding the FC (Flight Controller) as they are pricey how hard is it to get it up and running and functioning on your own? The Flight Controller consists of Pi Pico and Mpu6050, Qmc5883 Modules. These calculations can run I have seen a similiar project! Could I also use GPS and can the Pico handle its calculations? The Reciver and Transmiter can be bought although ill build one myself with Arduino. All other is bought as parts, machined parts not easy to make urself!

andy_s

you are completely forgetting about any and all stabilisation.

andy_s

gyro, compass, altimeter, etc .

andy_s

you cannot operate quadcopter without atleast gyro.

andy_s

As for controller, look up Naze32. They are cheap, reliable and have variety of firmwares & connectible accessories.

andy_s

<@329366633359343646>

andy_s

you can feed it from pi acting as wireless bridge, but i wouldnt, i would use some "proprietary" radio. DMX, or cheaper FrSky

andy_s

pi is not realtime. If it gets stuck, you are screwed.

andy_s

you need something without OS for critical systems and control surfaces (or in copter case basically rotor control) IS the most critical system.

andy_s

you can even 3Dprint body

lastlong

THE SECOND THING IS THE CAMERA FEED! Ways of where to run my CNN algorithms: A) Embedded - RPI 3 or 4(max 5fps~Slow). B) WAN - local wireless where its video feed is conected either to GPU ( home setup) or mobile chip via wireless sharing. BEST OPTION C) INTERNET - Everywhere present and can always connect to GPU! STRONGER ALGORITHMS! DOWNSIDE is the Latency of the network which would be really slow sometimes and dependent either on 4G or WiFi So I'll either stream the Pi Camera stream via the RPI 3/4/Zero. Zeros can be nowhere found and the next best option is the 3 if not for the perfomance of 4 if embeding and later adding of modules with GPUs will be added. But 3 and 4 is a bit heavy for drones etc, not that much but it costs performance. But that aside for now. Can i video stream maybe over the PICO to get a stable 30 fps? The resoultion must not be great but the higher the better. Or is the RPI Pico not suited for camera feed and is not strong enough? I thought of broadcasting the video either on a WLAN where it is a local network so there is minimum Latency ~5ms. The second option is to send live video over internet, but that would have a large latency probably of >100ms for the command to return from the CNN Convolution Matrix Multiplication Algorithm back to the device. So what is your suggestion for the video stream, and what device is capable of Video Streaming in how good of a quality?

lastlong

But the problem i have is mostly with the video transfer.

andy_s

and that will cost more, than naze32.

andy_s

video transfer is usually done on 5GHz.

andy_s

since most if not all RC controllers are 2.4GHz

andy_s

ye, but naze has everything inside.

lastlong

which have differently written scripts and thread properties

andy_s

minus radio.

andy_s

sure 🙂

andy_s

naze is quite reliable

andy_s

only issue it has is with built-in altimeter. If you want to rely on it, make sure to cover it with black, non-transparent, but porous material that is not touching said sensor.

andy_s

it is prone to heat/light spikes and if you for example fly out of shadow to sunlit area, your copter may suffer altitude changes. Massive ones.

andy_s

but if you prevent light & heat from sun to affect it, you're cool.

andy_s

in combination with NMEA GPS receiver you can do sub-meter stabilisation.

andy_s

what country are you in?

andy_s

ah

andy_s

then go nuts

andy_s

no regulations there 😄

lastlong

Hahahahaha

lastlong

True

andy_s

here you cannot fly FPV

andy_s

you have to go VFR

andy_s

as for radio...

andy_s

go with FrSky.

andy_s

namely Taranis +

andy_s

best budget radio

lastlong

I mean here you cant actually either cause the laws are from the 70s where non corporation aka people cant have flying cameras etc because the Helicopters were all state owned xd

lastlong

But no one cares

andy_s

you can even buy a set with receiver with telemetry.

lastlong

Yeah yeah ik that all

lastlong

but wanted to do a build on my own to learn cool stuff and figure it out

lastlong

thats why I was asking

lastlong

Personally the cheapest video LiveStream RPI is Zero and then the 3 and 4? RPI Pico cant stream?