Skip to content
Home > Components > Logic Components > 16-Channel PWM Module (PCA9865)

16-Channel PWM Module (PCA9865)

A standard 16-channel pwm module (pca9865) used for electronic prototyping.

Component Preview

PCA9685 ModuleModule

This is the 16-Channel PWM Module (PCA9865) component available in the OpenHW Studio Simulator.

Logic ComponentsComponent

Pin Reference

PinTypeDescription
GNDpowerGround.
OEinputOutput Enable. Active low. Connect to GND to enable outputs.
SCLinputI2C Clock line.
SDAinputI2C Data line.
VCCpowerLogic Power Supply (usually 5V).
V+powerMotor/Servo Power Supply (often 5V to 6V).

Wiring Diagram

Wiring Diagram

Example Arduino Code

cpp
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>

Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();

void setup() {
  Serial.begin(9600);
  pwm.begin();
  pwm.setPWMFreq(50); // Typical for servos
}

void loop() {
  // Drive channel 0 to minimum pulse
  pwm.setPWM(0, 0, 150);
  delay(1000);
  
  // Drive channel 0 to maximum pulse
  pwm.setPWM(0, 0, 600);
  delay(1000);
}

Released under the MIT License.