|
Re: Arduino Micro with Talon SR
Quote:
Originally Posted by AdamHeard
I'd skip the servo function and instead use servo.writeMicroseconds.
Cleaner control numerically.
1000 is rev, 1500 neutral, 2000 forward.
|
Quote:
Originally Posted by AdamHeard
You're missing what I'm saying. servo.write() takes 0 to 180 degrees as an input and controls a "Servo". servo.writeMicroseconds() explicitly takes the pulse you would like to generate, which for a talon is 1000-2000 w/ 1500 at center. This leaves you a nice +/- 500 integer swing for clean math.
|
This is my experience as well. I do it this way because I get higher resolution of the command signal. It allows more precise control of the motor or servo.
Now, if you only need +/- 90 steps instead of +/- 500, then using servo.writeMicroseconds has no advantage.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|