

The Keyestudio Bouton is a tactile push button switch designed for user input in electronic projects. It allows for simple activation and deactivation of circuits by pressing the button. This component is widely used in prototyping, DIY electronics, and educational projects due to its ease of use and reliability.








The Keyestudio Bouton is a momentary push button switch with the following specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Maximum Current | 50mA |
| Contact Resistance | ≤ 100mΩ |
| Insulation Resistance | ≥ 100MΩ |
| Operating Temperature | -25°C to +85°C |
| Dimensions | 12mm x 12mm x 7.3mm |
| Mounting Type | Through-hole or breadboard |
The Keyestudio Bouton has four pins, arranged in a square configuration. The pins are internally connected in pairs, as shown below:
| Pin | Description |
|---|---|
| Pin 1 | Connected to Pin 2 (internally linked) |
| Pin 2 | Connected to Pin 1 (internally linked) |
| Pin 3 | Connected to Pin 4 (internally linked) |
| Pin 4 | Connected to Pin 3 (internally linked) |
Note: When the button is pressed, the internal connection between Pin 1/2 and Pin 3/4 is completed, allowing current to flow.
Below is an example of how to use the Keyestudio Bouton with an Arduino UNO to turn an LED on and off:
// Define pin numbers
const int buttonPin = 2; // Pin connected to the button
const int ledPin = 13; // Pin connected to the LED
// Variable to store button state
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT); // Set button pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
// Read the state of the button
buttonState = digitalRead(buttonPin);
// If the button is pressed, turn on the LED
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn LED on
} else {
digitalWrite(ledPin, LOW); // Turn LED off
}
}
Note: This code assumes a pull-down resistor is used on the button pin.
Button Not Responding:
Button Produces Erratic Behavior:
Microcontroller Not Detecting Button Press:
Q: Can I use the Keyestudio Bouton with a 3.3V system?
A: Yes, the button is compatible with both 3.3V and 5V systems.
Q: Do I need to use a pull-down resistor?
A: Yes, a pull-down resistor is recommended to ensure stable input signals when the button is not pressed.
Q: How do I debounce the button in software?
A: You can use a delay or a state-checking algorithm in your code to filter out rapid, unintended presses.
Q: Can I use the button to control high-power devices?
A: No, the button is designed for low-power applications. Use a relay or transistor to control high-power devices.