Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • We setup a Raspberry Pi 3 to be working as a companion PC for your autopilot, running Ardupilot/PX4.
    My personal advise is not to use APM 2.x board. You need a 32 bit autopilot to get the best off Ardupilot. Find a few links below.
    Find the Python Script: github.com/tiz...
    *** Get the best and sign up to the course ZERO to DRONE PROGRAMMER here: • Become a DRONE PROGRAM...
    *** SHOP NOW at my store and help sustaining the channel:
    teespring.com/...
    *** Interested in ROS (Robot Operting System)? Checkout my Playlist: • What is ROS (Robot Ope...
    _________________________
    UPDATES AND ERRORS
    _________________________
    - When setting the serial port, in the file /boot/config.txt add the following line: dtoverlay=pi3-disable-bt
    - DISABLE the Bluetooth to get ttyAMA0 (otherwise use ttyS0): edit /etc/modprobe.d/raspi-blacklist.conf
    #- Bt
    blacklist btbcm
    blacklist hci_uart
    _______________________________________________________________
    ** DISCLAIMER **
    I apologize for the audio quality. I learned my lessons from my mistakes
    ****
    Raspberry Pi is a good starting point, due to the low cost and the great support from the community.
    Download Raspbian Lite from here: www.raspberryp...
    Otherwise you can chose Ubuntu from here: ubuntu-mate.or...
    Connect the board to the Internet with an ethernet cable and plug a monitor and a keyboard. Once ready, login with pi/raspberry and open the raspi-config. Here just activate SSH and then reboot.
    From here on we can complete the setup on a computer through SSH.
    Connect the Raspberry Pi to the autopilot following the details here: ardupilot.org/d...
    You need to download dronekit and compile it on the Raspberry Pi, in order to avoid annoying warning message in case you connect with both the companion pc and the ground station.
    • Find the code on my GitHub: github.com/tiz...
    **** How to get started ******
    **Companion PC**
    • Get a new Raspberry Pi 3 Model B+ : amzn.to/2WKYeW6
    • Get a Raspberry Pi 3 Model B: amzn.to/2vBmAFQ
    • Get 32Gb SD Card: amzn.to/2BoCTJ9
    • Get a complete Diy kit for your Raspberry Pi projects: amzn.to/2KLhn38
    **Autopilot**
    • Get a professional Pixhawk 2.1: amzn.to/2OuwfoD
    • Or a complete and affordable starter kit: amzn.to/2B2FMBA
    A couple of pre-baked rpi images for ArduPilot are fnoop.github.i... and ardupilot.org/d...
    ** Go to my channel: goo.gl/BjLGnS
    ** Check out my latest video: goo.gl/ZhcNi4
    ** Check out my most popular video: goo.gl/5KMJnU
    ******* Merchandise *********************
    teespring.com/...
    *** JOIN THE FACEBOOK COMMUNITY: / tizianotutorials

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

  • @prandtlmayer
    @prandtlmayer  5 лет назад +3

    To all the followers: here is a Facebook community where you can post projects, ideas, and questions.
    Open to everyone who wants to learn robotics... having fun
    Like the page and start posting
    facebook.com/tizianotutorials/

    • @RajPatel-vc6mg
      @RajPatel-vc6mg 2 года назад

      Is it possible to connect to the onboard Rasberry pi with rfd 900 telemetry or herelink telemetry? If so, can you make a video on how to set it up ? The short WiFi range for Rasberry pi communication is a big limitation and 4g is unreliable where I live. Thanks

  • @satyamraj6881
    @satyamraj6881 3 года назад +11

    Hi, Tiziano. Thank you for making these tutorials. I learnt how to program drones using your video and made an agricultural drone prototype for which I won a contest in college. Please upload more drone videos in the future:)

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

      Great to hear! Never stop learning and be passionate, post your experiments tests and fails

  • @prandtlmayer
    @prandtlmayer  6 лет назад +5

    In the video I forgot to DISABLE THE BLUETOOTH. Open the file /boot/config.txt and add the following line: dtoverlay=pi3-disable-bt

  • @Jonasmelonas
    @Jonasmelonas 5 лет назад +14

    Based on the audio, I believe this is Darth Vader's younger geeky italian brother

  • @yusufduran2422
    @yusufduran2422 4 года назад +2

    Thanks from turkey. Grazie mille Tiziano, da un turco-italiano. Sei il migliore.

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

    Sir you are truly a great teacher. Hats off. I haven't seen any teacher be such great at teaching complex mechanisms like you have. Thanks a ton

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

      Thanks, your feedback is what makes me doing that

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

    Perfect timing ! I have 10 days to make this happen .

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

      Glad it was helpful

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

      It's actually the project I'm working on ! Raspberrypi to Pixhawk on a HMF U580 quadcopter perfect for my project .

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

      How did you go? did you get it going? and are you using 3/4g or just as an inboard companion?

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

      @@noahorosw How did it go ? Same for me but with a Jetson nano instead of the pi.

  • @prandtlmayer
    @prandtlmayer  6 лет назад +3

    I didn't add any system like that, but you can use a maverick image for that purpose. In my case I just set the host name up with a unique name (i.e. raspi-uav) so then I can refer to the host name as name.local (i.e. raspi-uav.local) rather than warring about fundung the ip address

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

    Just a tip for all of you doing this project ! The pixhawk telemetry port 2 will not power the raspberrypi . You will have to solder power outlet wires from the main board , and connect a ubec to power the pi . Then you can ssh wireless to windows pc . Otherwise no connection .

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

      At least for me the pi was just constantly rebooting , never actually starting . I hdmi a monitor to pi to find this .

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

      Definitely install the ubec ! After finally loading Ubuntu Mate , the power cord that was supplied with the pi wasn't enough to power it ...

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

      Hello! Did you get it working using RPi GPIO UART connected to UART telemetry port of the flight controller?

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

      Hello
      I powered my rpi3b via the telemetry 2 port and it runs perfectly, the thing you said got me in a glitch as the setup is perfect running.

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

      @@PankajMali Hi bro, did you use the UBEC?

  • @sundaresann4749
    @sundaresann4749 6 лет назад +2

    For next video, object tracking using opencv as you said (or) tracking mobile GPS as my suggestion. Great Video! Thanks

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

      Sundaresan .N it probably won't be the next, but definitely a must do. Thanks

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

    I did it ! I got it to connect with test_connect.py at 57600 baudrate on the modified file ... COOL !!!!

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

      Now that wasn't hard at all ...

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

      I'm blown away ! Totally amazing .

  • @MrSiciro
    @MrSiciro 5 лет назад +5

    Thank you very much but please slow down a little :-)

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

    I just want to say one more thing . You're awesome for doing all of this , for all of us . Weather we figure it out or not ? We should have to pay for this type of education you give away for free ... Thank you

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

      Thanks Noah, that means a lot to me

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

      Tiziano Fiorenzani did you get a chance to look at the connection logs ?

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

      It looks like you are trying to connect with SS0. That is not possible. You need to stick with AMA0, but check the updated description for a missing part of the video

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

      Tiziano Fiorenzani Okay I will soon as I get home

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

      Okay I got it ... I can take it from here ... I will always follow your videos , and continue to build awesome QuadCopters .

  • @Ais-qc1bc
    @Ais-qc1bc 5 месяцев назад

    brother your teaching style is very good --Thank u . brother i have a problem that Mode change not work in dronekit ! no response in pychon3 but python 2.7 work properly . how i fix it??

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

    Hey Great Work. Can you make a video with a Jetson nano connected to the Pixhawk ?

  • @edinhthong5139
    @edinhthong5139 6 лет назад +2

    many thanks for a very helpful video

  • @selinayyazici8424
    @selinayyazici8424 4 года назад +2

    Hello sir, now i am working on a autonomous UAV fixed-wing project. I was happy and pleasured to see your working. Thank for that. I have an issue that when i tried to install samba i am having problems as temporary faliure resolving 'raspbian.raspberrypi.org'. I searched for solution but couldnt find helpful one. Hopethat you will help me about that.
    Have a nice day

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

      Samba is just a tool for helping you sharing content. You could also use an ftp server (Like the one already included in MobaxTerm), or git

  • @umutcanargun5108
    @umutcanargun5108 2 года назад +1

    Hi, Tiziano. Thanks for the tutorial, it's an excellent work. I have a question also: I have a raspberry pi which is to run a Dronekit-based object detection program; How can i access to my raspberry pi over the Mission Planner to get the object detection program started before the drone takes off?

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

      Connect through wifi and build a simple user interface in python for example. Send UDP messages to command your raspberry pi

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

    Simply amazing, grazie!

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

    can you show us how to run any Python script on RPi and see the simulation on mission planner ? A small video this would be very helpful, thank you in advance

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

    to ssh into raspberry pi 3 just take the ssd card, install ubuntu on it, then go to the roots folder and create a folder called ssh
    then get your ip scanner of choice, connect the raspberry via LAN and scan for your pi
    everything else is common, go to terminal, ssh pi@ip and your in like flinn with raspberry as password

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

      Course you can, but when you have multiple boards connected, the easiest way to me is to give each of them a different host name and then connect with name.local, rather that sniffing their ip every time

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

    Great, thanks. i am anxious to learn more about the capabilities of a companion pc. Are you going to be making more videos about writing your own scripts. can you point me to some good resourcers on this topic.

  • @mrzfpv7871
    @mrzfpv7871 Год назад

    hello i have been following your tutorial for some time and i was able to this raspberry Pi and Pixhawk connection successfully and now i have to use a different controller the cuav v5++ but i tried the same way as the Pixhawk but it's not able to send data i will be happy if you could assist because it is for my 2nd year project i will be happy to share the progress of the new drone with you if you are interested

  • @ser7ser7i
    @ser7ser7i 5 лет назад +2

    Thank you

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

    Hi i did all the steps following the video and even disable rpi 3 bluetooth, however i got an error which state serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttACM0: [Errno 2] No such file or directory: '/dev/ttACM0'

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

      Ok, by default ACM0 is given to the bluetooth. Check again that step. Otherwise you can use the default port, should be ttyS0 (?). You can check with ls /dev/tty*

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

    hi Tiziano, Thanks for this awesome tutorial video, I have one question, is the procedure explained in the video same for CC3D flight controller also ?

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

      As long as is Mavlink and runs Ardupilot it should be ok

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

    pi@raspberrypi:~/drone/how_do_drones_work/myscripts $ python test_connect.py
    Traceback (most recent call last):
    File "test_connect.py", line 9, in
    import dronekit_sitl
    ImportError: No module named dronekit_sitl
    pls help

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

      Dronekit SITL does not run on the Raspberry Pi. I use it only on a Linux PC

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

    Sir, can we connect pixhawk 2.4.8 with raspberry Pi and install drone kit?

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

    Awesome video .

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

    how the (public?) IP address is managed? Is there an AWS-like service to connect and reach the drone "node" when we go connected?

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

    For those of you who are trying this on ardusub companion software
    -username:pi
    -password:companion
    You will thank me later :)

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

    It qould be amazing to controll the drone with 3g network. Nice video btw

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

      It actually is. For example check this video: ruclips.net/video/iUctV-tqh_M/видео.html or even this example with a Navio2 (basically a Raspberry Pi on steroids) diydrones.com/profiles/blogs/navio-awsome-flight-controller-from-emlid-tested-with-4g-cellular

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

      Yeah that's exactly what I am currently working on.
      I use a Huawei 4G LTE USB modem with a Sim inside.
      I created a crontab entry that automatically connects to an openvpn Network after system boot.
      This way the drone is reachable over the internet from any GCS that is connected to the same OVPN network.
      Additionally mavlink-router service must be installed, configured and running in background so that the telemetry traffic is
      routed from udp socket to the serial port and back.
      It takes a bit of work but once it runs stable it is indeed very powerful. The remote control range over mavlink of your drone is now unlimited as long as mobile reception is available.

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

    Sir can you please guide me about how do i connect apm 2.8 with raspberry using usb..... I tried connecting it using uart but failed miserably now not even connecting to mission planner..... Please help sir

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

    I noticed that at the start of this video you you listed the Intel Edison as an option. That seems, to me a better option, so can you do a video on that setup? Or tell us how to use this instead?

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

      Intel recently dropped the whole Edison project, in case you haven't heard already.

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

    I can not installing samba to raspberry pi 4 . There is many errors occurs. can u help

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

      I don't understand why. In my case, you can Use MobaxTerm for ssh and SFTP all in one tool

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

    Dear sir, fantastic vídeo!
    Can se aplly thís to a homnibus f4 or f3 series flight controles boards?

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

      As long as you flash Arducopter on it

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

    earlier in the video it shows connection by serial to the raspberry pi. later it shows connection via micro usb. which one should we use?

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

      For a quick debug you can use the USB. I'd recommend the serial port for your application, as sometimes the USB could trigger some debugging mode you don't want during the flight.

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

    What about connection of Pixhawk and Jetson Nano?

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

    Hi.
    I am very interested in this tutorial, but I don't know if you already updated the repositories of how_do_drones_work.
    Could you do a new tutorial?
    Good evening
    Bye

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

    Hello,
    I'm using pixhawk flight controller. The problem is with banking angle which was shown in the flight data screen. When I roll the flight controller to left, it's banking to right and vice versa. Can you help me out to solve this problem?pls help

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

      it looks like you mounted the autopilot backward or the parameter AHRS_ORIENTATION is not correct

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

    Perhaps we can do a python script to display osd information ?

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

    Very interesting ! it's just what i'm trying to make!
    If I would like to buy a new drone (or make myself...) with pixhawk connectable to Rpi3 the way you show, where can I try ?

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

      marcoHammond check out the Ardupilot.org or px4.io website, in their companion pc page. You can find even other all in one solutions

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

    I am getting this error even after ensuring that all the above steps are correctly done. Please help !
    >>>> Connecting with the UAV > Link timeout, no heartbeat in last 5 seconds
    >>> No heartbeat in 30 seconds, aborting.
    Traceback (most recent call last):
    File "test_connect.py", line 18, in
    vehicle = connect(connection_string, baud=baud_rate, wait_ready=True) #- wait_ready flag hold the program untill all the parameters are been read (=, not .)
    File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2845, in connect
    vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
    File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2117, in initialize
    raise APIException('Timeout in initializing connection.')
    dronekit.APIException: Timeout in initializing connection.

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

      What arguments do you pass to th script? How are you physically connected to the autopilot? What hardware are you using?

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

    I am always confusing about onboard and offboard topic... Could you answer it ? For instance, If I connect my any NVIDIA Jetson to my pixhawk though the UART, what will we say about it? Onboard or opposite?

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

      For offboard you mean the state in which PX4 accepts external commands?

  • @FelipeLopez-ky3jp
    @FelipeLopez-ky3jp 4 года назад +1

    Hi, can i use the first generation of raspberry pi?

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

    I am using pixhawk 4 and a Raspberry pi 4 and connected them in serial through telem2 port on pixhawk 4. So I am using /dev/ttyAMA0 with baud rate fixed at 921600 (following ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html) but I have no heartbeat. Can you help me when I run test_connect.py

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

      if you used pixhawk before, you should delete all files into pixhawk sd card.

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

    thank you sir, will this work for fixed wings too?

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

      Yes, I have a video and a library that I developed just for fixed wing

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

      @@prandtlmayerthank you for replying 😊.. yes sir i have watched it . its only about simulation will it work real models?

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

    I have an APM 2.8, If I connect the RPI on the telem port, then where will I connect the telemetry module used for connecting to the ground station through the Mission planner? There is only one TELEM port. Is there any way I could use both with APM?

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

      Apm is not a good choice. Use any 32 bit board

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

    Thanks for the great tutorial Tiziano, something I was looking for.
    I have a little and strange problem though.
    I am not able to connect over USB (ttyACM0), connection times out. I do see ttyACM0 appear and disappear (ls /dev/tty*) as I plug and unplug USB cable but the following python script keeps on failing
    >> vehicle = connect ("/dev/ttyACM0", baud="115200", wait_ready=True)

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

    Lost me at configuring smb.conf and cannot discover pi on network.

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

      Solution: For those of you that have a similar problem - go to Control Panel>Programs and Features>"Turn Windows features on or off" (left panel)>check "SMB 1.0/CIFS File Sharing Support"> reboot.

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

    Witam. poproszę podaj linki do pobieranie, wsady oprogram dla rapberry pi? czekam odpowiedzi, dzięki.

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

      Links should be in the description.

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

    Hello again. I'm trying to autonomously fly the quadcopter to a particular altitude using a raspberry PI. But each time I test it, the quadcopter seems to move in a diagonal direction to the desired altitude. It's never straight. Any reason why?

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

      what copter version are you running?

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

    I am running raspberry pi 3B+ with APM 2.8
    When running your python test script my program terminate at "CRITICAL: Initialize APM..." the exact message displayed can be seen bellow. PLEASE HELP
    >>>> Connecting with the UAV > %Run dronekit_test_03.py

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

      APM 2.8 is not compatible. Move to a 32 bit controller

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

    Thanx so much

  • @user-qb8ut4jt3l
    @user-qb8ut4jt3l Год назад

    Can you connect the telem2 of the pix hawk to giout tx and rx pin of the raspi if you have a 4ghat on the raspi already?

    • @prandtlmayer
      @prandtlmayer  Год назад

      As long as those pins are unused, yes. You can also use a USB connection

    • @user-qb8ut4jt3l
      @user-qb8ut4jt3l Год назад

      @@prandtlmayer how can you check they are not used ? I could not find any video explaining the commands to change to have it connected to usb of raspi.

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

    plz tel me one thing how i can find coordinates while ardu connected with GPS and we take image from picamera ?????

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

      Once connected, use the vehicle.location field

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

    Hello, excellent video really helpful.
    I have a question, I'm looking into adding a linux computer to my projects but I am still not sure wether is better to add a Raspberry pi to a pixhawk controller or if I should go with a controller that alredy has the computer inside of it like the Beagle Bone Blue, what would you recommend?

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

      If this is your first built I'd say keep things separated, a microcontroller based flight computer and a Linux companion PC.

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

      Tiziano Fiorenzani thank you. Do you have a recommendation on which pixhawk to buy?

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

    I am getting this error in the throttle part any reason why ?
    print("Maximum Throttle: %s" % vehicle.parameters['THR_MIN'])
    File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in __getitem__
    KeyError: 'THR_MIN'

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

      Since the time of the video, they changed the name of the parameter

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

      @@prandtlmayer is there a new name, also I have been researching, does it support pixhawk 4 ?

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

    Great video. One question. I want to run dronekit python code from Raspberry Pi while connected to Pixhawk. And I want to see the process from mission planner which is connected with Piaxhawk with telemetry radios. When I tried it, it says mode 0 not available on mavlink definition. Don't know how to solve. Thank you

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

      최정훈 stick with the tutorial. Have you followed step by step?

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

    It would be helpful if you explained what and why you were doing things instead of just telling the steps... I do know how to set it up but I have no clue why you changed the memory to 1024 and what’s X11 tunneling is

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

      If you watch the other videos of the playlist they might answer you why I am setting up a companion PC. In this video I just show how. The swap memory is jist the virtual memory, that is a little small but default.

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

      @@prandtlmayer Thank you for your answer, indeed it helped.

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

    Would it be possible to connect a raspberry Pi to other flight controllers like the Mamba F405 directly with a raspberry pi? I am trying to do so using serial or PPM or SBUS but cannot find out how. It seems like the raspberry pi must act like a radio-controller. Would I need to use Betaflight or something else?

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

      As long as you know the protocol, you can connect with whatever you want. The very least interface level is using Servoblaster for controlling Gpios as servo and interface to the board as a radio receiver

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

    Sir, 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) ? I am trying to connect a Raspberry Pi to the Pixhawk Cube on the 3DR solo mainboard to implement a autonomous object tracking function.

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

      It's possible even though is not recommended. The autopilot might think it's in debug mode. Check it out on the Ardupilot forum

  • @rohaya-_-
    @rohaya-_- 4 года назад

    Is dronkit supported raspberry pi 4 + rasbian buster sir ?

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

    Can I install win10iot core for rasp pi 3, (I will plug a small stick 4g modem I hope drivers will work on win10 core). And then install mission planner windows version to rasperry pi 3 and control the pix hawk 4 via bluetooth or wired connection?

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

      I don't know, but it's worth trying

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

    very greatful Thankyou for the push, got everything to get going just 1 question. Do you need both drone kit and Mavlink on the RPi. In the documentation it says you can load dronekit if you want to do tracking and add other features but is not clear if it is required to run just mavlink over 3/4g? If all you want is to control the drone not have video tracking and such, also it states that most of dronekit is in the mavlink API.
    After your little push I have done a lottttttt of reading and taken the huge learning curve as you suggested and followed your advice and I am very grateful that you pushed me to do that. Your right it is much more fun to do it yourself, I just didn't think I had the time so thanks for pushing me off my lazy Butt.
    Also did you every get around to do a dronekit Fixed wing/Plane setup? You mentioned that you had been working on such a video. I have not been able to find your video if so, so if you have could you please link it.
    Thank you again really appreciate it Gus

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

      I am just collaborating with the local College for a paper about Fixed Wing and Obstacle Avoidance. I am developing the libraries and the SITL. So I will probably come out with a video about it soon.
      As for your question, Mavlink is just a protocol, dronekit is sort of a wrapper around the library pymavlink. It makes things much easier for you to handle a vehicle through mavlink interface, creating the object vehicle with lots of properties and methods and giving you the chance of creating your own messages and reading other messages using listeners. You can run dronekit on the companion pc as well as on the ground: it does not matter, as long as you specify the connection port.
      I have been using mavlink-router a lot to share the connection with the system to all the other nodes running on the same network. It's sort of mavproxy but lighter weight

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

      Tiziano Fiorenzani so on your github repository would the mavlink api's work for a plane? Also just so you know after some reashearch all I want to do is be able to control my plane over3/4g with mavlink. Mavlink would give me the ability to actually do really long controled flights with a joypad or stick over mission planner GCS. I will obviously want to go further as I get into it but as for now its so I can switch to cruise mode then take over with FBWA and simple controls. Not image recognition or avoidance at the moment. Although that would be a fantastic thing for a plane but would need better than hobby grade sensors.
      If you could let me know if you feel that simple control through a GCS with just mavlink is achievable such as some of the videos on youtube of people just using gamepads to fly 15km it would be great.
      O and thank you not only have you made me study up on drone stuff I am making a RPi magic mirror for a family member with dementia to help them and integrating it with google home to try and make their life a little easier and it was your comment 'what fun would that be when I ask if I could just buy a RPi setup for flight so you have help in many ways, I am very greatful.

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

      Studying is the key. Never give up on studying, never feel lazy. Nothing is worse than laziness for an engineer. I had done that mistake in the past, never again.
      Anyway, I just setup a very nice python library for controlling a plane and I will be releasing the first issue with a video. It won't be long. You can arm and takeoff as a copter, control altitude and heading angle... very nice to expand.

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

      Tiziano Fiorenzani looking forward to it. Am subscribed so look forward to a notice about the video.

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

    After executing the test code I get back the following error:
    pi@raspberrypi:~/Rover $ python2 Test.py
    >>>> Connecting with the Rover

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

      Probably you haven't set the connection properly. Check the connection and the serial ports baudrate are set the same

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

    Can you do a video how to setup Ardupilot with a cellular radio control link?

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

      That is something I should learn myself first

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

      David Kaden have a look at ANDRUAV. There are not many videos which I hope to rectify but it works straight out of the box with a phone one drone conected to pix and phone as GCS. I use it and works really well.
      I am trying to muddle my way through getting a RPI setup going then will swap over and see if any better than ANDRUAV. Free download only works on android. O and its free.

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

    'sudo apt-get install python-wxgtk2.8 fails with: ''Reading package lists... Done Building dependency tree
    Reading state information... Done Package python-wxgtk2.8 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
    Package libwxgtk2.8-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

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

      Solution: Use python-wxgtk3.0

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

    Hi, for this method. is work for Raspberry Pi 4B and Pixhawk Cube Orange?

    • @prandtlmayer
      @prandtlmayer  2 года назад +1

      There isn't any reason why not

    • @hansvaliancius
      @hansvaliancius 2 года назад +1

      @@prandtlmayer great ! Thank you for your reply😁

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

    First of all, thank you for your time on providing usefull tips for us.
    I'm really trying to do this connection using the FC telemetry port and RPi3 UART, but without success. My python code using dronekit works well using NanoPi NEO Air companion computer, but not using RPi3B+. I tried with RPi4B too, nut without success. I followed a lot of tutorials to config the UART ports in Raspberry Pi, but none of them made the thing works. Some data is arriving at /dev/ttyAMA0 according to minicom, but dronekit cannot stablish connection. Could you please give me any help with this? Thanks in advance!

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

      Probably you have still AMA0 assigned to Bluetooth. Check ttyS0

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

      Tiziano Fiorenzani, it was the ground cable. I forgot it was mandatory to close the circuit with the UARTs. Thanks a lot for your time.

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

    500th like! thanks for this

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

    Hi everybody. Does Ardusub support to connect pixhawk 2.4.8 with pi 3 model B ?

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

      Are you using a 32bit board?

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

      @@prandtlmayer yes. Pixhawk is a 32 bit board. ArduSub firmware is provided for many of these platforms, but only the Pixhawk 1 is fully tested and supported. So i just want to know there is someone test pixhawk 2.4.8 with ardusub

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

    Bro can you tell how to install latest firmware on pixhawk of arducopter 3.4

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

      Well, bro, 3.4 is probably a two year old version. In any case, you can use any Control station software you like, like Mission Planner. Follow the wiki on ardupilot.org

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

    I am a little new at this and I am trying to build a Drone capable of autonomous flight. what can we do with connecting a raspberry pie? could send and receive data wirelessly (using Bluetooth or something else) ? and also could you connect a raspberry pie in a similar fashion to a audupilot? Thanks a lot :)

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

      Anshul Arora but this series is about that. I think you need first to step back and study deeper Ardupilot on Ardupilot.org, go through the wiki and then you can think of doing more advanced things

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

    is there any reason why we use the lite version of raspbian ?

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

      You don't need a lot of the included software

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

    Hi. I've been trying to connect an APM 2.6 to Raspberry PI. The mavproxy.py executes correctly wherein I can arm the motors. But when I run the dronekit_test program is not able to arm the motors. In both case I'm accessing port /dev/ttyACM0. Can you please help me out? Thank you.

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

      Do not use APM2.6. It's too old. Use any 32 bit platform

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

    Please Help me.
    at 6:07
    I have a problem like this
    Package python-wxgtk2.8 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'python-wxgtk2.8' has no installation candidate
    E: Unable to locate package pyhton-matplotlib
    E: Unable to locate package pyhton-numpy
    E: Unable to locate package libxm12-dev
    thanks!

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

      Are you on python 2.7?

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

      @@prandtlmayer Oh! thank you so much. I fixed it

  • @RohitPatil-xz9jj
    @RohitPatil-xz9jj 6 лет назад

    Great video, sir. I am getting an error that /dev/ttyACM0 doesn't exist (can't open the port ttyACM0) Can you help me, please?

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

      type ls /dev/tty* and check what ports you have. If you plug the autopilot with a USB cable (not recommended for real flight, use the UART instead), the port is usually ttyACM0 unless there is something else on that port or the port is still appended to the previous session. It will then assign ttyACM1 or ttyACM2.... If you use the UART, the predefined port on the Pi3 is ttyS0 or ttyAMA0 if you have disabled the bluetooth (as stated in the description)

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

    Can i use pixracer along raspberry pi?
    Is there any difference between pixhawk and pixracer and pixhawk mini?

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

      arpit srivastava course you can. Any autopilot running ardupilot will do

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

    ciao tiziano!video fantastico! tutto questo serve per avere una connessione remota dal drone al pc? ma é una connessione 4g ?spero di essermi fatto capire! grazie in anticipo!

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

      Il tipo di connessione e' indipendente. Puoi connetterti con il companion pc tramite il wifi (che per quanto mi riguarda e' la cosa che faccio solitamente). Puoi certamente connettere un modem 4G all Raspberry e connetterti ad internet. Questo e' ottimo se vuoi gestire il tuo sistema da remoto, molto remoto.
      La Pi3 ha il wifi built in, e con un access point di buona fattura puoi avere un range di alcune centinaia di metri

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

    Hi, I want to integrate my own Android app with Tower. My current app connects through raspberry pi hotspot. But tower requires internet access. So how should I integrate my app with tower provided my raspberry pi acting as a hotspot(access point).

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

      Dheeraj Chaudhary tower requires internet only for downloading the map. After that you should be good. I used it in conjunction with mavproxy on the pi multiple time

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

      okay got it, will try again.

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

    I'm only here to check how he made his wire, but I don't see him showing it???
    Did I miss out anything????

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

      Asterio No, "he" doesn't show the wiring, but refers to a detailed documentation in the description: ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html

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

      Sorry I just realised what an idiot I was...
      Thanks so much for the video! it helped a lot.

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

    Can I connect Arduino mega to Pixhawk through the USB port?

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

      I would not recommend that, but if you run mavlink on Arduino, then yes

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

      @@prandtlmayer Thanks for the answer ❤💐

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

    Tiziano, firstly thank you so much producing all of the onderful videos. I have a question though I got copter working just great I cant get plane to work as when it tries to download the plave zip file it says the file is not available. is there a super secret location where all the planes are kept:) thanks in advance#

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

      I don't understand what file is trying to download. Anyway, my next video is about plane. Hold on

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

      Sorry I was talking about using dronekit-sitl. It turns out the AWS instance that holds the plane image was down. I followed these instructions and in addition I configured USB as eth so that I can sh direct over USB by using this guide www.thepolyglotdeveloper.com/2016/06/connect-raspberry-pi-zero-usb-cable-ssh/

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

      I personally don't use dronekit-sitl anymore, only if you want to test basic control, but the version of the firmware is outdated. If you run on Linux machine (not raspbian), you can run the ardupilot sitl with sim_vehicle.py. In windows you can do the same (even though it's a little bit more involved) or you can use Mission Planner and let it download the latest master rerlease and simulate it. I have a video about this

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

    i am running a sub rov and its set up using Raspi3 with a holybro Pix4. the Pix4 died on me and was given a a radiolink pixhawk4. Looks the same but it would not connect to the RSPi. So i updated the Pix4 with a pix4 firmware and still nothing. I am new to this and so been searching all over the net for 3 days for a solution. any suggestion? Thank you.

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

      What firmware are you running

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

      @@prandtlmayer good news i manage to get the sub rov to work. I use the Qground control. Discovered i had lost power to the dc distribution system because of a faulty hobbywing ESC. Got that changed out bit now my sub's thruster will only turn in one direction. I swapped the thruster with a brand new unit but still the same result. Tried to swap channel on the Pixhawk but the results are the same. The ESC is the identical make and model as the faulty unit. Maybe it needs to be setup as its a new esc? Any advise?

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

    do this steps apply to the raspberry pi zero? I want to set it up as a companion pc and write python scipts and maybe opencv.

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

      luis hernandez i setup the pi zero in the same way. Works nice, but not as powerful as the 3

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

    Hi tiziano can you please provide the details for the file, as i think you have removed or edited the python file dronekit_test_03.py

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

      its renamed but still file 3 so just use that

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

    more tutorials!

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

    Any updates?

  • @azarojas1
    @azarojas1 11 месяцев назад

    BUENAS NOCHES ME GUSTAN TUS VIDEOS PUEDES PROGRAMAR MI PC PORTATIL A DISTANCIA Raspberry Pi a un Pixhawk con Ardupilot/PX4

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

    Is there other board can be connected with raspberry pie

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

      Every autopilot compatible with Mavlink in general. For dronekit, better Ardupilot

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

    4:49 - shouldn't it be "browsable' instead of 'browesable'?

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

      Actually is "browseable" : www.samba.org/samba/docs/current/man-html/smb.conf.5.html

  • @dr.kamaljitbasan245
    @dr.kamaljitbasan245 4 года назад

    Can I use Raspberry Pi 4 with Pixhawk

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

      Anything will work, any Linux or windows board

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

    Is there a way to connect pixhawk 2.1 to raspberry pi?

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

      Same way. Through the telemetry port

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

    4:59 We can't access to scripts folder before enter our password. Eventhough we write the password correctly we can't open the pidrone and access to scripts. The error is "Access is denied".

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

      It says we don't have permission to access to the RASPBERRYPI network

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

      Verify you have followed all of the steps for setting up the board. You can also switch to "Mobaxterm" that includes an ftp server with drag and drop, so you can skip samba completely

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

      @@prandtlmayer Thanks a lot for your answer, we opened file on PuTTy and made changes in it but we ended up with an error:
      Traceback (most recent call last):
      File "test_connect.py", line 80, in
      print("Maximum Throttle: %d"%vehicle.parameters['THR_MIN'])
      File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in getitem
      KeyError: 'THR_MIN'
      We couldn't understand the error and we don't have much time. Can you tell what's wrong?

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

      @@prandtlmayer We suppose 'THR_MIN' is no longer available as a parameter, what should we use instead of 'THR_MIN' ? Will 'THR_PASS_STAB' work?

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

      Hello. the same problem happened with me. how did you solve the problem.

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

    Hello,
    Hope all is well. Just a quick question on your companion computer (RPi) interface. How's the reliability with connection between micro USB port on Pixhawk to USB A port on RPi? Will it be reliable enough for running control loops on RPi while flying?
    Thank you in advance,
    AK

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

      Reliability is good, but I would not go that way. Use the serial port instead. You can go as fast as 1Mbps and does not have all of the hurdle and fragility of USB

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

      @@prandtlmayer Thank you for your input! Will set up to use serial port instead of USB.

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

    Hi. I am new to RP. Does all the programs work with RP 4 version? Thanks.

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

      Every single board computer running a Linux distribution would work. Some are better than others, but the raspberry Pi covers most of your projects and has a good support from the community

  • @nebil.b
    @nebil.b 5 лет назад

    Hi Tiziano, great video, how can I chose my flight controller? I'm seeking a more cheaper FC instead of Pixhawk that can run with raspberry pi + px4/ardupilot.. Because I'm in a project that will involve multiple autopiloting drones with flightpaths. Thank you.

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

      There are many flavors and I do have my favorites. As for you, it depends on your budget. If you are setting up a cheap system, go with any 32 bit "pixhawk" clone (hobbyking, holybro, rctimer...) They will work fine, run Ardupilot or PX4 and they connect to any companion. If you need smaller boards, there is the pixfalcon and similar you can check out. The difference is that the smaller boards usually have only one IMU. Otherwise you can lean towards a RaspberyyPi hat type, like the Navio

    • @nebil.b
      @nebil.b 5 лет назад

      @@prandtlmayer Thank you very much.

    • @nebil.b
      @nebil.b 5 лет назад

      Sorry to bother you again Tiziano.
      Ciao, I will go for pixhawk or navio2 like you suggest, my project involves gps missions with the support of ardupilot or maybe px4. I've seek info about the pros and cons of both flight controllers but it seems that there isn't a reliable reviews about witch one chose. Seems like Navio2 has a better gps tracker (?).
      Any suggestions? And thank you again.
      Regards from Verona, Italy.

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

    I can't wait till the Edison video ! I love Intel processors ...

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

      It's just a matter of ! "Focus on the added value " .

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

    Is there a need to install MAVProxy for this?

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

      You don't need to. You are ok with the SITL already. Mavproxy is a great tool to know though, very useful if, for example, you want to share your one connection with multiple computers, phone apps...