Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Odd PWM problem (Can't get full green) (http://www.chiefdelphi.com/forums/showthread.php?t=107445)

AllenGregoryIV 24-07-2012 16:14

Re: Odd PWM problem (Can't get full green)
 
Well it looks like it's a problem with the factory calibration and today we were able to calibrate it to give full forward voltage. I'm not sure why it worked today and the past two days it didn't but whatever.

Here are the oscope outputs
Neutral Jaguar


Full FWD Jaguar


Full REV Jaguar

AllenGregoryIV 24-07-2012 16:16

Re: Odd PWM problem (Can't get full green)
 
Victor PWM outputs in case anyone is interested.

Neutral Victor


Full FWD Victor


Full REV Victor


Thanks to everyone that helped diagnose this problem, still not sure why the factory calibration was ever messed up.

Ether 24-07-2012 17:28

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by AllenGregoryIV (Post 1179031)
Here are the oscope outputs

I had not realized that the cRIO puts out 200Hz (5ms period) PWM when in Jag mode.

Can someone please confirm that this is correct operation?



EricVanWyk 24-07-2012 18:07

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by Ether (Post 1179047)
I had not realized that the cRIO puts out 200Hz (5ms period) PWM when in Jag mode.

Can someone please confirm that this is correct operation?



That is correct operation. The Jaguar uses a faster and wider signal to push more updates per second with higher resolution.

Ether 24-07-2012 18:14

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by EricVanWyk (Post 1179050)
That is correct operation. The Jaguar uses a faster and wider signal to push more updates per second with higher resolution.

Thanks Eric. I need to update the PWM Generator app then. I presently have the low limit set to 10ms.



EricVanWyk 24-07-2012 18:19

Re: Odd PWM problem (Can't get full green)
 
It should work with fine with longer pulse windows. The frequency is unimportant, so long as it is quick enough to not trip the watchdog, and slow enough to still be legible. The width is the important factor.

Ether 24-07-2012 18:24

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by EricVanWyk (Post 1179054)
It should work with fine with longer pulse windows. The frequency is unimportant, so long as it is quick enough to not trip the watchdog, and slow enough to still be legible. The width is the important factor.

Understood. But I want to mimic the cRIO's signal as closely as possible.

I forgot to ask: what period does the cRIO use for the Vic PWM signal?



Joe Ross 24-07-2012 18:26

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by Ether (Post 1179056)
Understood. But I want to mimic the cRIO's signal as closely as possible.

I forgot to ask: what period does the cRIO use for the Vic PWM signal

5ms on Jaguar, 10ms on Victor, 20ms on Servo. There's some nice comments in the PWM source code.

The comment says jaguar is actually 5.05ms, but I can't view the scope plots to confirm.

Ether 24-07-2012 18:47

Re: Odd PWM problem (Can't get full green)
 
Quote:

Originally Posted by Joe Ross (Post 1179057)
5ms on Jaguar, 10ms on Victor, 20ms on Servo. There's some nice comments in the PWM source code.

The comment says jaguar is actually 5.05ms, but I can't view the scope plots to confirm.

Thanks Joe.

I've updated the app, if anyone's interested.

Available here.

BTW, an earlier version of this was used in June on an old Compaq DeskPro 2000 running FreeDOS 0.84 to run a Vic driving a CIM on a dynamometer. Oscilloscope traces of the waveform showed the pulse width generated by the app was accurate to within +/-0.001 milliseconds of the operator setting.




All times are GMT -5. The time now is 05:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi