Go to Post Teams rarely win FIRST events because they can complete actions that nobody else can; they win because they do things faster than others. - Madison [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 08-02-2011, 09:58
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Why are Limit Switches outlawed with PWM, but not CAN?

Can anyone explain the logic of <R55>- J to me?
If CAN-bus functionality is used, limit switch jumpers may be removed from a Jaguar speed controller and a custom limit switch circuit may be substituted (so that the cRIO-FRC may read the status of the limit switches).
I know that when using PWM to control the Victors, the Limit Switche inputs automatically stop the motors in either direction when the a switch is tripped (discovered by accident). This seems like a GREAT safety feature.

But these jaguar -connected switches are only permitted when using CAN.

The rule "looks" like it's permitting the use of limit switches with CAN ONLY to enable the cRIO to read them. Does this mean that when using CAN, the switches don't actually stop the motors automatically?

If they do stop the motors, it seems like permitting their use with PWM would also make sense.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2011, 10:39
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

When using Servo PWM or CAN to control a Jaguar, the Limit Switch inputs always stop their corresponding direction when the circuit it open.

It is my understanding* that the reasoning for this rule is that you cannot read the state of the limit switch inputs with the cRIO when using PWM. Not having the ability to know the state of the limit switches could potentially lead to undesired behavior.

When using CAN, the cRIO can request the state of the limit switches so it knows what is going on with a particular Jaguar.

*My understanding does not represent the intent of the GDC. So to get an official answer to this question, you should ask the GDC on the Q&A.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2011, 11:07
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

One reason that I haven't asked GDC yet is that I don't think they usually like "why" questions... If they opened the gates for these they would be flooded with questions.

For me... Limit switches have three usefull purposes:

1) To tell you when a motion is complete in autonomous:
2) To stop a heavy handed student from braking something because they couldn't tell what was hapenning on the robot in teleop.
3) They protect the hardware while still developing the software.

Your thoughts make perfect sense for 1), but if all we want to do is prevent accidents on manual motions (like in 2), or during S/W development (like in 3) being able to wire the limit switches directly into the Jaguar even when using PWM provides the best protection.

Since you have verified that the limts do work automatically in both control modes if makes me feel more justified in asking GDC the question.

Thanks
Phil.

Quote:
Originally Posted by dyanoshak View Post
When using Servo PWM or CAN to control a Jaguar, the Limit Switch inputs always stop their corresponding direction when the circuit it open.

It is my understanding* that the reasoning for this rule is that you cannot read the state of the limit switch inputs with the cRIO when using PWM. Not having the ability to know the state of the limit switches could potentially lead to undesired behavior.

When using CAN, the cRIO can request the state of the limit switches so it knows what is going on with a particular Jaguar.

*My understanding does not represent the intent of the GDC. So to get an official answer to this question, you should ask the GDC on the Q&A.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2011, 11:21
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,024
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: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by PhilBot View Post
3) They protect the hardware while still developing the software.
There's no rule preventing you from doing this to protect the hardware during software development. Just make sure you remove it after the software is developed and before showing up for competition.



Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2011, 11:23
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

If motors are in motion due to the state of the limit switch(es), then the FMS cannot stop them.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2011, 11:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
If motors are in motion due to the state of the limit switch(es), then the FMS cannot stop them.
I do not believe this to be the case.
Reply With Quote
  #7   Spotlight this post!  
Unread 08-02-2011, 11:26
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,024
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: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
If motors are in motion due to the state of the limit switch(es), then the FMS cannot stop them.
I believe this is untrue. Can someone at TI please confirm.


Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2011, 11:41
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
If motors are in motion due to the state of the limit switch(es), then the FMS cannot stop them.
That's not how it works. When a NC limit switch opens the circuit, the Jaguar shuts off the motor, regardless of the commands being sent to it.

When the limit switch closes the circuit (or the jumpers are in place), the Jaguar responds to commands. When the FMS sends a disable command, the cRIO shuts off the PWM signal going to the Jaguar. The Jaguar needs to see a signal every 100ms or else it shuts off and goes into a no-signal safe state. Therefore, when the cRIO shuts off PWM at the request of the FMS, the Jaguar shuts off within 100ms.

You can think of the same thing happening with CAN, however it is implemented differently.

I hope this clarifies things.

-David
Reply With Quote
  #9   Spotlight this post!  
Unread 08-02-2011, 11:42
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Good Point.

Quote:
Originally Posted by Ether View Post
There's no rule preventing you from doing this to protect the hardware during software development. Just make sure you remove it after the software is developed and before showing up for competition.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #10   Spotlight this post!  
Unread 08-02-2011, 11:59
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Please remember that this rule was added when Jaguars were first introduced in 2009.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #11   Spotlight this post!  
Unread 08-02-2011, 12:06
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

As a beta tester I don't remember having have CAN bus back in 2009, and I'm pretty sure direct connect Limit Switches were outlawed all together in 2010, regardless of the interface used.

So this is a new twist that seems only half baked.

Phil.

Quote:
Originally Posted by Al Skierkiewicz View Post
Please remember that this rule was added when Jaguars were first introduced in 2009.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #12   Spotlight this post!  
Unread 08-02-2011, 12:22
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Phil,
The limit switch rule was in place in 2009 not CAN bus use.
From 2009 Inspection Checklist
Custom Circuits, Sensors and Additional Electronics - cannot be attached to the cRIO’s serial port or Ethernet port 2 (except for the Axis 206 camera), cannot attach to Jaguar CAN or limit switch ports,...
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 08-02-2011 at 12:43.
Reply With Quote
  #13   Spotlight this post!  
Unread 08-02-2011, 13:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Quote:
Originally Posted by Al Skierkiewicz View Post
Phil,
The limit switch rule was in place in 2009 not CAN bus use.
From 2009 Inspection Checklist
Custom Circuits, Sensors and Additional Electronics - cannot be attached to the cRIO’s serial port or Ethernet port 2 (except for the Axis 206 camera), cannot attach to Jaguar CAN or limit switch ports,...
No wonder we're confused by what you're saying. That's not the rule we're talking about here. This year's <R55> J does permit limit switches when using CAN control.
Reply With Quote
  #14   Spotlight this post!  
Unread 08-02-2011, 13:09
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

I thought that Phil was asking about limit switches when using the PWM inputs in his first post.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #15   Spotlight this post!  
Unread 08-02-2011, 16:28
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Why are Limit Switches outlawed with PWM, but not CAN?

Allow me to restate my question now that we have a few more facts.

(I am having our team leader post this on the Q&A... but just let me clarify)

We've established that regardless of the control method you are using with the Jaguars (CAN or PWM), the Limit switch inputs perform the same control function... that is: they stop the motor running a specific direction if that limit switch circuit goes open-circuit.

This in no way compromises any safety/watchdog/loss-of-comms/FCS shutdown action. It actually adds a level of safety.

The only difference between the two interfaces is that CAN ALSO lets the cRIO read the state of the switches, in case it wants to take some other action (since the motor is already shut down)

So my question is: Why can we connect limit switches to the Jaguar if we are using CAN bus, but not if we are using PWM. The automatic limit control action is the same. Please let us use it!!!

Just because CAN can read the inputs, there is no requirment to do so, but having the automated limit switch is a COOL feature to provide a faster response AND it frees up DSC I/Os for other uses (my other reason for wanting this).

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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 20:23.

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