Driver PCA9685#
Block appearance in REPEAT VISION#
The Driver PCA9685 block describes how to connect servos via the PCA9685 controller’s pulse-width modulation (PWM) driver to Arduino microcontrollers.
The Driver name PCA9685 property specifies the name for one controller driver board.
The PCA9685 Driver modes property specifies one of five modes of mutual operation of servo drives connected to the driver:
Rotation of one servo drive – full rotation clockwise and counterclockwise is realized;
Multiple servo rotation – servos rotate at the same angle together;
Movement of several servo drives in turn – the alternate movement of several servomotors is implemented;
Rotate on command – servos rotate on command coming from the analog input potentiometer of the Arduino microcontroller;
Wave movement – a mode in which a chain of servo drives implements a wave-like movement.
&emsp
Servo rotation angleequals 0 ̊;Minimum impulse PWMsignal 150;Maximum impulse PWMsignal 600.
When selecting the WaveMovement mode, you can configure the wave parameters:
speed;
amplitude;
wave phase shift.
The Number of connected servo drives property specifies the number of input ports in the block to which the Servo motor block can be connected.
Important
The numbers of pins to which the servo drives are connected can be fed to the block input:
One driver unit can connect 16 servo drives;
Pin numbers from 0 to 15.
1. Properties#
Property |
Default Value |
Description |
Units of measurement |
|---|---|---|---|
PCA9685 Driver modes: |
Rotation |
Servomotor rotation modes |
- |
PWM signal frequency: |
50 |
PWM frequency of servo control signal |
Hz |
15 |
Servomotor rotation delay time |
ms |
|
0 |
The rotation angle of the servo drive from the initial position |
degrees |
|
Wave speed, available when selecting |
3 |
- |
- |
Amplitude, available when selecting |
45 |
- |
- |
Phase offset, available when selecting |
45 |
- |
- |
pwm |
Name of one driver controller |
- |
|
150 |
Minimum PWM signal pulse |
- |
|
600 |
Maximum PWM signal pulse |
- |
|
3 |
Number of connected servo drives |
- |
2. Inputs and outputs#
Parameters |
Input/Output |
Description |
Units of measurement |
Port type |
|---|---|---|---|---|
Input |
Input |
- |
- |
Automation |
In order to see the connection capabilities of the block, you need to go to page Description of block ports
3. Code generation#
Important
Block supports C source code generation