A push button, also known as a tactile switch, operates by applying pressure in the direction of the switch to meet the actuation force requirement, causing the switch to close and connect. When the pressure is removed, the switch opens. The internal mechanism relies on the force changes of a metal dome to achieve the open and closed states. As shown in the four-pin circuit diagram, under normal conditions, pins 1 and 2, and pins 3 and 4 of the button are connected. When the button is pressed, all four pins are connected. When the button is released, it returns to its normal state. Using digital I/O, we can implement button control. The digital I/O port has INPUT and OUTPUT interfaces. Now let's try to use the INPUT function of the I/O in Arduino, which reads the output value from an external device in this experiment. We will use a button and an LED to complete the experiment using INPUT and OUTPUT as a combination. Our button module outputs a low level when the button is pressed and a high level when released.
Schematic Diagram
Module Parameters
Pin Definitions
Pin Name | Description |
---|---|
G | GND (Power input ground) |
V | VCC (Power input positive) |
S | Signal (Digital signal output pin) |
Additional Specifications
- Supply Voltage: 3.3V / 5V
- Connection Method: 2.54mm pitch header
- Mounting Method: Dual screw fixing