Connecting Raspberry Pi w/ Pixhawk and Communicating via MAVLink Protocol

Поделиться
HTML-код
  • Опубликовано: 29 июл 2016
  • This is a high-level overview of setting up Raspberry Pi (amzn.to/2a78kf8) with Raspian OS and installing the necessary libraries to communicate with Pixhawk using MAVLink/MAVProxy. This is something I've been experimenting with over the last year and wanted to share the process.
    In upcoming videos I'll demonstrate installing DroneKit and using Python to do some more interesting things with Raspberry Pi and Pixhawk.
    This ArduPilot page is what I used to do the initial setup:
    ardupilot.org/dev/docs/raspber...
    You can download Raspian Jesse here:
    www.raspberrypi.org/downloads...
    Here are the steps to install Raspian on your SD card:
    www.raspberrypi.org/documenta...
    It's really an exciting time to be in the world of UAVs. I hope this video was helpful and please post any questions or comments below.

Комментарии • 391

  • @khushalbrahmbhatt5352
    @khushalbrahmbhatt5352 7 лет назад +3

    I can't thank you enough for making these videos. They're the only video tutorials out there on using companion computers with pixhawk. They're really getting me through my college project.

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад +1

      Good luck on your project and thanks for the good words. I appreciate it.

  • @karkin96
    @karkin96 7 лет назад +53

    The one and only youtuber making some higher end tutorials about drones connecting raspberry pi and pixhawk, with dronekit. Very interesting :) I sure hope there will be more tutorials about RPI and pixhawk coming!

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад +4

      Thanks so much for the good words. Yes more RPi/Pixhawk stuff coming soon. Take care.

    • @karkin96
      @karkin96 7 лет назад +2

      Hi sir. I have done the dronekit configuration. However, I can only read from Pixhawk, I couldn't send commands from RPI to pixhawk. Any idea why?

  • @Nebul3r
    @Nebul3r 5 лет назад

    ive been so interested in building a Long range fixed wing with autonomous capabilities read a load of non sense crap on groups when i asked about Pixhawk Ardupilot etc no one gave me a straight answer felt discouraged and demotivated, its very nice of you to explain in so much detail, atleast now i have proper superficial knowledge about what is what and whats going on, thanks allot!

  • @brendendas
    @brendendas 8 лет назад +10

    This is exactly what I was looking for, thank you. Eagerly looking forward to your next tutorial.

  • @jameslyons3306
    @jameslyons3306 8 лет назад

    Perfect project! Can't wait to see all the uses that can come out of this setup. Gr8 vid, way to go!

  • @ravfpv6201
    @ravfpv6201 8 лет назад

    Hey Dennis
    Your timing is incredible. I am currently working on a raspberry pi 3b project using Emlid apm sheild along with Emlid Reach. Unlike yourself, I am far from a computer programmer. So I'm running into a language barrier. Thank God I have teenagers. Looking forward to future videos on this discussion. Thanks for keeping us all in the loop Dennis
    Keith

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Keith, Emlid looks like some serious computing power! I'm familiar with Edison but wasn't familiar with Emlid until you mentioned it. I'll post an update soon and hopefully we can all learn from each other on this topic. Thanks for the feedback and I hope all is well.

  • @FPVcambodia
    @FPVcambodia 8 лет назад +2

    That's pretty impressive Dennis; I was presented PI some 1 year ago from an open source club in Phnom Penh; and here we are integrating PIxhawk and this small powerful enough computing PI machine! Wow; this looks promising for a few Grams more on the craft with its slaves commands.... Cheers once again for such inspiring tutorials intros; truly inspiring... The only problem is that I do not code on Linux! ;( Cheers and Safe Flying!

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      I'm not sure if you're into programming at all, but if you are I'd love for you to join our gitter chat sometime. Maybe we can collaborate on some projects together. gitter.im/dbaldwin/DronePan Take care.

  • @georgehadjipavlis7141
    @georgehadjipavlis7141 8 лет назад

    Amazing. Can no wait for your next videos. Keep up the great work.

  • @SamFugarino
    @SamFugarino 8 лет назад

    Thanks Dennis, exactly what I'm wanting to explore. Thanks for sharing and keep the videos coming.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      My pleasure. I've really enjoyed working with Pi and Pixhawk, of course. Thanks for following.

  • @Afiso
    @Afiso 4 года назад +1

    Awesome, thank you. Finally i got it working because of your clear video. Greetings from Holland

  • @DaveMerc
    @DaveMerc 8 лет назад

    Wow that was an eye opener! I had no idea that was being developed. Thanks for sharing.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      No problem. I've really enjoyed the flexibility of having a companion computer that communicates with the main flight controller. It really opens the doors for some interesting drone applications.

  • @zevi
    @zevi 8 лет назад

    Wow, this is great stuff! Im very excited to see what you can do with computer vision with the Pi!

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад +1

      You and me both :) Thanks for following along and I hope all is well.

  • @mums2109
    @mums2109 2 года назад

    I was liiking for a video like this! thank you!

  • @karunakarank.1922
    @karunakarank.1922 8 лет назад

    Wow, awesome is an understatement. Thanks for kindly sharing Dennis. As usual, you rock! I intend to do a similar setup soon I hope, and this helps.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Thanks for the feedback. Good luck when you get around to it. I think you'll find the possibilities are limitless.

  • @AnasSuhaimi
    @AnasSuhaimi 5 лет назад

    This is exactly what I need. Thanks man.

  • @fxsti
    @fxsti 8 лет назад

    Thanks for this video. Looking forward to more on this and anything you can share on obstacle avoidance.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Thanks for following. Appreciate the feedback.

  • @adibbins
    @adibbins 8 лет назад

    Great Dennis, as always very useful and as others have said very exciting. I look forward to further instalments.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Appreciate it. I will be posting an update soon.

  • @jonnymorley1344
    @jonnymorley1344 7 лет назад

    Excited for the rest!

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      Thanks. Appreciate you following along.

  • @DeFiNerds
    @DeFiNerds 8 лет назад

    Another great video!! I'm waiting for the next one. I'm gonna start playing with dronekit.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Glad to hear that. I hope you enjoy it and please let us know how it works out for you.

    • @dbmarsbilisimteknolojileri8747
      @dbmarsbilisimteknolojileri8747 8 лет назад +1

      Hi Dennis,
      Thanks for this very good video!
      However, when we try to apply the video, we have been stucked at the following part:
      pi@raspberrypi:~ $ ls /dev/tty*
      /dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
      /dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
      /dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
      /dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
      /dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
      /dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyAMA0
      /dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyprintk
      /dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58
      /dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
      /dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
      /dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
      /dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
      pi@raspberrypi:~ $ sudo -s
      root@raspberrypi:/home/pi# mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter
      Using MAVLink 1.0
      Using MAVLink 1.0
      Connect /dev/ttyAMA0 source_system=255
      Running script /root/.mavinit.scr
      -> module load droneapi.module.api
      DroneAPI loaded
      Loaded module droneapi.module.api
      no script MyCopter/mavinit.scr
      Log Directory: MyCopter/logs/2016-08-15/flight15
      Telemetry log: MyCopter/logs/2016-08-15/flight15/flight.tlog
      MAV> Waiting for heartbeat from /dev/ttyAMA0
      I can not get any heartbeat. It stucks at this stage.
      Could you please send your suggestions about this issue? Why it stucks at this stage and what should I do?
      Thanks in advance.

    • @dbmarsbilisimteknolojileri8747
      @dbmarsbilisimteknolojileri8747 8 лет назад +1

      Hi Dennis,
      Thanks for this very good video!
      However, when we try to apply the video, we have been stucked at the following part:
      pi@raspberrypi:~ $ ls /dev/tty*
      /dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
      /dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
      /dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
      /dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
      /dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
      /dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyAMA0
      /dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyprintk
      /dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58
      /dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
      /dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
      /dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
      /dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
      pi@raspberrypi:~ $ sudo -s
      root@raspberrypi:/home/pi# mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter
      Using MAVLink 1.0
      Using MAVLink 1.0
      Connect /dev/ttyAMA0 source_system=255
      Running script /root/.mavinit.scr
      -> module load droneapi.module.api
      DroneAPI loaded
      Loaded module droneapi.module.api
      no script MyCopter/mavinit.scr
      Log Directory: MyCopter/logs/2016-08-15/flight15
      Telemetry log: MyCopter/logs/2016-08-15/flight15/flight.tlog
      MAV> Waiting for heartbeat from /dev/ttyAMA0
      I can not get any heartbeat. It stucks at this stage.
      Instead of ttyAMA0, I also tried serial0. But it did not send any heartbeat either.
      Could you please send your suggestions about this issue? Why it stucks at this stage and what should I do?
      Thanks in advance.

  • @jianhuaixie
    @jianhuaixie 6 лет назад

    thank you so much.The detail you showed is just I need.

  • @BarefootBeekeeper
    @BarefootBeekeeper 6 лет назад

    Nice work! Looking forward to some practical applications for this.

    • @dennisbaldwin
      @dennisbaldwin  6 лет назад +1

      Thanks, Phil. Good luck with your projects.

    • @BarefootBeekeeper
      @BarefootBeekeeper 6 лет назад

      Dennis Baldwin My main interest is in using thermal imaging on a drone. I have a Tarot 680 with Pixhawk and Four Duo-R almost ready to fly, so interested in how I may be able to add some AI functions.

  • @MasboyRC
    @MasboyRC 4 года назад +1

    Awesome, thanks for explain and presentations. I appreciate it 👍

  • @SYNFPVPILOT
    @SYNFPVPILOT 8 лет назад

    Great vid. I've planned to experiment w/ CV on a 150lb rover I built. Object recognition and tracking is high on the list for my project. Watching your progress w/ RP closely.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Sounds like an awesome rover!!! I'm by no means an expert when it comes to object recognition, but will hack together an example. Thanks for following along.

  • @benjaminmathon7417
    @benjaminmathon7417 8 лет назад

    Awesome, can't wait to see more

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Thanks. Appreciate you following along.

  • @lidiatoscano5334
    @lidiatoscano5334 8 лет назад

    This is very cool, I am just trying to do the same thing only with the Beaglebone . . . your video was very helpful. Thanks!

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Glad it helped and good luck with your Beaglebone project. Keep us posted on your progress!

  • @vineetaquarius
    @vineetaquarius 8 лет назад

    Thanks for sharing the info please do your videos on weekly basis or monthly basis , i am waiting for flight of the transition plane quad you had build .i really like your habit of deep understanding of the systems.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Thanks for the good words. I'll try to post more often. Appreciate your feedback.

  • @imemyself2820
    @imemyself2820 6 лет назад

    Wow I had no idea this was even remotely possible :O

  • @crcpeart
    @crcpeart 5 лет назад

    Thank you for this video.
    Subscribed

  • @MarkJWilliams0
    @MarkJWilliams0 8 лет назад

    Cool stuff Dennis! I played with this a little while back but never got very far. Plenty of ideas and not enough time...

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      I hear you. There is always never enough time ;) Thanks for the feedback.

  • @milicbogdanovic9853
    @milicbogdanovic9853 3 года назад

    Dennis, I purchased QAV400 years ago I was going to use a raspberry pie and pixhawk to control QAV400, I am missing few items. Do to a job I put this aside for since 2013 and would like to finish my QAV400.
    Current Specs:
    - Lumenier QAV400 frame
    - T-Motor MT2212-11 1100KV motors
    - fpvmanuals 30 amp ESC’s with SimonK firmware
    - 3DR Pixhawk with GPS
    - APC 8x4.7 SF and APC 8x4.7 SFP
    - GoPro Hero 3 camera
    - Lumenier 5200mAh 4S battery
    As you can see I am missing few items, but my intent was to control the QAV400 via smart phone or tablet. I see you connected a raspberry pie, but not for that purpose, I love to pick your brain, so I can finish this build.

  • @StigBSivertsen
    @StigBSivertsen 8 лет назад

    Awesome! thanks for sharing!

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      No problem. Thanks for following along.

  • @pjwlk
    @pjwlk 7 лет назад

    Awesome video - Thanks!!!

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      No problem. Thanks for following along.

  • @rsua19
    @rsua19 7 лет назад

    your the man! awesome video!

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      Thanks for the good words. I appreciate it.

  • @ziqinqin3806
    @ziqinqin3806 4 года назад +1

    I am a novice, I am looking forward to a tutorial on how to use mavlink and connect with raspberry PI, thank you very much for sharing

  • @sri23125
    @sri23125 3 года назад

    This is it. Thx thx thx looking for it boss. Thx again 👍

  • @haussmanndabo9528
    @haussmanndabo9528 7 лет назад

    Hi Denis , thanks , really thanks for your vidéos .

  • @zzzzzz-du9et
    @zzzzzz-du9et 4 года назад +2

    Thanks bro

  • @arya8431
    @arya8431 7 лет назад

    thank you for this tutorial, it's great :D

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      No problem. Glad to hear it helped.

    • @arya8431
      @arya8431 7 лет назад

      Dennis, I've tried it on my px4 and it works, but why on my APMpro the mode can't change? always stay in STABILIZE mode

    • @arya8431
      @arya8431 7 лет назад

      my problem is fixed, I try to add --mav10 in mavproxy command, I found it here : ardupilot.github.io/MAVProxy/html/getting_started/starting.html

  • @massimilianonball
    @massimilianonball 8 лет назад

    Many many compliments Dennis!! I want to make something similar to you but with openvpn on 4g network between the raspberry and the pixhawk :-)

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      That sounds like a great project. Please keep us posted on any progress!

    • @massimilianonball
      @massimilianonball 8 лет назад

      +Dennis Baldwin yes, for sure!!

  • @blackmennewstyle
    @blackmennewstyle 8 лет назад +1

    PixHawk, Debian, SSH, Python

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад +1

      I wish it was Christmas here in TX so it wasn't so hot! Glad you are into all these technologies. I absolutely love them. Have a great week yourself.

  • @jodumagpi
    @jodumagpi 8 лет назад

    Thank you very much for this

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      No problem. Glad to share it. Thanks for the feedback.

  • @tfergusonjr
    @tfergusonjr 7 лет назад

    This is a great demo. I look forward to watching more of your videos. Have you experimented with Intel Edison and Pixhawk? I have a Pixhawk 2 w/ integrated Edison. I want to learn how to program it similar to what you have done.

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      I have limited experience with Edison but would really like to get more familiar with it. Thanks for watching and I appreciate the feedback.

  • @AnhHoang-ql4bb
    @AnhHoang-ql4bb 8 лет назад

    your video is so awesome :)

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Thanks for the feedback and following along.

  • @JARC99_
    @JARC99_ 3 года назад

    I first want to thank you for this awesome viedo and channel, it has served as a great inspiration for a bunch of academic and personal projects I am planning on undertaking. Using OpenCV for object detection and tracking on UAV platforms is one of the topics I am interested in and I'm looking into buying a Raspberry Pi 4 for this. I am kinda of on a budget so I wanted to ask you, whether the 2GB Raspberry Pi 4 would be enoguh for this application or if getting more RAM would be mandatory?

  • @followmeback2599
    @followmeback2599 6 лет назад +1

    Sir, I did like u what u done in youtube it showing same problem left ones right and right ones left compass calibration. Pls help me sir.

  • @garyballiet8340
    @garyballiet8340 8 лет назад

    I quite recommend Navio+ for those wanting to go that way. It is a hat (daughterboard) for the pi. Does away with the pixhawk and runs an rtl distro.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      I've been wanting to check that out. Thanks for sharing your experience.

  • @clyde1820
    @clyde1820 5 лет назад +1

    Where does the control of the RPi step in? Does it override the current Flight Mode (e.g. Mission) and the Telemetry 1 Port or what? And can I also use the RC at the same time, because I thought the RC was usually connected to Telemetry 2 port.

  • @emi83ro
    @emi83ro 8 лет назад

    Cool! Next thing to do would be to put a 3G module on Raspi for extremely long distance communication and fpv with a bit of lag :)

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Totally! I've been thinking about a cellular modem would be cool. Even if it could grab images from the PI and upload them in realtime. Hadn't thought about streaming FPV. That would be interesting :)

  • @PaulFreemanTheTall
    @PaulFreemanTheTall 8 лет назад

    Hi Denis, another very interesting video, thanks for that. Supposing one built a bunch of programs on the Pi and wanted to trigger them from the ground e.g.: to execute custom flight operations, what do you think would be a good way to go about that? Is it possible to transmit commands from the operators Tx (I have a Taranis) to the Pi to trigger these 'operations' or would it be necessary to have a separate command radio to transmit commands? I was wondering if it would be possible to use MAVLink to encode ones own command protocol and add those commands to whatever method is used to send e.g.; MAVlink commands from a ground station like qgroundcontrol to the aircraft. My real desire is to use this to develop a richer camera controller for the Olympus OPC 4/3 camera, but its analogous to executing remote commands on a Pi, in fact the same protocol might be used to operate the Raspberry Pi camera, or to control some other kind of sensor such as Lidar etc.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад +1

      This is such a good question that I've been sorting through lately. I'll post some more info later this week. I'm traveling right now but have some ideas to achieve this. I like your idea of more fine grained control of the your camera. I've been wanting to do the same with my Canon S110 and other cameras that I put into my wing.

  • @ericjohn3817
    @ericjohn3817 5 лет назад

    Thank you so much for the sharing. I have a question about the Raspberry PI you used. Is it a 32bit or 64bit? Does it matter? Thank you.

  • @joenorris6805
    @joenorris6805 4 года назад

    Thank you very mich for this tutorial! have you ever used the raspberry pi as a receiver for the pixhawk?

  • @jashwaaradhya2989
    @jashwaaradhya2989 5 лет назад +1

    Thank you, Thank you, Thank you, Thank you, Thank you

  • @user-nr4tn8zp2o
    @user-nr4tn8zp2o 6 лет назад

    Great video. Have a question. While running drone using MAVlink protocol, can I also see that drone's status connecting to Mission Planner?

  • @acelere
    @acelere 8 лет назад

    Dennis, great video (as all your others - you are great). The possibilities are huge. Could you share what is your big plan? I guess this will help (at least for me) build a mental picture and fit the puzzle pieces together... Tks!

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад +1

      No big plan other than experimenting with opencv and some other external sensors to give input to Pixhawk. I'd love to get OpenCV object recognition for avoidance and tracking. I'm not an expert in this area, but want to experiment with that combined with DroneKit. Hope that gives you some insight. If you have any suggestions I'd love to hear them. Thanks.

  • @yokonthesage
    @yokonthesage 4 года назад +4

    The 6 pin ftdi to toe entry cable is found where? What’s it called or how do you make one?

    • @nathanschroeder2193
      @nathanschroeder2193 3 года назад

      I had trouble with this myself, but ended up getting it working. I would be very interested if someone has a better suggestion:
      -I bought a set of "Dupont" wires
      -My pixhawk came with a telem to telem 6 pin wire
      I cut the telem cable in half, and spliced each of the wires to a dupont wire of the corresponding color (leaving the 4th, and 5th pins unconnected) according to these instructions:
      www.researchgate.net/publication/323683430_Communicating_with_Raspberry_Pi_via_MAVLink

  • @manueljohn7674
    @manueljohn7674 5 лет назад

    Very helpful tutorial. I am using an APM 2.8 flight controller.Can I proceed with the same procedure for APM.

  • @gwyne8353
    @gwyne8353 2 года назад

    Very nice tutorial, thanks! Do you know if this would work on Matek H743-wing V2 FC? Or just the Pixhawk? Cos it's kinda expensive and I'm looking for an alternative FC into Ardupilot where I could connect many sensors too

  • @sergiopostigo1412
    @sergiopostigo1412 6 лет назад +4

    Question: Is it a good practice to feed the pi directly from telemetry port?. I want to do something similar but I´m afraid about the current that the pi will drag from the pixhawk.

    • @noahorosw
      @noahorosw 6 лет назад

      The pi3 continues to reboot , and I can't connect through ssh . So I plug in hdmi , and see the pi trying to reboot . So I solder small power outlet wires from main board , and install ubec and plug into pi . Now I can ssh to pi no more trying to reboot everything works good . Don't use telemetry port 2 to power pi .

    • @khtan5531
      @khtan5531 5 лет назад

      I have a similar experience where the pi kept trying to reboot when it was powered from the telemetry 2 port. I ended up using a small powerbank to power the pi via its own usb port and strapped it to my drone.

  • @deltavcreations1862
    @deltavcreations1862 3 года назад +1

    Hi Dennis
    I have a question or maybe a clarification.
    I have been seeing everywhere, whenever RPI and Pix are connected - it is suggested to do over Telem1/2 to RPI serial Pins or use an FTDI connector to an RPI USB.
    What should happen if we connect it directly from Pixhawk USB to RPI USB?
    I tried that connection and it still works at least for reading Flight data using Drone kit. Just wanted to know, why it is recommended to connect over telem port!
    Thanks in advance!

  • @pinzgauernorcal
    @pinzgauernorcal 8 лет назад

    interesting thanks for sharing.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      No problem. I hope you're doing well.

    • @pinzgauernorcal
      @pinzgauernorcal 8 лет назад

      im doing well thanks, been studying for 107 how about you ?

  • @isabido
    @isabido 6 лет назад

    Hi Dennis, what version of raspberry are you using? We are testing on a PI v1, and the mavproxy service loads 90% cpu, with a very slow response. Thanks for sharing your videos.

    • @dennisbaldwin
      @dennisbaldwin  6 лет назад

      Version 2. I've never used V1 so I'm not sure if that's a known issue. Please let us know what you discover.

  • @theunknown5012
    @theunknown5012 6 лет назад

    How can i get the realtime image from the drone to my Laptop.

  • @anishpratheepkumar4184
    @anishpratheepkumar4184 4 года назад

    Hai, I am trying to connect my pixhawk to rapberrypi. Could you please let me know where to find the command list (documentation) for communicating to pixhawk from raspberry terminal ? I mean commands you mentioned here like 'Arm safety off'.
    I am looking for controlling altitude, roll, pitch and yaw from terminal so i need a related command list to do the same.
    Thanks in advance!

  • @angelleal3005
    @angelleal3005 3 года назад

    In my case I have a jetson nano and a pixhawk mini. I don't have a second telemetry port on the pixhawk. Can I use any other port and do the same software configuration you did here ?

  • @koukibghr9836
    @koukibghr9836 4 года назад

    Thnk you for this video ...i have a question about the pixhawk ...can we change the algorithm of PID control with an other algorithm if yes how can we do it

  • @AASSDD2022
    @AASSDD2022 3 года назад

    Hi there! Nice and useful video, thanks for sharing. Just a quick question, hope you can help me: do you know if I can supply the Pixhawk with a power supply instead of a LiPo battery? I will be a lot of time working with PC, so I don't need to fly the drone yet. Thanks for your time and hope you are ok these days!

  • @erfanmonemi8112
    @erfanmonemi8112 3 года назад

    Hello. Thank you so much for this tutorial. I’m going to make a flying wing with 4g telemetry like this but the problem is that the official 3DR pixhawk isn’t available in my country, and a clone of that from Radiolink is also expensive and is said to be not much stable so I was thinking if I can do the same using apm2.8 and an old frimware of ardupilot. Is that possible and is that the same as what you showed in the video? Thank u so much in advance for your help.

  • @IdleBroadcast
    @IdleBroadcast 7 лет назад

    I'm working with an Arduino to receive telemetry information via serial 4 on PixHawk however some but not all MAVLink messages are received despite boosting the rates: for example setting SR2_EXT_STAT to 10Hz and I still only receive 2/7 messages which are supposed to be bundled with SR2_EXT_STAT. Do you know if PixHawk limits which messages go to the extra serial ports or if I am missing some step in getting the other messages?

  • @game-f-un-limitedgamer8958
    @game-f-un-limitedgamer8958 5 лет назад

    Why did you disable serial link with raspi-config in the beginning and then enabled it in the boot script? Any specific reason?

  • @LenRamSa
    @LenRamSa 7 лет назад

    Dennis, thanks for such a great educational video. I'm considering putting together a Drone with Pi Zero (or Pi Zero W) and the PXFMini flight controller (designed for Raspberry Pi by Erle Robotics). Have you tried something similar?. are there any advantages of your setup over the one I'm considering?.

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      Thank you for the kind words. I don't have any experience with either of those hardware components, but sounds like a really cool project. I've seen both of them and have wanted to mess around with them. Please keep me posted on how your project goes.

  • @diegoamaya6353
    @diegoamaya6353 7 лет назад

    Did you make a video for image processing? I want to load OpenCV in my Raspberry Pi, do image processing and tell the UAV where to go, but I can't find how to set the waypoints dynamically. Thanks

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      I'll need to look into this. I haven't been able to do any image processing yet, but definitely plan to. Let us know if you come up with anything. Thanks.

  • @dgb5820
    @dgb5820 4 года назад

    Great video, do you think it’s possible to connect the nvidia nano with a wifi add on for nano

  • @paytufo
    @paytufo 6 лет назад

    Could I use this with the Arducopter 2.6 instead of Pixhawk?

  • @pdeepakjayan5515
    @pdeepakjayan5515 5 лет назад

    NICE VIDEO. if instead of using an ardupilot for a drone, if I have to use ardusub in pixhawk to control my REMOTELY OPERATED SUBMERSIBLE, how will I start the mavproxy?

  • @joliver1981
    @joliver1981 7 лет назад

    Awesome video. Now I can combine machine learning and drones. Is anything cooler? ;) Thanks for this video, nice job.

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      No problem. Yes machine learning with drones can definitely lead to the killer app. My ML skills are weak but I'm trying to become more proficient.

  • @karabgut
    @karabgut 2 года назад

    I am planning to use ROS2 with Fast DDS in my companion computer, in this case do I need to install Mavlink? I have read px4 guide page and there was always a Mavlink for Flight Mode etc. And I confused. Could you help me with this issue?

  • @thiagocavalcante2366
    @thiagocavalcante2366 7 лет назад

    Hello Dennis, have you used the dronekit api? I need to use it on raspberry PI, but I could install it :( Can you help me?

  • @T-Sav
    @T-Sav 7 лет назад

    Does this allow you to control servo out puts? If yes could use this with a 4g modem to fly and stream video over 4g network

  • @pratikprajapati9133
    @pratikprajapati9133 5 лет назад

    HAve you made any further videos regarding RPi3 with pixhawk ? If any please send link of it thanks

  • @divyatejapasupuleti3283
    @divyatejapasupuleti3283 5 лет назад +1

    Where can I get that df13 to raspi cable

  • @marcoantoniosalasabreu5304
    @marcoantoniosalasabreu5304 5 лет назад

    Hi, do you know something about ardurover? I am looking for help

  • @badrobot1179
    @badrobot1179 7 лет назад

    Hey dennis great Video. I was curious if I can read sensor values(accelerometer and gyro) from the Pixhawk to Raspberry Pi during flight and issue commands to the pixhawk from the Pi, like move from Point A to Point B and maintain pose and prevent drifting?

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      Definitely possible based on the documentation I've read, but have never implemented this before. If I can get some free time I'll put together a tutorial. Thanks for the question and good luck with your setup.

  • @melonstreams9369
    @melonstreams9369 2 года назад

    Are there any commands that can be run through Rpi Terminal where the wheels would move?

  • @TurBull4nc3
    @TurBull4nc3 3 года назад

    Hi, do u connect a telemtry radio to your raspberry pi as well or just the pixhawk and the computer?

  • @akshaytimmalapur
    @akshaytimmalapur 6 лет назад

    Rpi console gets hung when I install pymavlink "sudo pip install pymavlink". Any suggestions or solutions? Thanks

  • @CrownThyGood
    @CrownThyGood 7 лет назад

    I bought a rpi 2 just to see if my problem was with the 3. It didnt get me a heartbeat so I tried the rpi 2 and a new pixhawk. I got a heart beat! I went through the setup wizard for the new pixhawk. Immediately after I arm, it goes into disarm: STABILIZE> arm throttle
    STABILIZE> Got MAVLink msg: COMMAND_ACK {command : 400, result : 0}
    ARMED
    Arming checks disabled
    DISARMED
    Thanks Dennis for your help!

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      So glad to hear that. Good work Ashley!

  • @dedehizaz287
    @dedehizaz287 6 лет назад

    i have some quaestion about video processing in raspberry. can i use video tx from camera raspberry after processing in raspberry and direcly sending by video tx to Ground station. if possible what port in raspberry can use to connect to video tx? thx

    • @dennisbaldwin
      @dennisbaldwin  6 лет назад

      I'm not sure about this. I don't have experience working with video processing and RPi but will hopefully look into it in the future.

  • @angelleal3005
    @angelleal3005 3 года назад

    I am currently trying to connect a Jetson nano with the Pixhawk but haven't found much information about it. Do you know if it's possible ? and maybe how to approach this task ?

  • @gilquinones6652
    @gilquinones6652 2 года назад

    Hi Dennis Great Presentation. I am using Cube PX2 with Raspberry pi. I see an issue with MAV> Link 1 Down. I cannot get around it. Any Ideas?

  • @khtan5531
    @khtan5531 5 лет назад +1

    Is it possible to connect the Raspberry Pi 3 to the Pixhawk via the USB ports on both devices (instead of connecting the GPIO pins to the Telem port) ?

  • @benjaminmathon7417
    @benjaminmathon7417 8 лет назад

    You can also connect it with USB, that's necessary if you want to use the Intel compute stick with a powerful Core M. Just allow the serial coms back using raspi-config then use the command "mavproxy.py --master=/dev/ttyACM0 --baudrate 57600 --aircraft MyCopter"

    • @benjaminmathon7417
      @benjaminmathon7417 8 лет назад

      if the command is not working, try "ls /dev/tty*" with you ardupilot device unplug and again after you plug it back, you should have a new ttyxxxx device.

    • @dennisbaldwin
      @dennisbaldwin  8 лет назад

      Good tip. Thanks for sharing!

  • @siddharth4662
    @siddharth4662 2 года назад

    Hi Dennis... both the Telem ports on my Pixhawk are already occupied... what would be the option to connect a RPi to the Pixhawk?

  • @sukruuzun1911
    @sukruuzun1911 7 лет назад +1

    Hey Dennis, really good job here. I wanted to ask you i did what you show here exactly but after online system 1 script i had no line APM ... When i tried to enter a command, it doesnt show me anything. I have just 'STABILIZE>' line here. Im using rpi zero and apm 2.5. Another note i wired them with logic level converter. Thanks for your help...

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      Strange. It almost sounds like something is wrong with your RX line where responses are coming back. I'll give it some more thought and let you know if I come up with anything. Let us know if you figure out anything from your end. Thanks for the comment.

    • @arya8431
      @arya8431 7 лет назад +1

      if you use APM you must add --mav10 , it will be mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter --mav10
      explanation in here : ardupilot.github.io/MAVProxy/html/getting_started/starting.html

  • @arpitsrivastava8431
    @arpitsrivastava8431 6 лет назад

    How to flash ardupilot on pixhawk or it comes along it already?

  • @paytufo
    @paytufo 6 лет назад

    Could I use a Pi Zero and a GoPro to do this? Will I pilot my drone in a long range watching the video in qgroundcontrol? Thank you a lot!

    • @MrDayinthepark
      @MrDayinthepark 4 месяца назад

      I think you can but you need to solder in the RPIO pins if you use an extender. I tried without soldering and it failed, but moved to a pi 3 and it worked, I believe because the RPIO pins are connected, not just passing through a loop.

  • @zz-nc5kx
    @zz-nc5kx 4 месяца назад

    I would like to control a GoPro camera on my quadcopter - switch between video/still and trigger the camera.

  •  4 года назад

    Hi! how to make mission planner way points give order to raspberry take a picture? thanks

  • @koustubhjaiswal6509
    @koustubhjaiswal6509 4 года назад

    Hi, I am currently working on a project that involves an onboard Raspberry Pi, I have a question that how do I communicate with the onboard computer from my laptop on the ground, shall I add a Wireless internet connection onboard the UAV or is it possible to communicate via the telemetry radio connected to Pixhawk?

  • @ezekielmonfero2646
    @ezekielmonfero2646 3 года назад

    Can arduino connect with the pixhawk while the arduino are connected in 3 sensors like ph do and turbidity sensor?

  • @laurenceharrison4056
    @laurenceharrison4056 7 лет назад

    How did you get the cable to connect the pi and pixhawk (6pin gpio to telem connection). If you made it yourself, do you have parts list for what you used incl tools?

    • @dennisbaldwin
      @dennisbaldwin  7 лет назад

      I wired up the cable per this diagram:
      ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
      and used the telemetry cable that shipped with my Pixhawk. Wired it to one end of an FTDI connector I had like in this photo:
      www.ftdichip.com/Products/Cables/USBTTLSerial.htm
      Obviously not the USB end but the end with the black connector.