Go to Post you should be putting forth you best effort every time you enter the field. - Protronie [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 03-01-2011, 21:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,117
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Modeling motor control

Quote:
Originally Posted by kamocat View Post
I'm going to try to get ahold of a CIM with a toughbox and encoder, but I may not get that for a few days.
If you run a CIM with a toughbox, what do you expect to compare that data to? There is no manufacturer's data for this. Still apples and oranges.

Quote:
I have a globe motor, but the current is too small to measure with a Jaguar.
If you run the CIM w/o the toughbox, the no-load current is too low to measure with any accuracy with the Jag, isn't it?



Last edited by Ether : 03-01-2011 at 21:22.
  #17   Spotlight this post!  
Unread 03-01-2011, 21:59
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Modeling motor control

The current just needs to be greater than 1A to be measured.

The point of measuring a CIM with a toughbox is to see if it still has these strange current characteristics.
__________________
-- Marshal Horn
  #18   Spotlight this post!  
Unread 03-01-2011, 23:13
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,117
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Modeling motor control

Quote:
Originally Posted by kamocat View Post
The current just needs to be greater than 1A to be measured.
Per the datasheet, the accuracy of the Jag's current measurement is +/-2 amps for currents less than 8A. The no-load current for the CIM is 2.7 amps.

Quote:
The point of measuring a CIM with a toughbox is to see if it still has these strange current characteristics.
The point of measuring something for which you have manufacturer's data is to validate your test method. It is possible that the funky data is a problem with your test method.

Just sayin'



  #19   Spotlight this post!  
Unread 03-01-2011, 23:43
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Modeling motor control

Would it be better to hook up (not really) a magnetic current monitor outside the wires to measure current that way? It might have a more accurate current reading, if you can find a model that can handle such low currents and ignore any interference from the motor.
__________________
Attending: MN Duluth Regional
  #20   Spotlight this post!  
Unread 04-01-2011, 02:32
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Modeling motor control

I have a old current clamp I'm trying to get working.
I found most of my motors are too small to be measured by the Jaguar.
There also may be some issues with varying Jaguar accuracy as the PWM duty cycle changes.
__________________
-- Marshal Horn
  #21   Spotlight this post!  
Unread 04-01-2011, 08:48
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Modeling motor control

Guys,
I think you are documenting the interaction of a few different elements in the way you are making your measurements. You first have the brush spacing/segment frequency to deal with. Then you have the inductance of the motor vs. the switching frequency of the Jaguar. And finally you have the sample rate of the current monitor in the Jaguar.
It is well documented that the higher switching frequency of the Jaguar does limit current at lower PWM values in higher power motors. This is due to the finite rise time of the applied pulse interacting with the motor internal inductance. It is one of the things that make the Jaguar seem more linear than Victors. Obviously this much more pronounced with CIM motors and FP than with the window motors or the Banebots. At small pulse widths and large inductances, the voltage at the motor terminals never reaches the supply voltage.
If the sample rate or time are sufficiently long enough, at lower RPMs, you will undoubtedly read the current through two windings (while the brush covers two segments) causing a higher reading. As the motor achieves higher RPM, the sample rate likely moves to a point where most current is read while the brush is on only one segment and therefore lower.
There is likely to be significant interaction between the current pulse sampled by the series resistor in the Jaguar and ADC used to transmit the current back to the CAN bus.
My suspicion on the Ryobi drill motor curve is likely due to hysteresis in the core of the motor at lower pulse widths and it's design for increased torque at a specific RPM.
BTW, we should also take into account the rather strange, very short, voltage spikes that occur with Jaguars at the pulse edges under certain conditions. These vary with motors and speed.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #22   Spotlight this post!  
Unread 04-01-2011, 12:31
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Modeling motor control

In other words, the motor current (as measured by the Jaguar) is useless for determining the torque output?
__________________
-- Marshal Horn
  #23   Spotlight this post!  
Unread 04-01-2011, 13:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,117
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Modeling motor control

Quote:
Originally Posted by kamocat View Post
In other words, the motor current (as measured by the Jaguar) is useless for determining the torque output?
At very low torques (like no-load), probably. Look at the datasheet. The accuracy is +/-2amps for currents <8amps.

That's why you always want to validate your test method against something that is known, before using it to gather data for an unknown.

The Black Jag uses an INA193AID current-sense chip across a 0.001 ohm shunt in the high side of the bridge. The INA193's analog output is sent directly to an ADC pin in the Jag's LM3S2616 microcontroller, without any hardware (RC) filtering.

So... it depends on what the LM3S2616 firmware is doing. Is it doing some sort of digital filtering? Is it timing the ADC samples to remain phase-locked with the bridge switching? Unless someone intimately familiar with the design is willing to comment, the best way to tell is to compare the Jag's current sense values with oscilloscope current waveform traces taken across an external precision shunt, under various test conditions.


  #24   Spotlight this post!  
Unread 04-01-2011, 13:28
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Modeling motor control

Marshall,
If your desire is perfectly accurate current then the answer is no. If you are trying to model some sort of feedback loop, then the answer is yes. It will take some experimentation and noise filtering but teams did use current feedback through the CAN bus last year. Can you answer how you measured the voltage? The reason I ask is that except for the low pulse width signals, the voltage to the motor is swinging between 0 and power supply volts or ~12 volts. The average voltage can be calculated from the pulse width but may not be accurate. For those that are trying to correlate real world performance to the manufacturer's published data need to remember the the factory testing is performed using a high current, lab grade, low impedance, stable voltage source. The battery, wiring and Jaguar do not come close to factory testing so although one can come close, there is no way to exactly duplicate factory published data.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #25   Spotlight this post!  
Unread 04-01-2011, 14:10
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,117
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Modeling motor control



So as not to highjack this thread, I started a new thread to discuss technical details of the Jaguar current-sense implementation.

  #26   Spotlight this post!  
Unread 04-01-2011, 14:23
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Modeling motor control

I measured voltage with the Jaguar. (In the November 2010 spec for the CAN interface, there is an option to get the output voltage as a voltage, rather than a percent. I believe this multiplies the output percent by the Vbus. There is no info on this in the MDL-BDC24 datasheet.)
No, I have not compared this to another device.

If I have to calibrate this as well, I'm not sure the Jaguar is a feasible option for what I'm trying to do.

Let me step back a bit and ask how much it will help me to have an accurate measurement of current.
Is output torque still proportional to current, even at reduced voltage?
__________________
-- Marshal Horn
  #27   Spotlight this post!  
Unread 04-01-2011, 14:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,117
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Modeling motor control

Quote:
Originally Posted by kamocat View Post
Is output torque still proportional to current, even at reduced voltage?
Yes and no. Depends on what you mean in this context by current and torque.

The average torque generated by the motor is proportional to the algebraic average current, assuming Kt is constant (which in real life it is not, but for most practical purposes it is assumed to be).

The output torque at the motor shaft is equal to the torque generated by the motor, minus the torque losses within the motor.


  #28   Spotlight this post!  
Unread 04-01-2011, 14:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,592
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Modeling motor control

What was the voltage source for your test? Were you using the jaguar %VBus mode or the voltage mode? Did you monitor the voltage of the voltage source over time? What was the sample rate (related question, how long did the test run)?
  #29   Spotlight this post!  
Unread 04-01-2011, 16:49
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Modeling motor control

I'm using an 18AH AGM battery comparable to the KOP Gel-cell.
I'm using %VBus mode, but the voltage jitter in the output is negligible. (It's plotted according to the output voltage, not according to time)
The test takes a little over 1,000*200ms, or a about 3.5 minutes.

For vBus, I looked at it while I was testing, but I didn't record it. It went from approximately 12.7v at the beginning to 12.3v at the end.
Considering I'm plotting them according to the output voltage, this shouldn't be an issue.

The way I have this setup is I'm setting the output, waiting 200ms, and then requesting [current, vBus, speed, vOut] for 10 iterations in a For loop. I'm not measuring the time between those samples.
__________________
-- Marshal Horn

Last edited by kamocat : 04-01-2011 at 16:53. Reason: Forgot to mention sample rate
  #30   Spotlight this post!  
Unread 04-01-2011, 17:19
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,081
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Modeling motor control

Over 3.5 minutes of operation, I could imagine motor heating affecting torque output.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoder Motor Control Wicked NI LabVIEW 3 11-02-2009 18:21
Motor control problem Lablabla Programming 3 17-01-2007 15:27
Motor Control Systems Astronouth7303 Programming 3 05-04-2005 19:35
Four motor control judson Programming 1 14-02-2005 20:17
Motor Control archiver 2000 1 23-06-2002 23:01


All times are GMT -5. The time now is 08:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi