Make Your Own Pixhawk Raspberry Pi Drone in 36 Minutes (2020) | The Ultimate Project Drone
Вставка
- Опубліковано 22 сер 2024
- Raspberry Pi drones are an amazing platform for tinkerers who want to get their ideas into the world. But they need a flight controller in order to work.
In this video we walk through how to set up a drone with the very popular pixhawk flight controller! These little boards are a little old, but are super cheap, still advanced, and very reliable (even more reliable than Navio2 raspberry pi drones).
--
-------------------
--------------------------------------------------------
Here is the link to build this drone: dojofordrones....
USE THE COUPON CODE 4G FOR $100 OFF!!
ONLY 9 COUPONS LEFT!!!
--------------------------------------------------------
-------------------
--
Here, we'll show you how to:
- Set up the Raspberry Pi+Pixhawk hardware
- Wire the RPI and Pixhawk together via a UART connection
- Flash ArduPilot firmware to the Pixhawk
- Set up the RPI SD card and dependencies
- Set up RPI OS to allow communication via UART
- Control the Pixhawk drone from the Raspberry Pi with MAVProxy AND a simple Dronekit Python script
3D Printable Parts Referenced in the Video:
- Vibration Plates:
github.com/eml...
github.com/eml...
- RPI Pixhawk Platform: drive.google.c...
Always keeping at least one eye open all the time, is a sign of a good pilot.
Hahahah I knew there had to be a good reason for my one eye blinking XD
I literally don't know how to say thanks to this person.
I was looking for a proper video in UA-cam about how to make my own drone and program it by python using raspberry Pi but i didn't find any proper video. But this man is legend. Lot's of love for you brother .
Hey guys support this man , talents like this deserves a lot more from us .
Love you 3000 ♥️
💯👍👍
Give this man an Award!!!
I will gladly accept the highly desired Nwanze award!!
I have so many people to thank. Of course my mother, the beautiful substance of caffeine, and so so many others.
Thank you, thank you!
Awesome blinking brilliant thanks for your kind stictoitivness....
@@thedronedojoyou forgot to thank Scott. Remember, if he hadn’t punched you in the back of the head that time in 4th grade you would have never got the firmware update with the drone interest script included. If that didn’t happen you’d probably be a run of the milll D14 v3 and you’d be doing what all the v3 D14’s are doing. Which is working as droid cops for the CCP.
Absolutely outstanding video, thank you. Just one small note - as at October 2021 - the Raspberry Pi headless operating system has SSH disabled by default, so the Putty session gets rejected. In case anyone else is having this problem, the solution is to add an empty text file called "ssh" (no extension) in the root of the SD card.
To clarify: I connected the Raspberry Pi via ethernet cable rather than wifi. This might make a difference(?)
P.S.... For Pixhawk 4 users... With all my peripherals, my pixhawk didn't have enough 5v current left to power my 4gb pi 4 (needs lots of power). I powered it via the same pins but directly from a 5v pad on the pdb... Worked great.
Such a nice and clean explanation, even going through the code.
Glad you found the video useful, Rotorhead FPV!
REALLY appreciate the way you have walked me throught this somewhat complex subject. So many tubers just whip through connections as if it is nothing and you spent time going through each connection in detail - many thanks. Definitely following your posts and I like the way you present your subjects. - Peter
Blinks with both eyes... see I’m human :) love the tutorial man!
Glad I didn't blow my cover... ;) Hahah glad you enjoyed it!!
^ See even my emojis can only blink with one eye
You are the most humane I have ever seen, don't worry about that. I know people are different and I fully accept those conditions. It is not a crime to be different.
Thanks for the kind words, Frosts Maker!!!!
Damping reduces amplitude of vibration. Dampening makes something wet.
The more you know XD
Would love to see some OpenCV / Vision application on top of the flight control stack!
I will be getting my Pixhawk into rover mode for UGV, can afford to crash my camera(s).
Hi there Mr. Spacely! We have a few videos on incorporating computer vision for precision landing, but will definitely consider some more OpenCV / Vision applications. Thanks for the suggestion!
@@thedronedojo it should be very good if you do more videos about open CV
fab project, i have all the hardware lying around so good to give this a go. thanks
Very nice!! Hope it goes well!
Hi could you plx help me in my project?
Ooooo pixhawk!!!! Very nice!
Thank you!!!
I like and appreciate your videos. Very informative. One suggestion - when plugging in the Dupont connectors if you leave the metal clip part facing out it makes it easier if you ever have to diagnose pins. Gives access for meter to connect into to confirm voltage or signal
33:10 I hate it when they say “smash”. Thank you for being different. Subscribed.
Thank you for being gentle to the subscribe button XD
This is masterpiece ! Have been searching on internet , trying to find ways to communicate to my omnibus f4 v2 pro via raspberry pi . Now I have some lead . Thanks man !
You're amazing man...
Thank you Dhanushka!!! Hope you find this video helpful!
Thank you for the Headless Raspberry Pi tutorial (about 19:00) amongst the other great stuff shown here. Excellent video, excellent craftsmanship!
No problem @Richard Vasquez! Glad you got some value out of this!
What an excellent step-by-step guide.
I'd love your next video to cover video streaming from the Pi.
Glad you enjoyed it Sarah! Thank you for the suggestion as well!
Yep I too want low latency video streaming....
Pixhawk videoo. I've been waiting for a long time. Finallyy :))
Glad we could come through for you Emin!!! :)
Dude, this is slick as s...
Also, awesome video.
Also, once you pointed out your odd blinking habits they were super apparent in the extro. But again, loved the video and excellent job presenting the info!
Thanks so much Super SLo!!! Glad you enjoyed the video. Just checking out of blinking both eyes rehab and they completely failed me ;)
This is awesome and so are you.
Thank you so much ninline2000
Great video, I have been actually researching info on this subject, your video is great and extremely helpful
Hi there Anarchy FPV! Really glad this video helped you out!! It's a great drone to build for sure.
Great video, and extremely helpful! I do believe that the wiring diagram of the rasp and pixhawk has the tx and rx wires reversed as to where they go. Thank you again!
Men, Thank you so much, you really are the goat, very helpful and inspiring!
Thanks @leo Bringer for that compliment! Glad you got some value out of this!
You crack me up!
Good video as usual sir!
Love your videos man. I appreciate you breaking it down for me. Basically changed my life. Been trying to figure this out for a long time. Only thing I ask is if you can wear a better colored beanie for visual purposes. Maybe try a purple and gold? Thanx, much love.
This video is indeed life changing, my young Padawan. Glad it could help. As for your beanie request, I have a personal policy where I only endorse greatness- and I can't seem to remember a single super bowl that purple and gold colored teams have won?
Really helpful video
Glad you found it useful!!
heh; was personally offended on nano use.
Nice walkthrough; saved me at least 5 hours of poking around.
Make for SWARM!!! That will be an awesome Christmas present!!!
Hmmmmm might just have to add this to the project list....
This man is Brilliant
i no smart i one blink ape
thanks... i needed this badly
how do i calibrate the motors and gps connected to the pixhawk?
Glad you enjoyed it! Here is a video on ESC/motor calibration ua-cam.com/video/l8rjjvAZvHM/v-deo.html
@@thedronedojo thanks again! what about the gps calibration while doing missions with mission planner
How would I go about doing this with a Pi 0? I prefer that system as it has a lower power draw - vital for solar
Super Video !!! I learned a lot and touched nice botton softly .
Glad you enjoyed it Tadashi!! Also, thanks for being kind and respectful to the like button XD
Fantastic info and details!
Glad you got some value out of this video!
Sub'd, nice tut. Especially liked the blinking section, although maybe a small suggestion. A separate camera showing you blinking at all times cuz when you're doing sections with only your hands on camera, we need to see that you're still blinking, with both eyes.
No cause then my single eye blinking will be further exposed!!!
We need full full tutorial about it if you can sir !!!! Explanation about every thing and tank you
Hi there Louay! I walk through every single little step in my course at this link, and I will help with any problem you may encounter! Hope this helps!
courses.dojofordrones.com/p/how-to-build-a-raspberry-pi-drone
Things get confusing with so many options, especially as things change and become obsolete..
(
ArduPilot
Pixhawk Px4
Multiwii->Baseflight->Cleanflight->Betaflight / EmuFlight / iNav
RaceFlight One -> FlightOne (FalcoX)
MissionPlanner -> QGroundControl
OpenPilot->Librepilot , DRonin
MavLink
)
Is there any set of hardware that works for both ArduPilot/PX4 and Beta/EmuFlight/iNav? From what I can tell there are 2 classes of hardware, the larger Pixhawk boxes, and the small-square-stacks (STM32F/H7 like the Speedybee F7V3, Mateksys H743, Kakute H7 V2).. so what setup would allow trying several firmware projects?
I understand Betaflight is popular among FPV racing, and ArduPilot and iNav for autonomous/waypoints, however I'm mainly interested in:
1) Autonomous Flying (Waypoint, Lua scripting, Return-To-Home)
2) Sport-Tracking/Obstacle Avoidance (like the Skydio2+)
3) FPV and free-style / flippy-flops
And how does a custom DIY build with any of the above compare to the features/performance of commercial offerings.. Eachine E520S , Skydio2+, Mavic Air 2S , or Yuneec Mantis Q?
Hi mate, Yes an update on what's obsolete and workarounds would be great, Its been awhile.
Dude! You are my hero!
Hahah glad to help, Angelo!
Drone Dojo Guy you rock!
Is it possible to control it via QGroundControl and joystick controller?
Hi there Emad, it definitely is!
Dude, You have got my attention :-) Amazing project !
Thanks so much Ruud! Glad you enjoyed the project!!!
Keep up the good work man👍👍
for those in 2024 examples
sudo apt-get install python3-pip
sudo apt install python3-future
Man that`s very good I hope there will be a second part abaut the transport mission ,,,,,, (Like)
Glad you enjoyed the video!
im a drone builder, ok you,ve got my attention
Hahah glad to hear it, Kyle Fpv!
heres a helping note - the wxgt4.0 is python- "the letter l" xm "and another letter l". (not 1's, It just took me 15 minutes to figure that out)
Thanks for that, Kayboku!!!
Love the video. So well explained!
Great video, nice project :-)
Thank you! Glad you found the video useful! :)
Go job...I'll check out your listing B.O.M...also nice to see a fellow Packers fan...GO PACK GO! ALL THE WAY TO SUPERBOWL!!! :)
Thanks, Todd! Also, sad face on the packers.... I'm getting tired of saying there's always next year!! Still salty about that one haha
Great explanation, keep going up and don't stop successful, great work 👍👍👍
Where do I get the DF13 to 6 pin Cable?
Hello, thanks for the video
Is your guide compatible with other flight controllers? Like for example omnibus f4 pro
It is, just did it with omnibus f4 pro v2 using uart 6 and raspi zero2
Thanks! Superb demo.
Thanks for the tutorial and I have a question: how could I access my raspberrypi to run the dronekit script before the drone takes off?
THANK YOU SENSEI 🙇♂️
Teacher make student master. Wax on, wax off my grasshopper.
Ok I'm beyond stoked to find this as I'm learning python (career related), bought my first 3d printer recently, and? I'm insanely interested in creating my own drones. You got mad game but, what freaks me out about this and my "low low budget" is sticky tape? Anyway, thanks so much, for ALL OF THIS.
Wow Jack, so this is the ultimate cross section of interests for you!! Awesome. Appreciate the compliments. I can see why some would be scared of the sticky tape mounting method, but that stuff is actually really robust- and best of all really fast to implement! Depending on what type of stick tape you use of course. I totally get those who would prefer more permanent methods however- especially if this was for an industrial application.
Awesome video. Could you also have a video showing a ROS based pi board controlling a Pixhawk quad
Ohhh I like that suggestion! I will highly consider that one! Thanks Ashish
@@thedronedojo Thank you. Eagerly waiting for that tutorial
dojoooooo!!!!!!!
we need a flight video of this project and a tutorial
Please make more this is great!
Hello bro, is there any way to connect the pi to pixhawk via USB directly? without the telem cable?
Thank U so much for clean tutorial
Very very very brief and straight forward video, Thank you very much dojo keep it up. . . You fed whole project with a single spoon. . . .
Nice Video... Really good video to start working
can you provide 2022 version please
That was super clear bro. thank you for that, I am working on bonding pixhawk with nvidia jetson it will be a great thing if u made a video about that too, anyways thank you ♥
Glad you found the video useful, Muhammad Tarek! Bonding the pixhawk with the jetson would be very powerful! The principles should be the same as outlined in this video. Best of luck!!
the next project I suggest to build quadcopter with detection face using openCV and Raspberry pi. That would be a really cool thing bro! :D
Thank you!!
Thank you for the suggestion, Arya!!!
Use python 3 instead of python 2.
I recommend to use USB FTDI adapters with Hardware Flow Control for the connection between Pi and Pixhawk FC instead of the internal UART interface from the pi.
And remember that you do not have the option to connect to your drone in the field away from home when the pi is configured to connect to your local wlan network only.
And how you managed the powering of both pixhawk and Raspi, would have been interesting too.
I like the mounting option on the F450 Frame.
Good points, Elias! Regarding the home network issue, I do recommend either using a mobile hotspot or ad hoc networking for field testing.
You r a drone Jedi!
You're a legend
Great Video! Will this also work with the Raspberry Pi Zero?
Thanks Benjamin! While I haven't made a drone with the Pi Zero, as long as it has UART it should definitely work!
Man. I lovoe you!
That's funny cause I
youre best dude thanks
Put an LTE dongle on the Pi, set up a VPN and connect the Pi to it, and ssh in from another machine. Boom. Now you can do extreme long range control from your PC, even other side of the world
I love it!!! That would be a fun project!
fantastic presentation
Great video, thanks!!. I would like to know if Pixhawk is the only flight controller suitable for such application or the system can be interfaced with other flight controllers too.
Very nice video! Question: Since this video is 2020 and we are now in June 2023, what updates to the info are needed, if any?
Thank for knowledge, i m from Pakistan,
No problem Masood! Glad you found this helpful!
Can you be able to now use a remote controller 🎮 to control the drone ?
How to configure it (the controller) as well..? Thank you,
Hi there Joshua! Great question.
You can control this drone autonomously, or with a remote control.
You simply have to:
1. Bind the RC controller to the RC receiver ua-cam.com/video/JmPtCAqSm_s/v-deo.html
2. Install the PPM encoder to the pixhawk ua-cam.com/video/MAdVyvIezi8/v-deo.html
Note the signal wire is on the bottom of the servo rail for Pixhawk.
@@thedronedojo very nice one! Thank you there!
very good
The first you should do after logging into the RPi, you should change password. That is just to run the passwd program.
At 21:30 you have an typo at line 7, you misspelled "install" as "isntall".
No problem not using vi(1), as long as you chose Emacs instead. :-) An easy way to add a string to the end of a file, you can use this line
echo "dtoverlay=disable-dt" >>/boot/config.txt
Oh, 28:04, now you offended me. ;-)
Good video though.
Question, why not using the Raspberry Pi Zero W. Smaller and more light, and have a little weaker CPU (like RPi 2). But might be sufficent for the job. And you save space and weight.
Haha my apologies for offending you with vi, Anders XD
Good question on the Pi zero. It is probably just a matter of personal preference, though I will say if you intend to do computer vision applications perhaps it is worth it to have the extra compute power / RAM of the Pi4.
Glad you enjoyed the video!
How long will the drone's battery last when using? And with this build, is it possible to upgrade to a higher capacity?
I noticed in your coding session you used VIM... I have a hint for you.
Because the background is dark and vim colors are for light background, the colors have low contrast. To get better colors use ":set background=dark"
Thanks for that, Conrado!
Well kool 👍 I'm thinking of trying it out at some point just read up on info b4
You should definitely do it! Raspberry pi drones are pretty sweet.
Thank you for the perfect explanation.
Can u please let me know the other commands to control the drone?
These are on official website in basics, but I can't understand those.
Thanks for the video and codes
I'm planing for a subject following drone
No problem, Guarav!! Good luck on your cool project, I'd love to see it when it's done!
Bro this guy has copied our indian concept checkout channel named "Pankaj Mali"
@@naturelove4357 yes because Pankaj was the first person to come up with connecting Raspberry pi to a Pixhawk. Stop embarrassing our country with your grandiose delusion and baseless accusations and just watch the channel you find better
I'll try getting the OS Lite and then try again
What OS were you using?
@@thedronedojo Raspberry Pi OS with desktop and recommended software
Possible to transfer a video stream, when it's flying?
I really liked the way you presented this. I am an amateur, and have my own commercial drones. But the commercial drones don't have some features I would like. So, how many kinds of "gee whiz" stuff can be programmed into these homemade drones? Is it possible to make one of these that rival the best of DJI, or Skydio drones? Also, would I be able to extend the flight times with better batteries? The commercial battery packs are limited to their own platforms, but something like this means I will always have access to battery power because these drones use off-the-shelf batteries. What kind of flight times have you been seeing?
Great video
Thanks for a great video!!!! One question, when picking the Pixhawk hardware I heard there is a difference between the pixhawk 4 and pixhawk 2.1 (Cube) regarding computing capacity. What are your thoughts on them if I were to pick one?
In my opinion their use as a flight control is very similar. The big difference is the 2.1 comes with a 'carrier' board that also may have a companion computer. In this video, the companion computer is the raspberry pi. So the 2.1 may have a raspberry pi type companion computer built in (depending on the carrier board for the cube module). Differences in computing power for the companion computers could drastically effect the complexity of functions your drone is able to perform (computer vision / AI for example).
Cool video!
Could you please make a review of MSP protocol and how to interact with F4/F7 flight controllers over USB?
Thank you! I will look into that!
Thanks a lot.. kindly I have one question about the installation of RPI, can we fix it far from pixhawk in the down side of the drone? and it should be in the anti-vibration panel or not necessary?
Hi there Nidal! Great question.
The Raspberry Pi can be fixed wherever you'd like to mount it, and it doesn't have to be on the anti-vibration panel. Only the pixhawk is recommended to be on the anti-vibration panel so you can protect the IMUs.
I wonder that why you skipped the ESC connections and calibration
hey man i really love this series. do these packages work with RC airplanes as well over quadcopters?
СПАСИБО ТЫ СДЕЛАЛ САМЫЙ АДЕКВАТНЫЙ ОБЗОР, мне так надоело слушать индийский английский и непонятное то, что они делают, Господи тебя ты ЛУЧШИЙ
Just curious, is this possible on other flight controllers? There are tons of other mini flight controllers that use ardupilot and with uart connections. Thanks
amazing!
Glad you enjoyed it!!
I have started working on pixhawk 2.4.8 with jetson xavier. Where should I start for simulation?? Ardupilot or GCS ?
ArduPilot has a simulated vehicle option called "SITL" that you can test out your custom applications/code on. It runs the same firmware as the drone but runs from your computer. You can even connect it to your computer GCS with telemetry!
@@thedronedojo great. Thank you so much
awesome mate, really enjoyed your video
one question though, can we do the same using raspberry and betaflight F3 controller?
Hi there chiko360' !
Great question. My understanding about betaflight F3 is that the flight control firmware is completely different than ArduPilot. For this reason, the python control we outlined in this video would not work on a befaflight controller.
The main reason is that ArduPilot uses the MAVLink middleware, so this material should work for any drone using a MAVLink based flight control firmware (Like PX4 too).