# 树莓派控制18个舵机可能抖动怎么办

> 原文链接：https://robotics.hellobike.com/pitfalls/2017-08-26-robotics-se-7475
> 频道：pitfalls | 更新日期：2017-08-26 | 标签：auto, stackexchange, arduino, raspberry-pi, cameras, servomotor
> 核心摘要：树莓派不适合直接用软件PWM驱动18个舵机，可把实时舵机控制交给SSC-32或PCA9685。

# 树莓派控制18个舵机可能抖动怎么办

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Can I control more than 18 servo motor with a Raspberry Pi](https://robotics.stackexchange.com/questions/7475/can-i-control-more-than-18-servo-motor-with-a-raspberry-pi)（Robotics Stack Exchange #7475）

**状态**：有绕过办法

## 问题

提问者想用 Raspberry Pi 控制六足机器人约18个舵机，并加入摄像头图像处理；当前用 Arduino Mega 和 SSC-32，感觉结果慢且动作抖动。

## 环境

嵌入式控制器 / 串口通信

## 解决办法

1. 将 Raspberry Pi 作为中央控制器，负责摄像头图像处理、避障检测和腿部位置计算。
2. 通过串口把计算结果发送给 SSC-32 等舵机控制器，由其负责需要精确定时的舵机驱动。
3. 若想更紧凑，可使用专用 Raspberry Pi 舵机扩展板，或基于 `PCA9685` 的 `I2C` PWM 驱动方案。
4. 需要超过16路时，可级联 `PCA9685` 芯片扩展通道数。

原问题作者：Arthur；采纳答案作者：mactro。原内容依 CC BY-SA 4.0 授权，本页摘要同样依 CC BY-SA 4.0 授权。
:::

## 原始参考来源 (Sources)

- [Robotics Stack Exchange #7475：Can I control more than 18 servo motor with a Raspberry Pi](https://robotics.stackexchange.com/questions/7475/can-i-control-more-than-18-servo-motor-with-a-raspberry-pi)