Preflight checklist: companion computer ✅
In this tutorial, I show you how to connect your PixHawk to both the Raspberry Pi, and an NVIDIA Jetson (a Nano in this case). This includes:
- Soldering a serial cable that connects to the telemetry port (TELEM2)
- Which GPIO pins you need to use
- How to setup MAVProxy and its dependencies
The steps shown should also work for newer models of the PixHawk (eg, Pix32v5, Pixracer, Hex Cube). Just make sure to pay attention to the cable soldering - everything else should remain the same.
A203 Carrier Board - Seeed Studio
https://www.seeedstudio.com/A203-Carrier-Board-for-Jetson-Nano-Xavier-NX-V2-p-5214.html
↓ Scroll down for the terminal commands ↓
Special appearance: Sasha Walters (dog)
Thanks to: Seeed Studio (https://www.seeedstudio.com/)
Chapters
00:00 - Introduction
00:49 - Serial cable for PixHawk
02:21 - Software setup
02:42 - Jetson Nano GPIO to PixHawk
03:41 - MAVProxy installation (Jetson Nano)
04:54 - Raspberry Pi GPIO to PixHawk
05:41 - MAVProxy installation (Raspberry Pi)
08:28 - Wrapping up
😎 Social Stuff
Twitter: https://twitter.com/akamatchstic
Patreon: https://www.patreon.com/akamatchstic
⚙️ Commands
(copy/paste without the $)
Jetson Nano:
$ sudo apt-get update
$ sudo apt-get install python-pip python3-pip
$ sudo apt-get install python3-dev python3-opencv python3-wxgtk4.0 python3-matplotlib python3-lxml libxml2-dev libxslt-dev
$ sudo pip install PyYAML mavproxy
$ sudo mavproxy.py --master=/dev/ttyTHS1
Raspberry Pi:
$ sudo raspi-config
$ sudo nano /boot/config.txt
$ sudo reboot
$ sudo apt-get update
$ sudo apt-get install python3-pip
$ sudo apt-get install python3-dev python3-opencv python3-wxgtk4.0 python3-matplotlib python3-lxml libxml2-dev libxslt-dev
$ sudo pip install PyYAML mavproxy
$ sudo mavproxy.py --master=/dev/ttyAMA0
🌐 Links
MAVProxy with systemd
https://github.com/Matchstic/MAVProxy/wiki/Running-as-a-systemd-service
🎵 Music
BVG x møndberg - insomnia
Listen: https://www.youtube.com/watch?v=9sCEjO3tMaE
BVG x møndberg - The World At Night
Listen: https://www.youtube.com/watch?v=mRbLu_xiM7c
Kanisan x no one's perfect - Gentle Wind
Listen: https://www.youtube.com/watch?v=wUsdJhNS8Mc
BVG x møndberg - Fireplace
Listen: https://www.youtube.com/watch?v=b-5Z5MtHd00
Keywords: NVIDIA Jetson Nano, Raspberry Pi, PixHawk, MAVProxy, serial