View Single Post
  #2   Spotlight this post!  
Unread 09-01-2014, 22:35
Aaron.Graeve Aaron.Graeve is offline
Registered User
FRC #1477 (Texas Torque)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: College Station, Texas
Posts: 103
Aaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to all
Re: Precise Motor Control

You could figure out how a power value compares to an RPM through trial and error, but I would not recommend it at all.

Instead, if you have an encoder or a potentiometer around, you can use a PID control loop. There are numerous paper on CD of the code and use. The loop will use the present and past velocities of the arm (this is why you need a sensor) in comparison to the target velocity in order to compute an updated motor value. The motor value will get updated many times a second, helping your arm reach target velocity quite quickly ("quickly" depends on what motors, gearing, and mechanical arm you have). Good control loops represent programming on a higher level and can simplify quite a bit of work for your drivers, so they can focus on driving.

If you have any more questions, feel free to PM me.
__________________

2016:
Alamo, Bayou, and Lone Star Regional FTAA
2015:
Dallas, Alamo, Bayou, and Lone Star Regional FTAA
2014:
Alamo, Dallas, and Lone Star Regional FTAA
Alamo Regional Robot Inspector
2013:
Einstein Champion and 2013 World Champion (Thanks 1241 & 610), Galileo Division Champion, Razorback Regional Winner, Alamo Regional Semifinalist, Bayou Regional Semifinalist, Lone Star Regional Quarterfinialist
2012:
Curie Division Semifinalist, Lone Star Regional Finalist, Bayou Regional Winner, Alamo Regional Winner

Last edited by Aaron.Graeve : 09-01-2014 at 22:37. Reason: Grammar
Reply With Quote