Pixhawk 2 with Jetson TX2 Build

What’s this About

I’m rebuilding The Groundhog to a more professional level, with the level of accuracy required for the AI and computer vision work planned.  It’s also getting an upgrade to the avionics to make it more resilient.  This post details the rebuild and also has links to the 3D printed parts used.

Airframe and Power Train

The airframe and power train has proved capable and reliable over the last 18 months, so it is being retained.  It comprises:

  • Tarot 680 Pro Hexacopter airframe
  • 2 x 4S 8000mAH Lipos (connected in series)
  • 6 x Afro 20A HV Multi-rotor ESC High Voltage 3~8s
  • 6 x Multistar Elite 3508-268KV High Voltage Endurance Motor

This flies smoothly, stands up to windy conditions and gives about 30 minutes flight time.

640flip1-0010
Tarot 680 Pro underside.  Dual battery plates are mounted on camera rail.
640flip1-0012
Topside.  Labelled ESC signal wires fed through centre hole.  Pixhawk 2 power module can be seen in centre between top and bottom plates.  It is connected across both batteries in series.
640flip1-0017
ESCs are mounted on underside of motor plates and protected by 3D printed cowling.
640flip1-0016
ESC cowling gives basic protection against knocks and the elements.  STL file is available as detailed below.
640flip1-0014
Motor and ESC assembly

Avionics

The old Pixhawk is being replaced with a Pixhawk 2 for the overall improved build quality and resilience.  The Raspberry Pi companion computer is being replaced by an NVIDIA Jetson TX2.  I have flown the TX2 for a previous blog, mated to an Intel D435 depth camera.  But to do this, the entire TX2 development board was mounted to the hexacopter – somewhat clumsy, if effective!  This time, the TX2 will be mounted on an Auvidea J120 carrier board.

640flip1-0023
Much better connectors and a full suite of leads are supplied.
640flip1-0022
The Jetson TX2 mounted on the J120 Carrier board.  The TX2 has a GPU for machine learning and USB3 with sufficient throughput for depth cameras.

Assembly

Part of the more professional build is about reducing the traditional reliance on double sided tape, Velcro/dual lock and cable ties.  Let’s see how we do…

Drilling the hexacopter top plate is a non-starter as it doubles-up as the power distribution board.  The solution is to mount the components on a separate frame, in this case 3D printed from a nylon based plastic, selected for it’s strength over ABS and PLA.

640flip1-0020
Nylon frame positioned on top plate.  Frame STLs available on GitHub as detailed below.
640flip1-0029
Bolt Pixhawk 2 from beneath using M2.5 x 8mm.
640flip1-0030
USB connector is at rear for easy access.

Before the TX2 can be mounted, it’s power lead and the serial lead to the Pixhawk must be connected.  A small change needs to be made to the serial lead, as follows:

  • Use the TELEM2 lead supplied with the Pixhawk2.
  • Pixhawk side, remove the 5V, CTS and RTS wires.

640flip1-0034

  • Follow the disconnected wires through to the TX2 DF13 connector and remove them.
  • The ground wire (rightmost, below) is already correctly positioned.
  • Reverse the remaining TX and RX wires.
640flip1-0036
LHS TX2, RHS Pixhawk2.

I have learned to be wary of all beige-colour DF13 connectors, as supplied in this case.  I have previously found them almost impossible to push into a socket.  Sure enough, this proved to be the case on attempted insertion into the J120 carrier board.  The solution is to trim off the tabs on the left and right sides (image above previous to this).

640flip1-0039
From the right, 12V power, fan and UART0 (serial to Pixhawk2)

OK, so the leads are plugged into the J120 carrier board and we can bolt the TX2 down to the frame using the screws supplied with the carrier board itself.  This has to be done from underneath, similar to the Pixhawk2.

640flip1-0040
Lay the TELEM2 lead under the Pixhawk2 before bolting down the frame.

Now bolt down the frame.

640flip1-0041
Use M2.5 x 10mm front and back (8 off).  Bolts on each side are M2.5 x 8 and are through-hole into nylock nuts.

Wiring and Peripherals

Consistent with the general upgrade, the following peripherals are being used:

  • Here GNSS GPS
  • FrSky RX8R receiver
  • RFDesign RFD868x telemetry set
  • Turnigy 5A (8-26v) SBEC for Lipo (6V supply to servo rail)
  • Quanum 12V-5A (7.2 – 25.2V) Dual Output UBEC (12V supply to TX2)

First connect the ESCs to the Pixhawk2.

640flip1-0042
ESC leads out from under the Pixhawk2.
640flip1-0044
ESC connections Pixhawk2.  Also connected is the separate 6V supply to the AUX rail for later use with camera gimbal servos.
640flip1-0043
Connect the power cable right) and the serial cable (left) to TELEM2.
640flip1-0045
RX8R receiver secured to frame with 3M acrylic foam tape (the first piece!).  SBUS connected to RC IN on Pixhawk2.
640flip1-0046
RFD 868 bolted down with M2.5 x 5mm bolts.
640flip1-0060
Supplied lead used as-is for now, but will need re-doing (to be blogged next!).  This is connected to TELEM1 on the Pixhawk2.

Mount the various antennae (receiver, TX2, telemetry unit).

640flip1-0056
TX2 antennae mounted on 3D printed frame re-used from a previous project.
640flip1-0047
Reconnect TX2 wifi antennae.

All that’s left is the GPS, which can be mounted on a standard pole.  However, I am making a simple frame from nylon to do mount the Here GNSS unit which will also afford some knock-protection.  It is functional, if not beautiful…

640flip1-0054
Before the addition of the GPS unit.

640flip1-0053

What’s Next

Obviously the system needs to be tested before it can be flown.  In addition to the usual configuration settings, I am keen to check the settings on the telemetry unit to ensure the power output is legal in the UK.

Development

In the first instance, the Pixhawk2/TX2 platform will mirror the progression in my series on ROS development, which is geared at the moment to a (regular) Pixhawk/Raspberry Pi system.  However, the development paths will diverge soon when we start to use the ability of this platform to utilise advanced cameras and machine learning.

Author: Mike Isted

Head of Avionics and Aircraft Software, Manna Drone Delivery.