Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   PWM Pulse Help (http://www.chiefdelphi.com/forums/showthread.php?t=96340)

bearsomg 20-07-2011 20:51

PWM Pulse Help
 
I'm trying to design a computer program that will use the digital outputs of a computer's parallel port to control a jaguar through PWM. From what I know already, one pin goes to ground, but what are the other two pins on the PWM cable used for?

Also, how would I calculate the pulse on/off time to sending high/low values through the PWM pulse pin to set the Jaguar to certain speeds (I.e. what would I need to send through the 3 pins to get the equivalent of half speed on the jaguar output)?

Ether 20-07-2011 21:43

Re: PWM Pulse Help
 
1 Attachment(s)

Quote:

Originally Posted by bearsomg (Post 1069851)
I'm trying to design a computer program that will use the digital outputs of a computer's parallel port to control a jaguar through PWM. From what I know already, one pin goes to ground, but what are the other two pins on the PWM cable used for?

http://www.chiefdelphi.com/forums/at...d=13112133 46


Quote:

Originally Posted by bearsomg (Post 1069851)
how would I calculate the pulse on/off time to sending high/low values through the PWM pulse pin to set the Jaguar to certain speeds (I.e. what would I need to send through the 3 pins to get the equivalent of half speed on the jaguar output)?

http://www.chiefdelphi.com/forums/at...4&d=1291927655



Mark McLeod 20-07-2011 21:53

Re: PWM Pulse Help
 
Quote:

Originally Posted by bearsomg (Post 1069851)
From what I know already, one pin goes to ground, but what are the other two pins on the PWM cable used for?

The red or center wire is unused by a Jaguar.
The white wire is for the signal pulses.

windtakers 20-07-2011 23:36

Re: PWM Pulse Help
 
white wire= signal
red=power
black=ground

Ether 21-07-2011 08:02

Re: PWM Pulse Help
 

Quote:

Originally Posted by windtakers (Post 1069875)
white wire= signal
red=power
black=ground

red=power NOT USED. read previous posts.




s1900ahon 21-07-2011 11:57

Re: PWM Pulse Help
 
Internal to the Jaguar, the white wire (which contains the PWM signal) is put through the diode of an opto isolator and the current returns via the black wire. As pointed out, the red wire isn't used. The other side of the opto isolator goes to a GPIO pin of the microcontroller in the Jaguar which measures the pulse width.

You can get the Jaguar's schematics which might provide you more insight and help with your interfacing exercise.. The CD accompanying the developer's version of Jaguar are available for free download on the TI web site. See http://focus.ti.com/docs/toolsw/fold...-bdc24-cd.html

Also be aware of the pulse width and frequency requirements. By default, the Jaguar uses a wider pulse width range than standard hobby servos or the Victor. NI and TI (then Luminary Micro) worked together to provide more granularity to the output and therefore the PWM width is wider. It can also be operated with a period in the range of 5-30 ms (5 ms for a 200 Hz update rate). If you need it to work in the same range as a standard hobby servo, you'll need to calibrate the Jaguar, and remember to recalibrate it if you put it back on an FRC robot later.

-Scott


All times are GMT -5. The time now is 23:37.

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