|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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. Last edited by kamocat : 05-01-2011 at 14:51. |
|
#2
|
||||
|
||||
|
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) |
|
#3
|
|||||
|
|||||
|
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. Last edited by Al Skierkiewicz : 06-01-2011 at 08:02. |
|
#4
|
||||
|
||||
|
Re: Jaguar current sensing technical details?
Hi Marshal, A couple of observations and a question: Quote:
Quote:
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:
Last edited by Ether : 09-01-2011 at 08:12. |
|
#5
|
|||||
|
|||||
|
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.
|
|
#6
|
||||
|
||||
|
Re: Jaguar current sensing technical details?
Quote:
Is it modulating the Output Disable pin? |
|
#7
|
|||||
|
|||||
|
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.
|
|
#8
|
||||
|
||||
|
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.
|
|
#9
|
|||||
|
|||||
|
Re: Jaguar current sensing technical details?
Quote:
|
|
#10
|
||||
|
||||
|
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. |
|
#11
|
|||||
|
|||||
|
Re: Jaguar current sensing technical details?
Actually, I'd look move to pages 8 and 9 of the data sheet, on "Accuracy variations as a result of Vsense and common mode voltage".
This amp is apparently most accurate at sense voltages >20mv. Which equates to 20A for us. There's 3 operating cases in this range, and we're not in the worst... So it could be worse? I've attached a snapshot of an example graph. What it boils down to is that the amp goes non-linear below 20mv, and eventually lands on some positive offset voltage at the output, instead of zero. They state the worst case zero offset at the output is 300mv. It looks less linear the closer you get to 0 Vsense, so that's exciting too. Oh yeah. And both Jags record a zero offset for the current ADC on power up, and then subtract that from current readings forever after. So if you end up with the worst case 300mv offset, then your readings above 20A will read 15A low. We're probably not getting this worst-case scenario, but that's obviously going to affect the accuracy of ALL the current readings. Better might be to just assume/hope that you have little absolute error in the ADC, and just use the zero offset as a linear correction below 20mv Vsense. Maybe FIRST will let us modify the Jag firmware this year? Yeah, you're right. That's never gonna happen. |
|
#12
|
|||
|
|||
|
Re: Jaguar current sensing technical details?
But TI can modify it. Perhaps you could submit the change to them. Bonus points for sending code with the request.
|
|
#13
|
|||||
|
|||||
|
Re: Jaguar current sensing technical details?
Oh certainly. I'll probably try playing with some of our jags sometime this season or after and see how trustworthy the current sense is and how good a fix my proposal is. My only concern would be that I'll be modifying the reference firmware and this all might not apply to the FRC firmware. I'll have to see if they're willing to release that source code to interested parties.
|
|
#14
|
||||
|
||||
|
Re: Jaguar current sensing technical details?
Where did you find this datasheet? It's certainly not the INA193AID one I attached.
|
|
#15
|
|||||
|
|||||
|
Re: Jaguar current sensing technical details?
Kevin,
The reason for the non linearity is the device's inability to drive the output to zero volts. The specification is for a minimum of 3 mV typical but can be as high as 50 mV. The TI datasheet on page 4 has a very descriptive curve showing the errors. In applications where minimum errors are needed, designers would usually add a biplolar power supply to allow driving to zero volts. http://pdf.chinaicmart.com/3AI/INA193AIDBVR.pdf |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |