Go to Post FIRST is not about winning awards, it's about learning and advancing the human culture - crispyc [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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).
 


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