View Single Post
  #3   Spotlight this post!  
Unread 09-02-2015, 21:11
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Micro Switch Wiring & Programming

We're using these things for the same purpose of stopping a potentially-dangerous component of the robot.

What we did was saw off the male end of a PWM cable and solder the signal and ground to NO and COM respectively. The female side of the PWM then goes into the DIO breakout of the roboRIO. You'd treat it as a digital input in your code and look for a boolean value to decide what would happen if pressed/not pressed.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)