

The MKE-M02_BUTTON is a compact push-button switch manufactured by MakerEdu.vn (Part ID: BUTTON). It is designed for user input in electronic devices, offering a durable design and reliable performance. This versatile component is widely used in various applications, including prototyping, embedded systems, and consumer electronics.








| Parameter | Value |
|---|---|
| Manufacturer | MakerEdu.vn |
| Part ID | BUTTON |
| Operating Voltage | 3.3V to 5V |
| Maximum Current Rating | 50mA |
| Contact Resistance | ≤ 100mΩ |
| Insulation Resistance | ≥ 100MΩ at 500V DC |
| Operating Temperature | -20°C to +70°C |
| Mechanical Durability | 100,000 cycles |
| Dimensions | 6mm x 6mm x 5mm |
The MKE-M02_BUTTON is a 4-pin push-button switch. The pins are internally connected in pairs, as shown below:
| Pin Number | Description |
|---|---|
| 1 | Connected to Pin 2 (internally) |
| 2 | Connected to Pin 1 (internally) |
| 3 | Connected to Pin 4 (internally) |
| 4 | Connected to Pin 3 (internally) |
Note: Pins 1 and 2 form one terminal, while Pins 3 and 4 form the other terminal. When the button is pressed, the two terminals are shorted.
Connection:
Pull-Up or Pull-Down Resistor:
Debouncing:
Below is an example of how to connect and use the MKE-M02_BUTTON with an Arduino UNO:
// Define the pin connected to the button
const int buttonPin = 2;
// Define the pin for the LED
const int ledPin = 13;
// Variable to store the button state
int buttonState = 0;
void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with internal pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
// Read the state of the button
buttonState = digitalRead(buttonPin);
// If the button is pressed (LOW state due to pull-up resistor)
if (buttonState == LOW) {
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
| Issue | Possible Cause | Solution |
|---|---|---|
| Button does not respond | Incorrect wiring or loose connections | Verify connections and wiring. |
| Button produces erratic behavior | Switch bouncing | Implement hardware/software debouncing. |
| Microcontroller reads incorrect state | Missing pull-up or pull-down resistor | Add a pull-up or pull-down resistor. |
| Button feels stuck or unresponsive | Mechanical wear or debris | Inspect and clean the button. |
Can I use the MKE-M02_BUTTON with 3.3V systems?
What is the lifespan of the button?
Do I need an external pull-up resistor if using an Arduino?
INPUT_PULLUP.How do I debounce the button in software?
By following this documentation, you can effectively integrate the MKE-M02_BUTTON into your projects and ensure reliable performance.