16-channel servo driver PCA9685 with TinkerPie
Robot arms and walking robots with many servos. Needs its own 5 V supply.
| Type | Outputs and actuators |
|---|---|
| Connect to | SENSOR port · 0x40 |
| Gives | 16 more servos |
| Simulator | Yes: a control appears under the simulated board |
How it works
The PCA9685 makes 16 separate PWM signals, so one board can control 16 servos using only two I2C wires. The servos get their power from a separate supply connected to the driver.
How to wire it
Signal pin to S1-S4 or P10-P13. Motors, pumps and lamps always go through the relay or a driver module, never straight to a pin.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
servoDriver.setAngle(0, 90)
// Arduino C++
servoDriver::setAngle(0, 90) Good to know
- Uses I2C (address 0x40); several drivers can be chained.
- Servos need their own 5-6 V supply with enough current; never power many servos from the board.
- Connect the grounds of the board and the servo supply together.
Similar modules
- Relay module
- LED module
- Traffic light module
- Laser module
- Active buzzer module
- DC fan / motor module (with transistor)
More projects to try
Questions
Can I try the 16-channel servo driver PCA9685 without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
Why do my servos twitch or the board restart?
The servos are drawing too much current. Give the PCA9685 its own 5-6 V supply and join its ground to the board ground.