Go to Post Engineering fundamentally comes down to problem solving, and if the students can't get excited and inspired by the problem solving process because someone has spoon fed them a solution, then nobody wins. Give a man a fish, he'll eat for a day. Teach a man to fish, he'll eat for a lifetime. - kevinw [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-01-2011, 14:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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
Jaguar current sensing technical details?



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. And it doesn't appear that the INA193 itself is doing any low-pass filtering. The datasheet says its output bandwidth is 500KHz.

How does the the LM3S2616 firmware process this signal? Does it trigger the ADC samples to remain phase-locked with the bridge switching? Is it doing some sort of digital filtering?


Attached Thumbnails
Click image for larger version

Name:	INA193.png
Views:	33
Size:	38.4 KB
ID:	9559  Click image for larger version

Name:	LM3S2616.png
Views:	36
Size:	84.5 KB
ID:	9560  

Last edited by Ether : 04-01-2011 at 14:22. Reason: added schematics
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2011, 20:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Jaguar current sensing technical details?


Kevin Sevcik just posted this interesting information.

[edit] Kevin just deleted his excellent post. The reason given was he posted it to the wrong thread. I hope it re-appears somewhere else soon. It had some fascinating info in it. [/edit]


Last edited by Ether : 04-01-2011 at 20:07.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-01-2011, 20:07
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,746
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Jaguar current sensing technical details?

Kevin Sevcik couldn't decide where to put that post. It's now here.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2011, 13:36
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: Jaguar current sensing technical details?

The INA193AID has a gain of 20V/V, with a typical output error of +-0.75%.
The full-scale input voltage is 150mV. That means it can detect up to 150A, if the resistor could handle it. 150A * 0.0075 = 1.13A. In other words, they should have used a larger resistor. Say, a 3 miliOhm resistor would cap off the measurement at 50A, and create only 0.38 A of error once amplified.
(Also note that the maximum error is 2.2%)

With that information, I would blame most of the inaccuracy of the current measurements with the Jaguar on the op-amp.
However, it might be good to look at the accuracy of the resistor as well. I wouldn't be surprised if these Jaguars have no factory-calibration.


Here's the schematic for the Tan Jaguar:

Apparently it's just on the low side of the gate driver, with a 0.5 miliOhm resistor, so it only senses the current of the motors, not the device itself.
The FAN4174IP5X seems to function purely as a buffer; it does not appear to amplify.

I've attached datasheets for the INA193AID and the FAN4174IP5X.
Attached Files
File Type: pdf INA193AID.pdf (224.3 KB, 14 views)
File Type: pdf FAN4174IP5X.pdf (1.07 MB, 10 views)
__________________
-- Marshal Horn

Last edited by kamocat : 05-01-2011 at 14:46. Reason: correcting misinformation
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2011, 13:57
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,600
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: Jaguar current sensing technical details?

Marshal, your picture looks like the gray jaguar schematic (10/28/2008), while Ether's looks like the black jaguar's schematic (10/7/2009). Where did you find a November 2010 schematic?
Reply With Quote
  #6   Spotlight this post!  
Unread 05-01-2011, 14: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: Jaguar current sensing technical details?

Oh, oops.
I got it from the RDK-BDC page, not the RDK-BDC24 page.
That would explain it.

I looked at the date again, and it actually said November of 2008. However, the Firmware Development Package is from November of 2010. The Firmware Development Package is probably exactly the same as is on the RDK-BDC24 page

I was wondering why they were using a Fairchild part. I would think TI would avoid that if at all possible.
I'm going to go back and edit my post.
__________________
-- Marshal Horn

Last edited by kamocat : 05-01-2011 at 14:51.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2011, 00:44
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: Jaguar current sensing technical details?

Two additional sources of error:

Brush commutation on the motor

The current shunt resistor is on the supply end of the H-bridge drivers; it is not subject to the motor impedance, because it is cut off from the motors when the FETs are in the OFF state.
What would the current through this resistor look like over a span of 200 us? (That is, 3 pulses at 15 khz)
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 06-01-2011, 08:00
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: Jaguar current sensing technical details?

Marshall,
Part of the answer to your questions above, Luminary Micro was not a part of TI when the Jag was under development. The series resistance also affects the max current that the bridge is capable of delivering to the load. Raising the value of the sense resistor opposes the lower "ON" resistance FETs that were chosen for this design.
In the case of the Tan Jags, high current on a CIM (say 100amps) develops a significant amount of power in the sense resistor. It is a 2 watt resistor trying to dissipate 5 watts. In sustained pushing matches, the resistor heats up a lot and in some cases desoldered itself from the board.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 06-01-2011 at 08:02.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-01-2011, 11:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
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: Jaguar current sensing technical details?


Hi Marshal,

A couple of observations and a question:

Quote:
Two additional sources of error:

Brush commutation on the motor
The Brush resistance is in series with the current sense resistor so it shouldn't cause error in the current sense resistor's reading.

Quote:
The current shunt resistor is on the supply end of the H-bridge drivers; it is not subject to the motor impedance, because it is cut off from the motors when the FETs are in the OFF state.
It's on the high side in the Black Jag.

In the Tan Jag, it's on the low side.

Either way, the current sense resistor is not in the current path during the OFF portion of the duty cycle. See attached images. For simplicity, I showed path through only one FET of each pair, and only for + currents. Green path is during ON portion. Blue path is during OFF portion (for high-side switching). Red path is during OFF portion (for low-side switching).

I don't know if the Jags use high-side, or low-side, or some other switching method. Does anyone know, definitively, what switching method the Jags use? I've heard many different claims.


Quote:
What would the current through this resistor look like over a span of 200 us? (That is, 3 pulses at 15 khz)
Good question. I'd like to see some actual data. I did a simulation with the Black Jag with a CIM with locked rotor (no back emf) and included the CIM's resistance and inductance, and included the Zener diode voltage. I'd like to see how it compares to actual data.



Last edited by Ether : 09-01-2011 at 08:12.
Reply With Quote
  #10   Spotlight this post!  
Unread 06-01-2011, 12:57
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,746
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Jaguar current sensing technical details?

From reference design source code, the Tan Jags pulse the high side FETs and leave the low side FETs on during a PWM cycle.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #11   Spotlight this post!  
Unread 06-01-2011, 23:45
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: Jaguar current sensing technical details?

Quote:
Originally Posted by Kevin Sevcik View Post
From reference design source code, the Tan Jags pulse the high side FETs and leave the low side FETs on during a PWM cycle.
How does it do that?
Is it modulating the Output Disable pin?
__________________
-- Marshal Horn
Reply With Quote
  #12   Spotlight this post!  
Unread 07-01-2011, 00:03
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,746
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Jaguar current sensing technical details?

Why yes, yes it is. Don't ask me why, but that's what the code in the tan jag does. They could just as easily modulate the pwm pin, but they don't for some reason. Perhaps the driver doesn't have adequate shoot through protection.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #13   Spotlight this post!  
Unread 07-01-2011, 00:06
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: Jaguar current sensing technical details?

No, they can't modulate the PWM pin. If they did, that would be locked antiphase, because the MOSFET driver would alternate between driving the low side and driving the high side.
__________________
-- Marshal Horn
Reply With Quote
  #14   Spotlight this post!  
Unread 07-01-2011, 00:33
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,746
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Jaguar current sensing technical details?

Quote:
Originally Posted by kamocat View Post
No, they can't modulate the PWM pin. If they did, that would be locked antiphase, because the MOSFET driver would alternate between driving the low side and driving the high side.
Oooookay. Too much crosstalk that's off-topic for this particular thread. I'm officially vetoing any further PWM control discussion in this thread and picking it back up in the Modeling motor control thread. I'll see everyone over there.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #15   Spotlight this post!  
Unread 07-01-2011, 01:02
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: Jaguar current sensing technical details?

Sure. I'll refocus to the intent of this thread.

Why do you think the Jaguar has so much noise in its current measurement?
This graph from the INA193AID datasheet might help:

With a 0.001 ohm resistor, 1mv input equates to 1A.
__________________
-- Marshal Horn
Reply With Quote
Reply


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
Motor speed sensing with the Jaguar motor controller? mminutto FRC Control System 5 13-01-2009 18:13
Technical Details for the IR sensor board tuzzer Electrical 1 19-01-2008 08:38
Sensing current and/or voltage drop??? archiver 2001 3 23-06-2002 23:21
StangSense: WildStang's Current Sensing System Dave Flowerday Technical Discussion 12 05-04-2002 07:40


All times are GMT -5. The time now is 11:13.

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