Go to Post Dave Lavery says it's pimp? I don't care if the Pope says it's pimp, it still doesn't pass inspection! - MissInformation [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 20-07-2011, 20:51
bearsomg bearsomg is offline
Registered User
FRC #1511
 
Join Date: Sep 2009
Location: Penfield, New York
Posts: 5
bearsomg is an unknown quantity at this point
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)?
__________________
----------------------------------
Justin
FIRST Team 1511 - Rolling Thunder
  #2   Spotlight this post!  
Unread 20-07-2011, 21:43
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: PWM Pulse Help


Quote:
Originally Posted by bearsomg View Post
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 View Post
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


Attached Thumbnails
Click image for larger version

Name:	Jag PWM input.png
Views:	86
Size:	74.1 KB
ID:	10840  

Last edited by Ether : 20-07-2011 at 21:56.
  #3   Spotlight this post!  
Unread 20-07-2011, 21:53
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: PWM Pulse Help

Quote:
Originally Posted by bearsomg View Post
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #4   Spotlight this post!  
Unread 20-07-2011, 23:36
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
Re: PWM Pulse Help

white wire= signal
red=power
black=ground
  #5   Spotlight this post!  
Unread 21-07-2011, 08:02
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
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: PWM Pulse Help


Quote:
Originally Posted by windtakers View Post
white wire= signal
red=power
black=ground
red=power NOT USED. read previous posts.



  #6   Spotlight this post!  
Unread 21-07-2011, 11:57
s1900ahon s1900ahon is offline
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 156
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
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
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


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

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