Skip to content

树莓派 PilotPi 拓展板

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

概览

  • 支持的树莓派:
    • 树莓派 2B/3B/3B+/4B
  • 支持的操作系统:
    • Raspberry Pi OS
    • Ubuntu Server (armhf/arm64)
  • 加速度计/角速度计:
    • ICM42688P
  • 磁力计:
    • IST8310
  • 气压计:
    • MS5611
  • PWM:
    • PCA9685
  • ADC:
    • ADS1115
  • 电源:
    • 3~6S 电池 具有内置电压监测
    • 通过USB线启动树莓派
  • Availability: preparing for shipping

连接性

Shield provides:

  • 16 x PWM 输出通道
  • GPS 连接器
  • 数传连接器
  • 外部I2C总线连接器(Note: 与CSI摄像头冲突)
  • 遥控输入口(SBUS 协议)
  • 3 x 0~5V ADC 通道
  • 2*8 2.54mm 排插,引出未使用的 GPIO

Direct accessible from RPi:

  • 4x USB 连接器
  • CSI 连接器(Note: 与外部 I2C 总线冲突
  • 其它

推荐接线

PilotPi PowerPart wiring

PilotPi SensorPart wiring

针脚定义

WARNING

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

连接器

GPS 连接器

遥控输入映射到 /dev/ttyAMA0 ,且在RX 线上有硬件反向开关。

针脚信号电压
1VCC+5V
2TX+3v3
3RX+3v3
4NC+3v3
5NC+3v3
6GNDGND

数传连接器

此开关将决定 RX 线的信号反相: UART_RX = SW xor RC_INPUT

针脚信号电压
1VCC+5V
2TX+3v3
3RX+3v3
4CTS+3v3
5RTS:+3v3
6GNDGND

外部 I2C 总线连接器

ADC3 和 ADC4 的 VCC 被以下设备驱动:

针脚信号电压
1VCC+5V
2SCL+3v3(上拉)
3SDA+3v3(上拉)
4GNDGND

遥控 & ADC 2/3/4

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

针脚信号电压
1RC+3V3~+5V
2VCC+5V
3GNDGND
  • ADC1 内部连接到分压电路以监测电池电压。
  • ADC2 空闲。
  • ADC3 可以连接模拟量空速计。
  • ADC4 在 ADC 和 VCC 之间有一个跳线帽,监测系统电压。
针脚信号电压
1ADCx0V~+5V
2VCC+5V
3GNDGND

INFO

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

拓展板顶部引出的未使用的GPIO

拓展板PinBCM号WiringPi号树莓派Pin
13V33v33V3
25V5V5V
3477
414158
517011
627213
722315
823416
971126
1052129
1162231
12122632
13132333
14162736
15262537
16GNDGNDGND

开关

遥控信号反相器

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

  • 开启:适合SBUS(反转信号)
  • 关闭:保留

参考压

ADC 3 & 4 will have VCC driven by:

  • 开启开关时:由REF5050驱动
  • 关闭开关时:从树莓派5V取电

启动模式

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.

  • 开启:开机自启 PX4
  • 关闭:不启动 PX4

开发者快速指南

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