Product Description
Independent buttons are also called tap switches, which are used to push the working direction of the switch to match the working state, and the switch is closed and connected. When the pressure is withdrawn, the switch is disconnected, and its internal structure is realized by the change in the force of the metal bullet. We clearly find in the following four-pin circuit diagram that under normal circumstances, pins 1 and 2, 3 and 4 are connected; when we press the button, the four feet are connected; when the key is released, the normal state is restored. The key control can be realized by using digital I/O. The meaning of the digital I/O port is input and output. Now let's try to use the input function of the I/O in Arduino, that is, the function is to read the output value from an external device. In this experiment, we use a button and an LED to perform an experiment using a combination of input and output. Our key module will output a low level when the button is pressed and a high level when the key is released.
Pin Name Description
G GND (negative input power)
V VCC (positive input power)
1 digital signal pin
2 digital signal pins
3 digital signal pins
4 digital signal pins
Module parameters
Voltage: 3.3V/5V
Connection mode: 2.54mm pin row
Installation method: double screw fixing