Go to Post What seems logical to you will seem strange to someone else. Never assume that someone else will do the logical thing. - Wetzel [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
  #46   Spotlight this post!  
Unread 05-01-2011, 08:33
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

Quote:
Originally Posted by EricVanWyk View Post
That is to say that for a given frequency and duty cycle, there is a minimum average current to establish continuous current control. For a Jaguar, this is a few amps. For a Victor, this is a few hundred.
Erik, can you explain this?

Ether, in the graphs you posted for a locked rotor CIM it appears that the Victor has a distinctive current inductance charge/discharge curve while the Jaguar does not. The inductance charge is much more pronounced in the Jag due it's higher frequency. The charge current rise is very long compared to the pulse width at 15kHz. Using the values R=.090 and L=200uH, the time constant is 2.2msec or full current will only be achieved through the motor in 11 msec.
At 150 Hz and 5% duty cycle that is an ON time pulse width of .33msec so the current will reach 18.35 amps by the end of the pulse for a Victor. At 15kHz and 5% duty cycle that is an ON time pulse width of 3.3usec and the current will only reach 0.199 amps by the end of the pulse for the Jaguar. Neither controller provides a discharge path during the OFF period. It is this phenomena that gives the Jag it's apparent linear response.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #47   Spotlight this post!  
Unread 06-01-2011, 11:35
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: Modeling motor control

Quote:
Originally Posted by Al Skierkiewicz View Post
Neither controller provides a discharge path during the OFF period. It is this phenomena that gives the Jag it's apparent linear response.
The FETs in both the Tan and the Black Jags have a zener diode to provide a path for the current to keep flowing through the motor during the OFF portion of the cycle.

http://www.chiefdelphi.com/forums/sh...30&postcount=9

The Jag's linear response is due to its higher switching frequency, which creates an effectively flatline current waveform whose amplitude (which is the average since the wave is flat) varies linearly with the voltage duty cycle.

The Vic's slow switching frequency allows to current to decay to zero during the off portion. The average value of this sawtooth waveform does not vary linearly with the voltage duty cycle, so neither does the motor torque.


  #48   Spotlight this post!  
Unread 06-01-2011, 12:18
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

The FETs in both Jags and Victors have a forward voltage drop around 1 volt. Therefore to make these conduct (when OFF) would require that the motor be generating at least 2 volts more than the power supply.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #49   Spotlight this post!  
Unread 06-01-2011, 12:51
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: Modeling motor control

Actually, you're both wrong. Sort of. The control scheme for the motor only pulses the high side FET for a direction, and leaves the low side FET on. So one low side FET remains conducting during the entire PWM cycle, and you only have the forward drop from the opposing low side FET when the current cycles back through in that direction. And since we're talking about the motor inductance driving the current in the off phase, the voltage is going to increase to compensate for that 1V drop anyways.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #50   Spotlight this post!  
Unread 06-01-2011, 13:59
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: Modeling motor control

Quote:
Originally Posted by Kevin Sevcik View Post
Actually, you're both wrong. Sort of. The control scheme for the motor only pulses the high side FET for a direction, and leaves the low side FET on.
Just to be clear: I didn't say that the Jag turns the low side FET off for pulsing. I just showed what the current path would look like if it were switching the low side... and I asked if anyone knew, definitively, what the switching method is:
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.

How do you know that the Jag switches only the high side? Did you discover this during your analysis of the firmware, that you posted earlier? Or did you find it in some document somewhere?


Quote:
So one low side FET pair remains conducting during the entire PWM cycle, and you only have the forward drop from the opposing low side FET pair's zener diodes when the current cycles back through in that direction.
I added the bold stuff for clarity. You also have the opposing back emf if the motor is spinning. See attached PDF.


Quote:
And since we're talking about the motor inductance driving the current in the off phase, the voltage is going to increase to compensate for that 1V drop anyways.
Exactly. See attached PDF.


Attached Files
File Type: pdf OFF_path.pdf (5.5 KB, 13 views)

Last edited by Ether : 06-01-2011 at 14:07. Reason: forgot to attach schematic
  #51   Spotlight this post!  
Unread 06-01-2011, 14:55
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

The only knowns are the Victors turn off both high and low side FET groups except when "brake" mode is enabled and throttle is zero. Luminary reps (a while ago) posted that the tan Jags only turn off the high side FETs while leaving the low side FETs turned on for direction. "Brake" operation is the same. I have no known source for operation on the black jags but assume there was no change.
While the Jags only turn off one FET group, they also have the current sense resistor (.0005 ohm for tan and .001 for black) in series with the discharge path to battery. Again, this path to the battery only exists while the voltage generated in the motor can forward bias the body diode(s).
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #52   Spotlight this post!  
Unread 06-01-2011, 15: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: Modeling motor control

Quote:
Originally Posted by Ether View Post
How do you know that the Jag switches only the high side? Did you discover this during your analysis of the firmware, that you posted earlier? Or did you find it in some document somewhere?
Yup. Again, with the caveat that I looked at the reference design source code for the Tan Jag. YMMV with the FRC firmware, though I'd be terribly surprised if they changed much, as the reference design looks very good and entirely functional for FIRST purposes.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #53   Spotlight this post!  
Unread 06-01-2011, 15:30
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: Modeling motor control

Quote:
Originally Posted by Al Skierkiewicz View Post
While the Jags only turn off one FET group, they also have the current sense resistor (.0005 ohm for tan and .001 for black) in series with the discharge path to battery. Again, this path to the battery only exists while the voltage generated in the motor can forward bias the body diode(s).
The current we are discussing in this thread is the current that flows through the motor during the off portion of the duty cycle. This current does not flow through the current sense resistor. It does not flow to the battery.


  #54   Spotlight this post!  
Unread 06-01-2011, 16:01
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: Modeling motor control

Hey all. Just to add to the confusion and all, the Black Jags seem to operate somewhat differently than the Tans. I know, I was surprised too. Anyways, the reference design of the Black Jags is also high-side switching, BUT it switches the high and low side FETS on the pulsed leg.

Ex: at +25% command, M- low is ON, M+ high is ON 25% of the cycle, M+ low is ON 75% of the cycle.

So on the Black Jags, you don't need to worry about any diode drops in the off phase, save for the vanishingly small slice of dead time to prevent shoot through.

Isn't this so much more fun than rumor mongering?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 06-01-2011 at 17:25.
  #55   Spotlight this post!  
Unread 06-01-2011, 16:07
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: Modeling motor control

Quote:
Originally Posted by Kevin Sevcik View Post
Isn't this so much more fun than rumor mongering?
Yes. You are the man !


  #56   Spotlight this post!  
Unread 06-01-2011, 16:53
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: Modeling motor control

Quote:
Originally Posted by Kevin Sevcik View Post
Ex: at +25% command, M- low is ON, M+ high is ON 25% of the cycle, M- low is ON 75% of the cycle.

Did you mean M+ low ?



Last edited by Ether : 06-01-2011 at 17:04.
  #57   Spotlight this post!  
Unread 06-01-2011, 17:26
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: Modeling motor control

Quote:
Originally Posted by Ether View Post
Did you mean M+ low ?
Erm.. Typo? What typo? But yes, thanks for the catch.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #58   Spotlight this post!  
Unread 06-01-2011, 18:19
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

This is very noticeable in motor control when you're slowing down, BTW.
If you go from 100% voltage to 10% voltage on a Tan Jag, the motor just coasts down. If you do the same on a Black Jag, the motor jumps down in speed.
__________________
-- Marshal Horn
  #59   Spotlight this post!  
Unread 06-01-2011, 18:44
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: Modeling motor control

Quote:
Originally Posted by kamocat View Post
This is very noticeable in motor control when you're slowing down, BTW.
If you go from 100% voltage to 10% voltage on a Tan Jag, the motor just coasts down. If you do the same on a Black Jag, the motor jumps down in speed.
Was the jumper set for "coast" on the Black Jag when you ran this test ?


  #60   Spotlight this post!  
Unread 06-01-2011, 18:55
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

Remember this thread?
http://www.chiefdelphi.com/forums/sh...733#post973009

EDIT:
I believe it did happen both in brake and coast mode on the Black Jaguar. It was one of the things I discovered when I was first playing with the BDC-COMM.

EDIT2:
Yes, this happens in coast mode. I just checked, and I keep my jumpers in coast position so I don't have the trouble with Jaguars failing from power generated by the motors when the robot is off.
I was experiencing this locked anti-phase when I was testing yesterday.
__________________
-- Marshal Horn

Last edited by kamocat : 06-01-2011 at 19:01.
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 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