Raspberry Pi Flight Controller: Hardware Review

  Рет қаралды 31,966

Tim Huff

Tim Huff

Жыл бұрын

This video shows the basic hardware needed to create a Raspberry Pi flight controller.
Hardware Components:
RadioMaster TX16S: www.radiomasterrc.com/product...
FrSky Taranis Receiver X8R 8: www.frsky-rc.com/product/x8r/
Buck Converter: www.amazon.com/dp/B07XXWQ49N?...
Raspberry Pi 4: www.raspberrypi.com/products/...)\
ESC (Electronic Speed Controller): www.amazon.com/gp/product/B07...
Servos: a.co/d/2zQ9lRW
Git Hub Repository for Computer Vision Flight Controller:
github.com/timmarkhuff/horizo...
#python #opencv #drone #rcplane #computervision #robotics #aviation #fpv

Пікірлер: 60
@AerialWaviator
@AerialWaviator 5 ай бұрын
A fascinating example of applying computer vision. Thanks for sharing details and posting the code.
@ja_ja_wunderbar
@ja_ja_wunderbar Жыл бұрын
👍can't wait for the next part. 😊
@hamzaehsan404
@hamzaehsan404 10 ай бұрын
This was amazing. I have some experience wit computer vision and drones but needed a little guidance when it comes to hardware. I am trying to work on rasberry pi powered autonomous check point script for my aeroscout.
@MrTully
@MrTully Жыл бұрын
This is so cool!
@ChantOfSpirit
@ChantOfSpirit 4 ай бұрын
Tim, good job!
@Twitch-Lord
@Twitch-Lord Жыл бұрын
i love this channel
@BooDevil65
@BooDevil65 Жыл бұрын
Awesome, I must try this! I do vision systems for defect detection professionally, and at home have an unused rpi4, a brand new pusher plane kit that I got 2 days ago, and an extra GPS receiver 😁 Keep up the good work!
@justadude8716
@justadude8716 11 ай бұрын
lol I'm in the same boat as you!
@bernardhfox
@bernardhfox Жыл бұрын
Excellent!
@StuartRobinson123
@StuartRobinson123 11 ай бұрын
awesome video thank you -- looking forward to part 2!
@timmarkhuff
@timmarkhuff 11 ай бұрын
It's coming soon! Stay tuned
@speechpill
@speechpill 2 ай бұрын
​@@timmarkhuff😢
@andreyl2705
@andreyl2705 10 ай бұрын
nice project) ty
@tenns
@tenns Жыл бұрын
you can use ELRS with an sbus(i think it's the protocol on the RX output side) library if you want more range and consistancy, and want to reduce weight. A bit of a tangent to your goal, just in case you need it! You could also get a pwm ELRS receiver, but that's more than 1 wire, but you're using the RX as PDB so might be a better option
@farkhodkhikmatov4738
@farkhodkhikmatov4738 Жыл бұрын
i cant believe its so simple!
@elektron2kim666
@elektron2kim666 8 ай бұрын
Thanks. I want to do this on some level with a Pico/MMBasic and already have a PWM Throttle function similar to a tester. Some sensors should be able to provide "something" to start with and flying in a straight line for some time would be a pass.
@shivavarunadicherla
@shivavarunadicherla Жыл бұрын
Your skill and interest in this field is amazing. I only have an esp32 and was waiting for buying a raspberry pi but the shortage ruined it. So I cant replicate it ;( Cheers on the good work
@Willy_Tepes
@Willy_Tepes 11 ай бұрын
Same principle. You can do this with an Arduino.
@qkb3128
@qkb3128 8 ай бұрын
Love it would like to see the pi zero 2w or the zero
@janoshorvath9430
@janoshorvath9430 8 ай бұрын
Extremely cool! Is there any reason not to use normal IMU? Looks bit more challenging and prone to fail in case of poor visibility.
@charimuvilla8693
@charimuvilla8693 10 ай бұрын
This is very promising! First time I see computer vision on an RC plane. I wonder how more complex the software can get if you feed the footage to a laptop and perform the computer vision there.
@timmarkhuff
@timmarkhuff 10 ай бұрын
Or what about putting a more powerful computer on the plane, like a Jetson. I might go in that direction at some point
@nakilakeddys.7571
@nakilakeddys.7571 7 ай бұрын
Hello, im from the philippines, i hve a question on the flight computer. Is it good to use raspbery pi or arduino?
@choasisgoated
@choasisgoated 29 күн бұрын
Hey is part 2 coming?
@narimanfrokawan7729
@narimanfrokawan7729 22 күн бұрын
nice projected
@GhostRyderFPV
@GhostRyderFPV Жыл бұрын
Future Ghost is back, after ingesting the rest of the awesome: You're doing this with a Pi Cam 2?!!! I assumed you had the mythical HQ Module with a long-ish lens (the cam 2 is 62 degrees FOV, but the discriminator shows about 10 degrees of sky and horizon, no?). Sorry, this is absolutely fascinating. Last question, I promise.
@timmarkhuff
@timmarkhuff Жыл бұрын
I have an HQ camera and I originally intended to use it for this project, but I learned two things: 1) it’s very heavy with its lens, not good for flying on small planes 2) the normal RPI camera captures plenty of detail for what I am trying to do. No need for HQ. Of course, it might be nice to have an HQ camera just to get better video of what I am doing, but it won’t make the program run any better. The FOV of the Camera v2 is 48.8 according to the documentation. The horizon detector uses this value to calculate the pitch.
@GhostRyderFPV
@GhostRyderFPV Жыл бұрын
@@timmarkhuff Holy crap, I saw the new Global Shutter Camera from Pi, and thought of your project. Not sure if your system suffers from rolling shutter, or Jello, or any CMOS specific issues, but take a look: kzfaq.info/get/bejne/Z9hpdNuZqMDHnJc.html
@Willy_Tepes
@Willy_Tepes 11 ай бұрын
@@timmarkhuff The HQ camera is heavy considering what most people would use it for on a plane. As a downward looking camera on a larger motorized glider, it would make sense for things like object detection and tracking. Lost sheep and such. ;)
@Willy_Tepes
@Willy_Tepes 11 ай бұрын
So you are using one voltage converter for the Pi and one for the receiver? How many amps does the Pi actually need? You can easily get 3 amps out of a esc with bec. Size and weight does not seem to be an issue here, but this setup could easily lose over half it's weight with some planning.
@timmarkhuff
@timmarkhuff 11 ай бұрын
Thanks! I'll look into that
@IgorWolkov
@IgorWolkov 2 ай бұрын
@timmarkhuff could you please explain how do you stream the video from the camera connected to RPi? Thank you.
@timmarkhuff
@timmarkhuff 2 ай бұрын
It’s a raspberry pi camera v2 connected directly to the raspberry pi. I used cv2.VideoCapture to interface with the camera
@cacanghoihoi3005
@cacanghoihoi3005 7 ай бұрын
Dogfight Blick😮😮😮
@mrmoonrc
@mrmoonrc Жыл бұрын
👍I looked at the sources. seems like I might dare. but where do i choose the pins for the servos etc.? Didn't find this in the GitHub sources. thanks.
@timmarkhuff
@timmarkhuff Жыл бұрын
Thank you for your interest in the project! The GPIO pin numbers are passed into the TransmitterSwitch and ServoHandler objects in main.py. Please note that the version on GitHub is a slightly older version than what I use in this video. The version you see on GitHub does not use SBUS, but rather reads each output from the receiver using different GPIO pins. I plan to have the updated SBUS version of the code up on GitHub soon, but it still needs more work at this point.
@mrmoonrc
@mrmoonrc Жыл бұрын
@@timmarkhuff thanks! So I should wait...
@timmarkhuff
@timmarkhuff Жыл бұрын
@@mrmoonrc I would wait. The next version will be better and easier to install and deploy.
@mukeshbaskaran2557
@mukeshbaskaran2557 22 күн бұрын
Are you not controlling the thrust (i.e speed of your motor) using raspberry pi?
@timmarkhuff
@timmarkhuff 22 күн бұрын
I am not. Haven’t figured out how to measure airspeed yet, so I wouldn’t be able to control throttle
@smol2844
@smol2844 4 ай бұрын
How would I go about finding a plane that does not come with a receiver or anything?
@timmarkhuff
@timmarkhuff 4 ай бұрын
Search for “plug and play” airplanes
@SzybkiPolonezGSI
@SzybkiPolonezGSI 9 күн бұрын
Great stuff man, Im currently working or should say sstart buying hardware for it and I am not too familiar with the electronic, however even if I crash this I'd have some joy on working with that. So in theory I can have one LiPo Battery for the whole setup meaning, servos, ESC and motor, pi controller, however this needs voltage converter for pi and servos right ? I My limit for motor is 5s and they are pretty rare , however if I use one 6s battery for everything voltage would drop down eventually and should work ok, another options is larger propellers. My ESC is 50A and engine is 1100 KV and 911W. initialy I was thinking to only use one battery for ESC and motor and another setup for the rest, but now I think that minding the weight it may be not ideal. Please just be aware that I am completely amatour and still leaarning this by having a goal to do something working 🤣
@timmarkhuff
@timmarkhuff 9 күн бұрын
If weight is a consideration, getting a buck converter to convert the voltage for your raspberry pi is the way to go
@SzybkiPolonezGSI
@SzybkiPolonezGSI 9 күн бұрын
@@timmarkhuff Thanks :)
@ja_ja_wunderbar
@ja_ja_wunderbar 11 ай бұрын
Hi, are you still active in the project? Will there be another part/update? Thank you! :)))
@timmarkhuff
@timmarkhuff 11 ай бұрын
This project has been on the back-burner for a bit, but I’m getting back into it now. I hope to have a new version available soon that controls the rudder and reads SBUS packets from the receiver. Stay tuned!
@jebeandiah
@jebeandiah Жыл бұрын
how hard would it be to use crsf instead of sbus
@timmarkhuff
@timmarkhuff Жыл бұрын
I’m not as familiar with that protocol, but in theory it should be possible. I found a Python library that can read SBUS. Perhaps there is something like that out there for CRSF, or if not, perhaps it could be created.
@mikenomatter
@mikenomatter Жыл бұрын
at last you can use CRSF to SBUS converter from Matek or any other
@alexanderfedorov7890
@alexanderfedorov7890 Жыл бұрын
@@timmarkhuff its rather simple. buzz trappy for spec pdf, takes 100 lines of code max.
@tenns
@tenns Жыл бұрын
is ELRS sbus or CRSF on the RX output ?
@tenns
@tenns Жыл бұрын
never mind its CRSF
@guckesksk5895
@guckesksk5895 11 ай бұрын
Still waiting for software part.😢
@timmarkhuff
@timmarkhuff 11 ай бұрын
It’s coming soon! Within a couple weeks I plan to have a version that’s ready to release
@juan4972
@juan4972 Ай бұрын
You have code sbus?
@timmarkhuff
@timmarkhuff 15 күн бұрын
I was working on a proof of concept here: github.com/timmarkhuff/horizon_detector/tree/sbus, but it's not really complete. The code I wrote uses an SBUS library provided here: github.com/VermontCoder/read_sbus. I have also had some luck using this C++ SBUS library: github.com/Carbon225/raspberry-sbus. Let me know if any of that is interesting, and I might be able to make a video on it.
@peterboy209
@peterboy209 Жыл бұрын
Subscribed. I should revive my codingskills...
@timmarkhuff
@timmarkhuff Жыл бұрын
Absolutely!
Autonomous Flight with a Camera: Horizon Detection Algorithm
10:08
The Difference Between a Drone Flight Controller and Flight Computer
7:18
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
This is how you destroy Raspberry Pi
9:10
Jeff Geerling
Рет қаралды 366 М.
My Longest RC Airplane Flight
10:28
Matthew Heiskell
Рет қаралды 276 М.
How to Stay Sharp Flying RC Planes, Without leaving Home!
18:03
Creative AlTone
Рет қаралды 1 М.
RC Remote Control Raspberry Pi Pico
15:46
Penguin Tutor
Рет қаралды 17 М.
New Product: The Navigator Flight Controller
5:11
Blue Robotics
Рет қаралды 85 М.
I took Taser Chess to Open Sauce
12:40
Everything Is Hacked
Рет қаралды 295 М.
How I made a Raspberry Pi Drone 😎
17:22
DIYLIFEHACKER
Рет қаралды 46 М.
How To Connect PixHawk to Raspberry Pi and NVIDIA Jetson
8:28
aka: Matchstic
Рет қаралды 33 М.
Rocket guidance and flight trajectory control
3:17
L Shang
Рет қаралды 1,4 МЛН
Flight controller basics for beginners
18:18
FPV University
Рет қаралды 10 М.
Опыт использования Мини ПК от TECNO
1:00
Андронет
Рет қаралды 743 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 18 МЛН
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1,1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 81 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,7 МЛН