Raspberry Pi Flight Controller: Hardware Review
ฝัง
- เผยแพร่เมื่อ 25 ก.พ. 2023
- 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 - วิทยาศาสตร์และเทคโนโลยี
A fascinating example of applying computer vision. Thanks for sharing details and posting the code.
👍can't wait for the next part. 😊
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.
Tim, good job!
awesome video thank you -- looking forward to part 2!
It's coming soon! Stay tuned
@@timmarkhuff😢
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!
lol I'm in the same boat as you!
This is so cool!
i love this channel
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
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
Same principle. You can do this with an Arduino.
Excellent!
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.
i cant believe its so simple!
Love it would like to see the pi zero 2w or the zero
nice project) ty
Extremely cool! Is there any reason not to use normal IMU? Looks bit more challenging and prone to fail in case of poor visibility.
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.
Or what about putting a more powerful computer on the plane, like a Jetson. I might go in that direction at some point
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.
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.
@@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: th-cam.com/video/1r9AxhCZclc/w-d-xo.html
@@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. ;)
nice projected
Hey is part 2 coming?
Dogfight Blick😮😮😮
Hello, im from the philippines, i hve a question on the flight computer. Is it good to use raspbery pi or arduino?
@timmarkhuff could you please explain how do you stream the video from the camera connected to RPi? Thank you.
It’s a raspberry pi camera v2 connected directly to the raspberry pi. I used cv2.VideoCapture to interface with the camera
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.
Thanks! I'll look into that
👍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.
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.
@@timmarkhuff thanks! So I should wait...
@@mrmoonrc I would wait. The next version will be better and easier to install and deploy.
Are you not controlling the thrust (i.e speed of your motor) using raspberry pi?
I am not. Haven’t figured out how to measure airspeed yet, so I wouldn’t be able to control throttle
How would I go about finding a plane that does not come with a receiver or anything?
Search for “plug and play” airplanes
Hi, are you still active in the project? Will there be another part/update? Thank you! :)))
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!
how hard would it be to use crsf instead of sbus
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.
at last you can use CRSF to SBUS converter from Matek or any other
@@timmarkhuff its rather simple. buzz trappy for spec pdf, takes 100 lines of code max.
is ELRS sbus or CRSF on the RX output ?
never mind its CRSF
Still waiting for software part.😢
It’s coming soon! Within a couple weeks I plan to have a version that’s ready to release
Subscribed. I should revive my codingskills...
Absolutely!
You have code sbus?
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.