Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4 @prandtlmayer
Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4  @prandtlmayer
Uploaded December 2017 | Updated September 2026, 2 hours ago
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/tizianofiorenzani/how_do_drones_work/blob/master/scripts/01_test_connect.py

*** Get the best and sign up to the course ZERO to DRONE PROGRAMMER here: youtu.be/wNw6OFxthpY

*** SHOP NOW at my store and help sustaining the channel:
teespring.com/stores/geekmeup


*** Interested in ROS (Robot Operting System)? Checkout my Playlist: youtube.com/watch?v=N6K2LWG2kRI&list=PLuteWQUGtU9BU0sQIVqRQa24p-pSBCYNv

_________________________
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: raspberrypi.org/downloads/raspbian

Otherwise you can chose Ubuntu from here: ubuntu-mate.org/raspberry-pi

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/dev/docs/raspberry-pi-via-mavlink.html

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/tizianofiorenzani/how_do_drones_work

***** 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.io/maverick/# and ardupilot.org/dev/docs/apsync-intro.html

** 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/stores/geekmeup

*** JOIN THE FACEBOOK COMMUNITY: facebook.com/tizianotutorials
Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4FAA REMOTE ID | Start of a new era - End of DIY and RC model flight?Live stream di Tiziano FiorenzaniInterDrone 2018 | Walk Through | Getting to the Ardupilot BoothSUBSCRIBER Node in ROS and debug with RQT_GRAPH | Tutorial #4 | ROS and Raspberry PiDrone Delivery and Mission Handling with PythonROS and Raspberry Pi for Beginners | Tutorial #0 - Topics Packages RosMasterDRONE VISUAL LANDING with Aruco and OpenCv | Part 2Interdrone 2018 | Meet the Developers | Michael du Breuil of SRP AeroHow to use SITL in Mission Planner for ArdupilotInterdrone 2018 | Meet the Developers | Craig ElderDonkey Car Autonomous Car virtual race
Tiziano Fiorenzani |

Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER