View Single Post
  #8   Spotlight this post!  
Unread 15-02-2009, 23:35
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,990
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Micro Switch + PWM = Button?

The switch has two terminals next to each other, they are NC and NO (normally closed and normally open). There is a third terminal on the other side of the switch, which is COM (common). If you connect the white signal wire to COM, the NC to the black wire, and the NO to the red wire, then it will switch the signal from ground to +5 when the lever is pressed.

The way you have it now, there is no voltage going to the signal input, so it will not show anything in the program when you close the switch.