View Single Post
  #3   Spotlight this post!  
Unread 19-01-2014, 10:23
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
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