I'm looking for advice to figure out with second question
I'm want to control several number of servo motors with Arduino Uno or Due controller, and use some board to plug all servos together for assembly casing box.
Adafruit 16-Channel 12-bit PWM/Servo Driver - I2C interface - PCA9685 or Adafruit 16-Channel 12-bit PWM/Servo Shield
I'm trying to figure out, if Shield is convenient since I can just plug it into Arduino controller and wire the motors direct to it, control with pins, what should be the reason for choosing Driver, if my project requires accelerating of 9 motors 0.03 sec/60° @ 4.8V speed from control application 2-3 messages per second with Arduino
If I follow this Connecting to the Arduino guide, I have to connect 5V and GND from Arduino controller to the GND and VCC of Servo Driver, and Analog In 4 and 5 with SCL and SDA, and additionally I have to power driver separately with 5V and 2 Amp adapter I guess
Then what is option to control with Driver, if it is not uses pin connection, how all servos must be controlled with separate command and degree value, because usually on breadboard to control 2 servos I use pins 9 and 11 with sending of value for example from C# desktop application, with value
Code: Select all
myport.WriteLine("9"); write myport.WriteLine(trackBar1.Value.ToString());
Code: Select all
servo1.attach(9); servo2.attach(11);
Code: Select all
val = Serial.parseInt();
Code: Select all
if(val == 9) { servo1.write(Serial.parseInt()); }
by the way, I don't have any device yet, but I've tried to check example, I have located Adafruit-PWM-Servo-Driver-Library-master folder into C:\arduino-1.8.6\libraries folder, but
Code: Select all
#include <Adafruit_PWMServoDriver.h>
Any advice, guide or example would be helpful