Go to Post I am all for high school sports, but as Dean continually preaches, we sometimes are not putting enough emphases in the right places. - Bill Beatty [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2010, 14:13
theyshalllive theyshalllive is offline
Registered User
FRC #0818
 
Join Date: Feb 2010
Location: Sterling height michigan
Posts: 1
theyshalllive is an unknown quantity at this point
Talking wiring the 2010 digital limit switches

we currently have a didgital limit switch wired to that it's normally open and we've wired it in to our kicker system but when we tested the limit switch it doesn't seem to work right. can someone possibly post a link to a wiring diagram....... much thanks from team 818
  #2   Spotlight this post!  
Unread 18-02-2010, 14:20
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,800
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 the 2010 digital limit switches

One wire from the limit switch goes to signal on a Digital Input on the Digital Sidecar.
One wire from the limit switch goes to ground on a Digital Input on the Digital Sidecar.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 18-02-2010, 15:01
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: wiring the 2010 digital limit switches

What Mark said... if you post a picture of your wiring, we may be able to see what the issue is.
  #4   Spotlight this post!  
Unread 18-02-2010, 16:09
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: wiring the 2010 digital limit switches

If you actually mean "it dosen't work right" instead of just "it dosen't work at all", maybe its a simple software thing you overlooked.

All inputs on the DSC are pulled high. That means when unconnected, they will be 1 and not 0. Since you have the limit switch wired NO, between GND and SIG, when the switch is not pressed it will be 1. Then when it is pressed it will be 0. If you are wiring this to a PWM cable, connect the White and Black wires to the COM and NO on the limit switch. Put something on the black wire so it dosen't touch anything, electrical tape works. It dosen't matter which way you insert it or what wire goes to what because the circuit is either made or broken between the outer two pins. How are you reading it in software?
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #5   Spotlight this post!  
Unread 18-02-2010, 23:34
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Re: wiring the 2010 digital limit switches

Visuals are always awesome!



So here's the explanation...

NC = Normally Closed
NO = Normally Open

When you push the switch, it disconnects COM and NC and connects COM and NO. Otherwise, NC and COM are connected.

The Digital Sidecar has something called "Internal Pull-ups". This means that when the signal wire (the white one) isn't connected to anything, it will read logical true. However, when you push the switch, the connection to ground (the black wire) overrides this internal pull-up and pulls it to logical false. The heatshrink on the red wire is to prevent any shorting. In reality, it's not a big deal, but it's safer that way.


What does this mean for code? Well, here's some pseudocode to explain it:

If limitSwitch is False
Do what you're supposed to do when the switch IS triggered
Else
Do what you're supposed to do when the switch is NOT triggered
I know it seems backwards, but you'll get used to it. If you need language specific help, feel free to message me (or post back, whatever you're most comfortable with).
  #6   Spotlight this post!  
Unread 19-02-2010, 15:02
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: wiring the 2010 digital limit switches

Quote:
Originally Posted by Geek 2.0 View Post
Visuals are always awesome!



So here's the explanation...

NC = Normally Closed
NO = Normally Open

When you push the switch, it disconnects COM and NC and connects COM and NO. Otherwise, NC and COM are connected.

The Digital Sidecar has something called "Internal Pull-ups". This means that when the signal wire (the white one) isn't connected to anything, it will read logical true. However, when you push the switch, the connection to ground (the black wire) overrides this internal pull-up and pulls it to logical false. The heatshrink on the red wire is to prevent any shorting. In reality, it's not a big deal, but it's safer that way.


What does this mean for code? Well, here's some pseudocode to explain it:

If limitSwitch is False
Do what you're supposed to do when the switch IS triggered
Else
Do what you're supposed to do when the switch is NOT triggered
I know it seems backwards, but you'll get used to it. If you need language specific help, feel free to message me (or post back, whatever you're most comfortable with).
Hi Im Joe from team 3017
we are now trying to use the limit switch. However, do you know how to program it? Or where to find the file in WPILib. By the way, I'm using C++.
THANKS
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #7   Spotlight this post!  
Unread 19-02-2010, 20:17
LavaEagle LavaEagle is offline
Registered User
FRC #2660
 
Join Date: Oct 2009
Location: WA
Posts: 22
LavaEagle is an unknown quantity at this point
Re: wiring the 2010 digital limit switches

We have set up our robot exactly how you did this, wiring wise and then we had setup our limit switch exactly how the frcmastery.com video said to do it.

How we have our robot setup.
- a kicker is pulled back(by a victor) until limit switch is pushed
- victor then reverses until a limit switch 2 is pushed
- then waits for a button to be pushed (and the kicker is released.(this is irrelevant))

We can't get step 1 to even happen.
From everything we have looked up it looks good multiple tutorials past examples above examples.

How do we get (this) to happen (when) (limitSwitch) is pushed?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiring Switches to the PSoC board Raj1977 Electrical 13 07-02-2010 23:24
IEC 2010 limit switch wiring captainking Electrical 1 02-02-2010 21:01
Using Limit Switches with the Arm iwin2000 Programming 3 18-02-2008 03:52
Anyone got info on the new limit switches contest??? waialua359 General Forum 1 18-02-2008 00:07
Question about wiring digital switches. DemonYawgmoth Electrical 3 08-02-2007 17:57


All times are GMT -5. The time now is 12:38.

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