|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#46
|
|||||
|
|||||
|
Re: Modeling motor control
Quote:
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. |
|
#47
|
||||
|
||||
|
Re: Modeling motor control
Quote:
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
|
|||||
|
|||||
|
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.
|
|
#49
|
|||||
|
|||||
|
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.
|
|
#50
|
||||
|
||||
|
Re: Modeling motor control
Quote:
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). 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:
Quote:
Last edited by Ether : 06-01-2011 at 14:07. Reason: forgot to attach schematic |
|
#51
|
|||||
|
|||||
|
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). |
|
#52
|
|||||
|
|||||
|
Re: Modeling motor control
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.
|
|
#53
|
||||
|
||||
|
Re: Modeling motor control
Quote:
|
|
#54
|
|||||
|
|||||
|
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? Last edited by Kevin Sevcik : 06-01-2011 at 17:25. |
|
#55
|
||||
|
||||
|
Re: Modeling motor control
Yes. You are the man !
|
|
#56
|
||||
|
||||
|
Re: Modeling motor control
Quote:
Did you mean M+ low ? Last edited by Ether : 06-01-2011 at 17:04. |
|
#57
|
|||||
|
|||||
|
Re: Modeling motor control
Erm.. Typo? What typo? But yes, thanks for the catch.
|
|
#58
|
||||
|
||||
|
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. |
|
#59
|
||||
|
||||
|
Re: Modeling motor control
Quote:
|
|
#60
|
||||
|
||||
|
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. Last edited by kamocat : 06-01-2011 at 19:01. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |