31-03-2014, 03:06 PM
Digital Inputs - Pushbuttons
Digital Inputs .ppt (Size: 947 KB / Downloads: 136)
Pushbuttons
Pushbuttons are virtually everywhere interactions with an electronics device are required.
In Chapter #2, the BASIC Stamp was used for output control of a device – an LED. In this chapter the BASIC Stamp will be used to read the state of an input from a simple device – the pushbutton
Activity #1: Testing a PushButton/LED Circuit
The pushbuttons supplied with the kits are normally-open, momentary contact. That is, the switch does not make contact until the button is pressed. Once released, it returns to the open position.
Open State: The pins on either side are electrically the same point. With the button released, there is no path for electrons between pins 1,4 and 2,3.
AND: BOTH conditions have to be true for the overall statement to be true.
It needs this AND that to be true.
OR: EITHER condition or both have to be true. It needs this OR that to be true.
XOR (Exclusive OR): This OR that must be true, but BOTH cannot be true. It needs this OR that, but NOT both to be true.