|
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.
|