Download Print this page

Advertisement

Quick Links

Welcome to our website!
Thank you for choosing our "PCA9685" 16 channel servo driver from AZ-
Delivery. In the following pages we will explain how to set up and use the
device.
Have fun!

Advertisement

loading
Need help?

Need help?

Do you have a question about the PCA9685 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for AZ-Delivery PCA9685

  • Page 1 Welcome to our website! Thank you for choosing our "PCA9685" 16 channel servo driver from AZ- Delivery. In the following pages we will explain how to set up and use the device. Have fun!
  • Page 2 Areas of application Education and teaching: Use in schools, universities and training institutions to teach the basics of electronics, programming and embedded systems. Research and development: Use in research and development projects to create prototypes and experiments in the fields of electronics and computer science. Prototype development: Use in the development and testing of new electronic circuits and devices.
  • Page 3 consult a doctor. Caution: Keep the product out of the reach of children and pets to avoid accidental contact and swallowing of small parts. Note: Store the product in a safe, closed container when not in use. Attention: Avoid contact of the product with food and drinks.
  • Page 4 The "PCA9685" module is an I2C bus controlled 16-channel PWM controller module for Atmegaa328p and Raspberry Pi applications with servo motors. Each PWM servo output has a separate internal PWM controller with 12-bit resolution (4096 steps). The PWM output driver can be programmed either as a "drain" with a 25mA current sink at 5V or as a "dead pole"...
  • Page 5 I2C bus - clock line >SDA input I2C bus - data line > VCC max. supply voltage 5V (for PCA9685) > V+ max. supply voltage. 6V (for servos) Pin 6 should remain unconnected. Instead, use the green screw terminal on...
  • Page 6 Output release The active LOW output enable input pin (OE) enables asynchronous control of the PWM outputs and can be used to set all outputs to a defined, programmable I2C bus logic state. The "OE" can also be used for external "pulse width modulation"...
  • Page 7 Black wire PWM - base frequency The PCA9685 has an adjustable PWM base frequency of 24Hz to 1526Hz, whereby the accuracy of the PWM base frequency is not very high as the internal oscillator is used as the clock generator. The PWM base frequency is determined via an internal, programmable prescaler value, which is written to the 0xFEh register.
  • Page 8 Power supply of the module/output current limitation There are two positive supply pins and a ground pin on the left-hand connector strip of the module. The positive supply pins are labelled Vcc and V+. Vcc is the supply for the PWM chip and not for the servos! V+ should not be connected However, the servos should be powered via the green power supply terminal on the top of the board, using a power supply unit of the appropriate rating.
  • Page 9 Control of several modules If 16 outputs are not sufficient for a project, additional modules can be interconnected with the I2C bus. The wiring required for this is shown below: Please note that the Atmegaa328p can no longer supply the individual servos at this point at the latest.
  • Page 10 The addressed solder bridges A0 to A5 on the module should then be wired differently for each module according to the binary code (counting upwards): PWM modules: Solder bridge for: I2C address of the module: No connection 0x40 0x41 0x42 A0 and A1 0x43 0x44...
  • Page 11 I2C address of the module must be changed. In the code, this address is set by driver.init(B000000);. The library and sample code We use library "Adafruit PWM Servo Library" To integrate it into the Arduino IDE, go to in your Arduino IDE: Sketch >...
  • Page 12 The example can be easily uploaded to the microcontroller. This example controls the first eight servos and moves them forwards and backwards in sequence. If you have connected several servos (or fewer), you can adjust the If query in the penultimate line (114). if (servonum >...
  • Page 13 You have done it. You can now use our module for your projects.
  • Page 14 If you are looking for other high-quality products for Arduino and Raspberry Pi, AZ-Delivery Vertriebs GmbH is the right place for you. We offer you numerous application examples, detailed installation instructions, e-books, libraries and, of course, the support of our technical experts.
Save PDF