Go to Post We appreciate the time/effort of everyone who contributes to Chief Delphi... hopefully, someday soon we'll be experienced/seasoned enough to contribute advice ourselves... - Michael Blake [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 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
  #2   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
  #3   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
  #4   Spotlight this post!  
Unread 21-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?

tech,
The VBuss is measuring input voltage so that the Jag can disable output when the input power goes down to dropout on the voltage regulators. The thought being that a significant load may be causing a large voltage drop in the input wiring. By disabling the output, the voltage can climb back up to full terminal voltage. There is no feedback in the controller from the output terminals.
I changed the color on your post so people could read it.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-03-2011, 15:31
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 VBuss is measuring input voltage so that the Jag can disable output when the input power goes down to dropout on the voltage regulators. The thought being that a significant load may be causing a large voltage drop in the input wiring. By disabling the output, the voltage can climb back up to full terminal voltage. There is no feedback in the controller from the output terminals.
I changed the color on your post so people could read it.
Thank you for the assistance with the text color.

They must use it for more than that...from readme.txt in the development kit...

Quote:
Additional advanced control methods are also available when using the CAN communication interface.

There are voltage compensation control mode, current control mode, speed control mode, and position control mode. Each of these modes is mutually exclusive and operate using a PID controller whose gains are fully programmable via the CAN interface. Each PID controller starts with all of its gains set to zero, so no output voltage will be generated by any of these modes until the PID controller is at least partially configured.

In voltage compensation control mode, the output duty cycle is adjusted to compensate for changes in the input voltage, resulting in a constant voltage output.
From controller.c:

Quote:
//
// Get the current bus voltage.
//
lVBus = ADCVBusGet();

//
// Compute the desired output PWM width in order to produce the desired
// output voltage, and limit it to the available range.
//
...
Though you are also absolutely right...neither model of Jaguar gets direct voltage feedback from it's output terminals.

Last edited by techhelpbb : 21-03-2011 at 17:17.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-03-2011, 15:41
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?

I presume in voltage control mode...this section of: controller.c is most critical.

Quote:

//************************************************** ***************************
//
// This function handles the periodic processing for voltage control mode.
//
//************************************************** ***************************
static void
ControllerVoltageMode(void)
{
...
}
Now...in places littered through out the code they leave the motor in neutral or intentionally create a neutral for coasting.
The do this by setting the target voltages to 0.

What was this Jaguar configured for...brake or coast?

Last edited by techhelpbb : 21-03-2011 at 17:16.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-03-2011, 16:08
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?

This one was configured for coast.
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 21-03-2011, 17:08
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?

tech,
Marshall said he checked using voltage mode after the controller failed. Vbus is used when the target speed on the motor is known and the input voltage is variable. In CAN bus Voltage mode, this is a requirement to maintain motor speed in the absence of a rotational sensor. Again it is a calculation used to make the output voltage appear to be regulated. It does not regulate the output voltage but it does modify the PWM output to the motor to simulate voltage changes. Again, the Vbus must be monitored in all modes even if only used for internal protections.
It is not necessary to fill the server with text that is easily found somewhere else. If you would like you can delete your earlier posts or I can. Just let me know.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #9   Spotlight this post!  
Unread 21-03-2011, 17:15
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'm sorry, I wasn't clear enough.
I used %vbus mode (the original voltage mode), not the voltage compensation mode you refer to here.
__________________
-- Marshal Horn
Reply With Quote
  #10   Spotlight this post!  
Unread 21-03-2011, 17: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'm sorry, I wasn't clear enough.
I used %vbus mode (the original voltage mode), not the voltage compensation mode you refer to here.
What mode were you using when you pushed the Jaguar over the current limits?
Reply With Quote
  #11   Spotlight this post!  
Unread 22-03-2011, 19:42
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?

Quote:
Originally Posted by techhelpbb View Post
What mode were you using when you pushed the Jaguar over the current limits?
Either %vbus or position. Perhaps both.
__________________
-- 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


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