View Single Post
  #1   Spotlight this post!  
Unread 24-01-2014, 20:58
LFRobotics's Avatar
LFRobotics LFRobotics is offline
Registered User
FRC #4623
 
Join Date: Jan 2014
Location: Little Falls, MN
Posts: 95
LFRobotics is on a distinguished road
VZ-2B17D8-048 Limit Switch Wiring

Hey robot peeps - Im the head electronics/programming guy on the LF Robotics team - I am the only one of my kind on the team and this is my first year - so I have absolutely NO experience.

So......

I want to have a winMotor spin a wheel until it reaches the end of a cord and hits a limit switch - when it hits that limit switch I want it to reverse its direction until it hits a second limit switch which will be located at the point that it started from - when it hits this limit switch I want it to stop until it is triggered to start again by a button on the joystick.

How do I wire the limit switches? I seriously have absolutely no idea how to wire them or how to program them. The programming questions will be posted in the programming section. The switches have three pins - NC2, NO3, and COM1(Normally Closed, Normally Open, Common Ground).

Here is a picture of the switch:



I am using Java with Netbeans.

Any help will be GREATLY appreciated - THANKS!

Last edited by LFRobotics : 24-01-2014 at 21:08.