Go to Post Being inspired is a lot like learning, not everybody does it the same way. - Jay Trzaskos [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 20-03-2011, 13:12
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

To get this right back on topic...I'll summarize (and with respect to the other mentors I'll include some of their input)...

The 0.001 Ohm, 4 Watt resistor (the part labeled R23 in the Jaguar schematic) that measures current in the Jaguar is fine for normal operating currents one expects to use with the Jaguar. Those currents are generally less than 50 Amps, with a very occasional spike over 50 Amps and not much higher than 100 Amps. That resistor itself crosses it's maximum Wattage rating just after 63 Amps in this circuit.

However, it's Wattage rating is too small for repeat overload situations especially with the CIM motors and it can be both damaged and accidentally desoldered when such situations occur (and it's not the only thing in that circuit that will start to take damage).

Such situations are possible precisely because the current limiting devices between the battery and the Jaguar react relatively slowly. So even if they do trip they probably won't trip before you start to do some damage (and that damage will add up if you keep doing that).

If that resistor were to no longer connect the top of the power MOSFET circuit to the power from the battery and current limiting devices...then the voltage measured across that circuit and reported back to you will drop to basically zero. Maybe you can just replace that resistor...or maybe not...it all depends on what other damage has also taken place.

Last edited by techhelpbb : 20-03-2011 at 13:40.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-03-2011, 14:55
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

So I was digging around in the older Jaguar schematics and discovered in the older gray (grey) model they used a 0.0005 Ohm, 2 Watt resistor (labeled R35) for measuring the current.

http://www.luminarymicro.com/products/rdk_bdc.html

The schematic and BOM in question is in the:
"Brushed DC Motor Module and RDK Design Package Rev B" dated 1/19/2010

The user manual in question is in the:
"Brushed DC Motor Control Module and RDK User's Manual" dated 1/19/2010

Additionally, instead of being on the high side (+ side) of the motor control circuit it's on the low side (- side) of the motor control circuit. This would have made it very hard to measure the reverse current that they don't measure anyway.

This altered resistor value, at half the Wattage still limits the safe operating current to 63 Amps or less continuous. However, it's lower resistance also limits the range of the voltage it will achieve across that resistor.

In that circuit they used an operational amplifier not designed for this purpose (not a big deal...except it might limit it's ability to survive overload).

That operational amplifier is configured as a non-inverting amplifier with a gain of 40. So any voltage that appears across that resistor will be multiplied by 40. So at maximum it'll report a voltage of about 1.26 Volts at 63 Amps. Still safe for the 3.3V microcontroller. However...this means that older Jaguars have a slightly reduced ability to measure current and still have the same possible failure situations.

Again...if that resistor burns out or becomes desoldered the circuit will still fail and you'll still read 0 Volts from it.
So my post above applies whether you use the gray (grey) or black Jaguars. Just modify it with the older Jaguars to disconnecting the low side (- side) of the motor driving circuit.

Last edited by techhelpbb : 20-03-2011 at 15:06.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-03-2011, 15:03
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,772
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: Partial Jag failure?

Jim,
The spec sheets for the breakers we use can withstand 600% over current for several seconds prior to trip and can withstand something near 200% indefinitely. So for the 40 amp breakers, periodic stall currents are not enough to trip the breakers. As they are self resetting, the reset takes place almost immediately, and with sustained trip currents, the breakers will actually buzz. The drawback is that these devices are thermal by nature and so get hot under trip conditions. The main breaker is similar in design and function except it is not self resetting.

Tech,
The chip is called a shunt current monitor in that it was designed to be used in that application. The resistor in the Jag is merely in series with the output and as such is not really a shunt since it is the only path through which current flows. It is a convenient chip to use in this application since the gain is fixed, it is designed for single power supply and can swing to within 0.2 volts of the positive power rail. The output current of the battery is speced at around 600 amps for a few seconds and is primarily limited by the internal resistance of the battery which is .011 ohms. While it is easy to say currents in the Jag are normally around 50 amps, that is not correct. Many teams design mechanical systems that draw significantly higher currents. There has been at least one post in the past few days where the team started out draining their battery in less than two minutes. For the black Jags, the manufacturer states that the current monitor will fault the device based on current over specified time. I believe that the black Jag is more aggressive at current monitor due to the reduction of MOSFETs in the output stages. The Victors do not use a current monitor for a variety of reasons. I believe this is due to the fact that the sense resistor limits current delivered to the load, adds to the parts count, and is not needed with three 40 amp FETs in parallel in each leg of the output circuit. While the FETs have a higher series resistance than the Jag, in most of our applications, the added resistance is minimal as it amounts to about the resistance of two feet of #10 AWG wire. Please remember that the power rating on a resistor is based on it's temperature rise and sustained temperature over time. A 1/2 watt resistor can handle 10 watts for a few seconds while it can never handle 1 watt over a several days.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-03-2011, 15:15
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

Quote:
Originally Posted by Al Skierkiewicz View Post
Tech,
The chip is called a shunt current monitor in that it was designed to be used in that application. The resistor in the Jag is merely in series with the output and as such is not really a shunt since it is the only path through which current flows. It is a convenient chip to use in this application since the gain is fixed, it is designed for single power supply and can swing to within 0.2 volts of the positive power rail. The output current of the battery is speced at around 600 amps for a few seconds and is primarily limited by the internal resistance of the battery which is .011 ohms. While it is easy to say currents in the Jag are normally around 50 amps, that is not correct. Many teams design mechanical systems that draw significantly higher currents. There has been at least one post in the past few days where the team started out draining their battery in less than two minutes. For the black Jags, the manufacturer states that the current monitor will fault the device based on current over specified time. I believe that the black Jag is more aggressive at current monitor due to the reduction of MOSFETs in the output stages. The Victors do not use a current monitor for a variety of reasons. I believe this is due to the fact that the sense resistor limits current delivered to the load, adds to the parts count, and is not needed with three 40 amp FETs in parallel in each leg of the output circuit. While the FETs have a higher series resistance than the Jag, in most of our applications, the added resistance is minimal as it amounts to about the resistance of two feet of #10 AWG wire. Please remember that the power rating on a resistor is based on it's temperature rise and sustained temperature over time. A 1/2 watt resistor can handle 10 watts for a few seconds while it can never handle 1 watt over a several days.
You are absolutely correct. How long these currents are drawn is a vital factor with regard to the resistor (hence why I noted that using this power calculation is cheating to some degree). One of the problems being that outside the case of Jaguar you can't see what's going on with that resistor. There is to my knowledge no measurement of it's temperature and you can't make contact while it's assembled or even measure that temperature with infrared. You can't really trust the digital measurement of it either, because once it's too far you might not have time from the CAN bus to back off...unless you back off early. Now I'm not clear on exactly when the Jaguars will current limit and I haven't looked yet in the software. They state openly they'll let you drag 100 Amps through them at motor start...but that implies that there's a loose limit there somewhere...probably based on time (as you say they note the limit as being a function of how long it's over the limit). The Jaguar microcontroller itself is obviously quite fast and I'd think that when it does finally decide things are out of hand it would react pretty fast. In short it's much more practical for the Jaguar software to stop this situation than the software in the cRIO.

The real problem using time to determine the longevity of this resistor is that you might not be accounting for heat that is already baking the resistor from past overloads or ambient air temperature. I don't think they have any mechanism to force you to back off until things cool off. Even if they did...it would probably depend on the MOSFETs working correctly and if they turn into shorts (or fully saturate with no relief) and complete the circuit...the situation will not be possible to salvage.

Things is, there's also the issue with the Victor that they don't have a current mode. With the Jaguars they implemented that mode and therefore needed some way to measure current as well (hard to know which decision came first...did they start off wanting a current set point or current limit...and then need the resistor...or did they put the resistor in and then decide they could monitor it for more than over current).

Personally I find the empty slots in the ring that surrounds the Jaguar's MOSFETs under the fan to be sort of a dead giveaway that they thought they might add more MOSFET like the Victor.

Last edited by techhelpbb : 20-03-2011 at 15:33.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-03-2011, 17:14
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: Partial Jag failure?

Getting back to the question of how the Jaguar failed:

Al's explanation of the desoldered current shunt resistor would make sense, except that the Jaguar says it's outputting 0v.

I re-checked the diagram: the Jaguar measures its supply voltage, but not its output voltage. The output voltage is calculated from duty cycle. (Indeed, in the first revisions of the firmware, the output voltage was only GIVEN in duty cycle, on a range of -1 to 1.)

Apparently nobody has had this exact issue before.

I will check that the resistor is still connected, but I will also try reflashing the Jaguar, in case the firmware got corrupted.

More info on the over-current: the Jaguar goes into over-current fault at 60A after 2 seconds. I was running an RS-775. (There were some binding issues with the jack screw on our arm)
__________________
-- Marshal Horn
Reply With Quote
  #6   Spotlight this post!  
Unread 20-03-2011, 19:29
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: Partial Jag failure?

Well, it worked fine today. I even held it in a 41 Amp stall for 5 seconds.
There's only two causes I can think of.

One is that perhaps it had tripped the breaker and needed "voltage enable" to be sent again. However, I'm pretty sure I would have seen movement out of it before that happened.

The other is that today I'm outside at 15 degrees Celcius. Friday I was inside at 30 degrees. The Jaguar only said its internal temperature was 37 degrees on Friday. I thought it would operate up to 50.

(Note: I haven't opened it up yet.)
__________________
-- Marshal Horn
Reply With Quote
  #7   Spotlight this post!  
Unread 20-03-2011, 19:31
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,772
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: Partial Jag failure?

Marshall,
This kind of action leads me to believe there is a foreign body floating around inside. A look inside is warranted.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-03-2011, 20:21
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: Partial Jag failure?

I just checked inside.
No debris.
No signs of heat.
The resistance from 0v to vLow measures 0.3 ohms on my multimeter (the same as when I touch the leads together). I measured this between the 0v 6-32 screw and the lead of a low-side MOSFET.
__________________
-- Marshal Horn
Reply With Quote
  #9   Spotlight this post!  
Unread 20-03-2011, 22:19
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

Quote:
Originally Posted by kamocat View Post
I just checked inside.
No debris.
No signs of heat.
The resistance from 0v to vLow measures 0.3 ohms on my multimeter (the same as when I touch the leads together). I measured this between the 0v 6-32 screw and the lead of a low-side MOSFET.
It would be unlikely a simple digital multimeter could measure that small a resistance reliably with the currents it uses when measuring resistance. Though checking for continuity would confirm that there is connectivity and we know from the fact that it does work there must be a connection currently.

Also...if the resistor got very hot...it would heat the PCB and itself. That combined mass might take a while to cool off even with the fan.

Could it be that you melted the paste on that component and when it finally cooled off it closed again? One could also ask this question about the points to which the body of the resistor meet the areas designed to be soldered down.

In other applications I've seen surface mount resistors recover from overload before but usually it alters the resistance which you might not be able to measure with that meter. If it has altered that resistance by some appreciable amount it'll alter your current measurements. Do these current measurements seem proper for the mechanism in question?

Would there be some value in using a fixed, high power resistor as a load on the Jaguar and taking comparison measurements with another Jaguar? How about just trying to measure the current with another meter with a fixed resistive load?

Last edited by techhelpbb : 20-03-2011 at 23:45.
Reply With Quote
  #10   Spotlight this post!  
Unread 21-03-2011, 07:10
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,772
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: Partial Jag failure?

Marshall,
I am still going with my foreign body analysis. It is certainly possible for it to have been blown out by the fan.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-03-2011, 11: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: Partial Jag failure?

That works as a partial explanation.

Any idea why it would refuse to output power? (That is, it reported its calculated output voltage as zero)
I'm guessing it's one of the fault conditions. I know of four:
  • Current fault
  • Temperature fault
  • Bus Voltage fault
  • Gate Driver fault (I don't know how it detects this)
I can rule out the Current and Bus Voltage faults right now. I know it tells me of those. The battery was fine, and the Current Fault is temporary.

Does the BDC-COMM display a Temperature fault or a Gate Driver fault in red, as it does the Current fault?
__________________
-- Marshal Horn
Reply With Quote
  #12   Spotlight this post!  
Unread 21-03-2011, 12:36
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,772
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: Partial Jag failure?

Marshall,
I don't remember you mentioning a fault condition. It is possible that a particular fault will shutdown the voltage mode and the software may be written to report 0 volts under that condition. It is possible for the any of the sense circuits to have had a fragment causing a short to supply. Say for instance, a short at the input of the current monitor could have artificially raised the voltage input to beyond current rating. In the Tan Jag there is no feedback from the output terminals so the zero volt condition must be derived mathematically from internals.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #13   Spotlight this post!  
Unread 21-03-2011, 12:51
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: Partial Jag failure?

Ah, I understand now.

I was thinking of aluminum shavings only affecting large circuits, and destroying them in doing so. I hadn't considered that it might make a contact across a small circuit, and not damage anything in the process. Even more so, I hadn't considered that they might, in effect, put the Jaguar in a fault condition that it can't detect. I don't know that it was in a fault condition, but it's either that or the limits, and I'm pretty sure the limits were not active.

These Jaguars really need a conformal coating. It would be interesting to compare the failure rate. In fact, if I had a few thousand dollars to spare, I would buy Jaguars, paint them with polyurithane, and sprinkle aluminum dust on them to see how well they survive.
But because of the cost, I think that's something best done by TI.
__________________
-- Marshal Horn

Last edited by kamocat : 21-03-2011 at 12:56.
Reply With Quote
  #14   Spotlight this post!  
Unread 21-03-2011, 13:48
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

Quote:
Originally Posted by Al Skierkiewicz View Post
In the Tan Jag there is no feedback from the output terminals so the zero volt condition must be derived mathematically from internals.
I was just digging in the source code for the BDC (not the newer BDC24...the black Jaguar).

They have a file in that firmware: adc_ctrl.c

In that file:

Quote:
//
// Configure the GPIOs used with the analog inputs.
//
GPIOPinTypeADC(ADC_POSITION_PORT, ADC_POSITION_PIN);
GPIOPinTypeADC(ADC_CURRENT_PORT, ADC_CURRENT_PIN);
GPIOPinTypeADC(ADC_VBUS_PORT, ADC_VBUS_PIN);
GPIOPinTypeADC(ADC_VBOOTA_PORT, ADC_VBOOTA_PIN);
GPIOPinTypeADC(ADC_VBOOTB_PORT, ADC_VBOOTB_PIN);
Then later down the source code...

Quote:
//************************************************** ***************************
//
// This function returns the current bus voltage, specified as an unsigned 8.8
// fixed-point value that represents the voltage.
//
//************************************************** ***************************
unsigned long
ADCVBusGet(void)
{
//
// Convert the ADC reading into a voltage and return it.
//
return(ADC_TO_VBUS(g_pusADCData[VBUS]));
}
This got me thinking....I know in the black Jaguar you can clearly see in the schematic where the voltage divider for the VBus measurement is.

However, it appears in the older schematic they hid this divider in the schematic section for the power regulation.

Look right next to C15 on the schematic...for the VSENSE tag.
It's on the second page of schematics in the user manual and it's between the great big tag for "+12V POWER IN" and the 5V power regulation.

In pins.h they define:
Quote:
#define ADC_VBUS_PORT GPIO_PORTE_BASE
#define ADC_VBUS_PIN GPIO_PIN_3
#define ADC_VBUS_CH ADC_CTL_CH0
I'm pretty sure that in both cases (the old and the new Jaguar) this means that they aren't measuring at the output terminals...but they seem to be measuring the same thing.

Last edited by Al Skierkiewicz : 21-03-2011 at 15:05.
Reply With Quote
  #15   Spotlight this post!  
Unread 21-03-2011, 13:10
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,621
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Partial Jag failure?

In response to your question in a previous post above:
"Does the BDC-COMM display a Temperature fault or a Gate Driver fault in red, as it does the Current fault?"

In BDC-COMM itself...we find this in: bdc-comm.cxx

Quote:
//
// Update the status items on the GUI.
//
g_pStatusVout->value(g_sBoardStatus.fVout);
g_pStatusVbus->value(g_sBoardStatus.fVbus);
g_pStatusCurrent->value(g_sBoardStatus.fCurrent);
g_pStatusTemperature->value(g_sBoardStatus.fTemperature);
g_pStatusPosition->value(g_sBoardStatus.fPosition);
g_pStatusSpeed->value(g_sBoardStatus.fSpeed);
g_pStatusLimit->value(g_sBoardStatus.pcLimit);
g_pStatusPower->value(g_sBoardStatus.lPower);

if(g_sBoardStatus.lFault)
{
switch(g_sBoardStatus.lFault)
{
case 1:
{
strcpy(g_pcFaultTxt, "CUR FAULT");
break;
}

case 2:
{
strcpy(g_pcFaultTxt, "TEMP FAULT");
break;
}

case 4:
{
strcpy(g_pcFaultTxt, "VBUS FAULT");
break;
}

case 8:
{
strcpy(g_pcFaultTxt, "GATE FAULT");
break;
}
}
g_pStatusFault->label(g_pcFaultTxt);
g_pStatusFault->show();
}
else
{
g_pStatusFault->hide();
}
So BDC-COMM can trap that gate fault...(I deleted a post above...because apparently they have some unrelated gadget that can't trap the gate fault condition...didn't want to confuse anyone).

This is where they draw and hide the control for the fault indicator in FLTK in the file: gui.fl

Quote:
Fl_Box g_pStatusFault {
label FAULT
xywh {325 62 100 25} box ENGRAVED_BOX color 1 labelcolor 7 hide
}

So it does not appear that BDC-COMM considers the type of fault in setting this control's color.
Have you seen it do otherwise?

Last edited by techhelpbb : 21-03-2011 at 14:01.
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


All times are GMT -5. The time now is 00:04.

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