Skip to content

RPi PilotPi Shield

WARNING

PX4 does not manufacture this (or any) autopilot. Contact the manufacturer for hardware support or compliance issues.

The PilotPi shield is a fully functional solution to run PX4 autopilot directly on Raspberry Pi. It is designed to be a low-cost but highly scalability platform with continuous updates from both Linux and PX4 sides. No proprietary driver is required, as all components have upstream support from RPi and PX4 community. PCB and schematic are open source as well.

PilotPi with RPi 4B

Quick Summary

  • Supported RPi boards:
    • Raspberry Pi 2B/3B/3B+/4B
  • Supported OS:
    • Raspberry Pi OS
    • Ubuntu Server (armhf/arm64)
  • Accelerometer / Gyro:
    • ICM42688P
  • Magnetometer:
    • IST8310
  • Barometer:
    • MS5611
  • PWM:
    • PCA9685
  • ADC:
    • ADS1115
  • Power:
    • 3~6S battery with built-in voltage sensing.
    • Power the Pi through USB cable
  • Availability: preparing for shipping

Connectivity

Shield provides:

  • 16x PWM outputting channels
  • GPS connector
  • Telemetry connector
  • External I2C bus connector (Note: conflicts with CSI camera)
  • RC input port (SBUS)
  • 3x ADC channels range 0~5V
  • 2*8 2.54mm unused GPIO connector

Direct accessible from RPi:

  • 4x USB connector
  • CSI connector(Note: conflict with external I2C bus)
  • etc.

PilotPi PowerPart wiring

PilotPi SensorPart wiring

Pinout

WARNING

It still uses old GH1.25 connectors. Wiring is compatible with Pixhawk 2.4.8

Connectors

GPS connector

Mapped to /dev/ttySC0

PinSignalVolt
1VCC+5V
2TX+3v3
3RX+3v3
4NC+3v3
5NC+3v3
6GNDGND

Telemetry connector

Mapped to /dev/ttySC1

PinSignalVolt
1VCC+5V
2TX+3v3
3RX+3v3
4CTS+3v3
5RTS+3v3
6GNDGND

External I2C connector

Mapped to /dev/i2c-0

PinSignalVolt
1VCC+5V
2SCL+3v3(pullups)
3SDA+3v3(pullups)
4GNDGND

RC & ADC2/3/4

RC is mapped to /dev/ttyAMA0 with signal inverter switch on RX line.

PinSignalVolt
1RC+3V3~+5V
2VCC+5V
3GNDGND
  • ADC1 is internally connected to voltage divider for battery voltage monitoring.
  • ADC2 is left unused.
  • ADC3 can be connected to an analog airspeed sensor.
  • ADC4 has a jumper cap between ADC and VCC, to monitor system voltage level.
PinSignalVolt
1ADCx0V~+5V
2VCC+5V
3GNDGND

INFO

ADC3 & 4 have an alternative VCC source When 'Vref' switch is on, 'VCC' pin is driven by REF5050.

Unused GPIO available on top of the board

Shield PinBCMWiringPiRPi Pin
13V33v33V3
25V5V5V
3477
414158
517011
627213
722315
823416
971126
1052129
1162231
12122632
13132333
14162736
15262537
16GNDGNDGND

Switches

RC Inverter

This switch will decide the signal polarity of RX line: UART_RX = SW xor RC_INPUT

  • On: suitable with SBUS (signal inverted)
  • Off: preserved

Vref

ADC 3 & 4 will have VCC driven by:

  • Vref output from REF5050 if on
  • 5V pin directly from RPi if off

Boot Mode

This switch is connected to Pin22(BCM25). System rc script will check its value and decide whether PX4 should start alongside with system booting or not.

  • On: start PX4 automatically
  • Off: don' t start PX4

Developer Quick Start

Refer to specific instructions for the OS running on your RPi: