Go to Post that....was more far-fetched than the tennis ball I threw for my dog earlier today... - TeknicllyInsane [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
  #1   Spotlight this post!  
Unread 07-01-2011, 00:45
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,680
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

Alright, I'm transferring a post from the current sensing thread over here to keep things better organized.

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.
Noooo, the Jags aren't operating in locked anti phase, and the tan wouldn't if the PWM pin was modulated.

Locked anti-phase required reserving the entire h-bridge to go from forward bias to reverse bias in respective PWM phases. It's a Forward-Reverse phase modulation. That's definitely not what either Jag is doing.

Both Jags hold one half of the h-bridge constant. So in forward motion, the M- half is held high-OFF, low-ON for the entire PWM cycle. In the Tan Jags, the M+ high side is selected via the PWM pin, and the output disable is modulated, so the M+ low side would never turn on. So that's a Forward-Open modulation. The Black Jags do things differently and alternately drive the M+ high and low sides. That's a Forward-Shorted modulation, because we never turn on the M- high side.

So I was suggesting that the Tan hardware seems perfectly capable of the same Forward-Shorted operation as the Black if they modulated the PWM pin instead of the Output Disable pin.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

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

Oh, you're right, my mistake.
If they modulated the PWM pin, it would have the same control as the Black Jaguar.
Isn't that interesting? I wonder why they haven't changed that yet.
__________________
-- Marshal Horn
  #3   Spotlight this post!  
Unread 07-01-2011, 10:15
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,680
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

They very well may have changed it for the FRC firmware. Again with my caveats that this is all based off the reference source code released by Luminary Micro, which may not be identical to the FRC firmware. I'm not much interested in hunting up a disassembler for pick apart the FRC firmware just to double check things though. Anyways, the only reason I can think of for not doing it is if the don't trust the dead time protection in their FET drivers.

FETs all have some delay between turning off the gate supply and when conduction actually stops. So if you're simply turning off the high side and turning on the low side at the same instant, you can get "shoot-through" where you've actually shorted V+ to V- for some small amount of time. This is obviously bad, so most integrated FET drivers have provisions for adding "dead time" between turning one side off and the other on. The Tan Jag's driver says it has built in dead time, but Luminary Micro may not have trusted it, or may have discovered a problem with their implementation of it. Or they may have just not wanted bother with the possibility of a problem.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #4   Spotlight this post!  
Unread 07-01-2011, 11:17
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: Modeling motor control

It may well have been to help the bootstrap work.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   Spotlight this post!  
Unread 07-01-2011, 15:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,083
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
Both Jags hold one half of the h-bridge constant. So in forward motion, the M- half is held high-OFF, low-ON for the entire PWM cycle. In the Tan Jags, the M+ high side is selected via the PWM pin, and the output disable is modulated, so the M+ low side would never turn on. So that's a Forward-Open modulation. The Black Jags do things differently and alternately drive the M+ high and low sides. That's a Forward-Shorted modulation, because we never turn on the M- high side.
Just to clarify, even with "Forward-Open", the Tan Jag still has a path for the current through the Q4,5,&6 Zener diodes.


  #6   Spotlight this post!  
Unread 07-01-2011, 15:46
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,680
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
Just to clarify, even with "Forward-Open", the Tan Jag still has a path for the current through the Q4,5,&6 Zener diodes.
Yes, but with a 1V drop, which will drain the current a fair bit quicker. And the more important difference that if your current decays quick enough that you'd start regenerative braking, the diodes will stop that. So the "Forward-Open" mode has an advantage in the (rare) case that a motor is turning fast enough with low enough current that you'd encounter reverse torque.

Come to think of it, this explains Marshal's report of different operating characteristics between the tan and black jags. If you're running the motor at high/full speed and drop to a lower PWM command, the current will decay quicker in the tan jag, but you'll never get reverse torque, so you'll "coast" during the off cycle. In the Black Jag, there's a path for reverse current during the off cycle, so it's possible for the back emf to build up a reverse current and create reverse torque to slow the motor down quicker.

I think this makes sense, but I don't have any simulations set up at the moment to test it.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #7   Spotlight this post!  
Unread 07-01-2011, 17:10
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,083
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
Come to think of it, this explains Marshal's report of different operating characteristics between the tan and black jags. If you're running the motor at high/full speed and drop to a lower PWM command, the current will decay quicker in the tan jag, but you'll never get reverse torque, so you'll "coast" during the off cycle. In the Black Jag, there's a path for reverse current during the off cycle, so it's possible for the back emf to build up a reverse current and create reverse torque to slow the motor down quicker.

I think this makes sense, but I don't have any simulations set up at the moment to test it.
That is a reasonable hypothesis, and makes sense intuitively, but the analysis doesn't support it (unless my math or assumptions are wrong - which is certainly possible).

With a CIM and a Black Jag: even if the CIM is going at full throttle no-load, it takes almost 45 microseconds for the 2.7amp no-load current to decay to zero if you short the motor. The Jag's PWM period is 33 microseconds.


  #8   Spotlight this post!  
Unread 07-01-2011, 18:02
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,083
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
Yes, but with a 1V drop, which will drain the current a fair bit quicker.
I plugged an additional 1 volt into the analysis mentioned in my earlier post; it makes very little difference with a CIM.

I don't have L values for other motors.

Quote:
And the more important difference that if your current decays quick enough that you'd start regenerative braking, the diodes will stop that. So the "Forward-Open" mode has an advantage in the (rare) case that a motor is turning fast enough with low enough current that you'd encounter reverse torque.
Good point. That may (or may not) happen with other motors.



Last edited by Ether : 07-01-2011 at 18:46. Reason: corrected typo
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 02:42.

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