|
Re: arduino control of motor controllers
We played with this in the off season. A couple of things:
Use the version of server.attach() version that specifies pulse widths that the controller you are using likes. This is for a talon:
// motor drive server connected to a TALON
driveServo.attach(3, 1000, 2000); // TALON // widths are in micro-seconds
You will need to calibrate the speed controller. I wrote a sketch that prompts the user though the calibration starting with pressing the button and uses input from the serial port to advance thought forward, reverse, and back to idle.
__________________
Brian K
Team 1225 Robotics Mentor
|