View Single Post
  #2   Spotlight this post!  
Unread 29-01-2010, 11:08
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Jaguars, what can we use in FIRST 2010?

Quote:
Originally Posted by Al Skierkiewicz View Post
<snip>
As a reminder, the power wiring does contain some resistance that you should add to your calculations.
<snip>

Yes you are right, the voltage on the motor will not be as simple to calculate as it might be (e.g. battery voltage X PWM duty cycle) because there is some wiring resistance to factor in. But even with this, given the current, it is still pretty straight forward as compared to the pain and suffering associated with getting a sensor out on the end of an arm or some other inconvenient spot.

As to the particulars, it is a pretty simple thing to calibrate: command a known duty cycle, read the current from the Jaguar, read the battery voltage, read the motor terminal voltage, calc a wiring voltage drop, use V=IR to estimate the resistance of the wiring.

For extra credit, repeat this at several duty cycles & loads while approximating (or measuring if you can) the actual speed of the motor. A simple curve fit later and you can know motor speed for that motor in real time without having any other sensor than the Jaguar. Pretty nifty.

For double bonus you can even try to model motor temperature...

...but I don't suppose it's worth it. After all, I am just trying to keep my ball possessor rollers going at a constant speed. Let's not get crazy here... ;-)

Cheers,
Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 29-01-2010 at 11:14.