

The M02_BUTTON is a momentary push-button switch manufactured by MakerEdu.vn (Part ID: BUTTON). This component is designed to complete an electrical circuit when pressed and break the circuit when released. It is widely used for user input in electronic devices, such as triggering actions, resetting systems, or navigating menus. Its compact design and ease of use make it a staple in both beginner and advanced electronics projects.








The following table outlines the key technical details of the M02_BUTTON:
| Parameter | Value |
|---|---|
| Manufacturer | MakerEdu.vn |
| Part ID | BUTTON |
| Type | Momentary push-button switch |
| Operating Voltage | 3.3V to 5V |
| Maximum Current | 50mA |
| Contact Resistance | ≤ 100mΩ |
| Insulation Resistance | ≥ 100MΩ |
| Operating Temperature | -20°C to +70°C |
| Dimensions | 6mm x 6mm x 5mm |
| Mounting Type | Through-hole or PCB mount |
The M02_BUTTON has four pins, but only two are electrically active. The other two pins are for mechanical stability. Below is the pin configuration:
| Pin Number | Description |
|---|---|
| Pin 1 | Active terminal (connect to circuit) |
| Pin 2 | Active terminal (connect to circuit) |
| Pin 3 | Mechanical support (no connection) |
| Pin 4 | Mechanical support (no connection) |
Below is an example of how to use the M02_BUTTON with an Arduino UNO to toggle an LED:
// Define pin connections
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_PULLUP); // Set button pin as input with internal pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
buttonState = digitalRead(buttonPin); // Read the button state
if (buttonState == LOW) { // Button is pressed (LOW due to pull-up resistor)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Note: The internal pull-up resistor is enabled in the code to simplify the circuit.
Button Not Responding
False Triggering
Button Stuck or Not Clicking
Q: Can I use the M02_BUTTON with 12V circuits?
A: No, the M02_BUTTON is rated for a maximum of 5V. Using it with higher voltages may damage the component.
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 changes in the button state caused by bouncing.
Q: Are all four pins of the button functional?
A: No, only two pins are electrically active. The other two pins are for mechanical stability.
By following this documentation, you can effectively integrate the M02_BUTTON into your electronic projects.