Go to Post Our behavior – both good and bad – is contagious. Set a good example, behave in a mature, reasoned, professional manner and we will find that others around us will too. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2013, 15:10
TeraViks's Avatar
TeraViks TeraViks is offline
Registered User
AKA: Brian Induni
FRC #3145 (TeraViks)
Team Role: Coach
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Hayden, Idaho
Posts: 33
TeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the rough
Wiring limit switch to Jaguar w/o CAN

I'm looking to use a limit switch in it's simplest form to stop a motor when hit. I see the documentation for the Jaguar allows a limit switch to be plugged in to the Jaguar, but it doesn't give specifics. Also, I've seen threads here that suggest using a switch connected to the Jaguar but only when using CAN bus (we are not using CAN).

Can I use a limit switch to "shut off" the Jaguar by directly connecting it? I'd like to do it this way to make the programming as simple as possible.

Besides the Y / N answer, what are the specifics (how/why)? Thanks so much!
__________________
Brian
FIRST team 3145 (notice I'm doing Dean's homework!)
The TeraViks
Coeur d'Alene, Idaho
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2013, 15:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
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: Wiring limit switch to Jaguar w/o CAN

Quote:
Originally Posted by TeraViks View Post
I've seen threads here that suggest using a switch connected to the Jaguar but only when using CAN bus (we are not using CAN).
The Jaguar limit switch capability also works in PWM mode.

In past years, using the Jag's limit switch capability was allowed only in CAN mode.

Check the Robot chapter of the Game Manual to confirm that using it in PWM mode is allowed this year.



Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2013, 15:59
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,731
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: Wiring limit switch to Jaguar w/o CAN

It seems we can use the Jaguar limit switch input without using CAN this year.

Quote:
R65
...
J. Limit switch jumpers may be removed from a Jaguar motor controller and a custom limit switch circuit may be
substituted.
and
Quote:
R68
...
2. PWM configuration: If the Jaguar motor controller is controlled via PWM communications, the PWM port on the
Jaguar motor controller must be connected directly to a PWM port on the Digital Sidecar with a PWM cable.
No other device may be connected to these PWM ports. No other device may be connected to any other port
on the Jaguar motor controller with the exception of connection to the coast/brake port or the limit switch ports.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2013, 00:20
TeraViks's Avatar
TeraViks TeraViks is offline
Registered User
AKA: Brian Induni
FRC #3145 (TeraViks)
Team Role: Coach
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Hayden, Idaho
Posts: 33
TeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the rough
Re: Wiring limit switch to Jaguar w/o CAN

Thanks for the input! All pun intended :-)

It does look like, according to the Jaguar tech doc, that a limit switch can simply by used in place of the jumper and you would have immediate shutoff of the motor in that direction. Seems simple enough - now to go test!

It also seems that the analog input will accept a signal from a potentiometer - does that mean the Jaguar has built in PID controls? I'm no electrical whiz, but again it seems from the tech doc that one could directly connect a pot and have immediate feedback and control without having to mess with ugly code.

Thanks again for the help!
__________________
Brian
FIRST team 3145 (notice I'm doing Dean's homework!)
The TeraViks
Coeur d'Alene, Idaho
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2013, 00:44
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,034
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: Wiring limit switch to Jaguar w/o CAN

Quote:
Originally Posted by TeraViks View Post
does that mean the Jaguar has built in PID controls?
The Jag has built-in PID in the firmware. Must use CAN bus to access it.


Reply With Quote
Reply


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 02:32.

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