Description
What it is
The 7x7mm latching switch with 6 pins is an electronic component that allows a circuit to be interrupted and reconnected. Once pressed, the switch remains closed until pressed again.
Features
- Dimensions: 7 * 7mm
- Number of pins: 6
- Quantity: 10 pieces
What it is for
Perfect for Arduino projects, this latching switch can be used to control electronic circuits with precision. It can be employed in applications that require mechanical control, such as:
- Creating a simple home door alarm system by connecting it to a motion detector and activating an acoustic signal.
Tutorial: How to use Latching Switch 10 pieces
The latching switch is used to interrupt and reconnect an electrical circuit. Useful for projects that require mechanical control.
What you need
- Latching switch 10 pieces
- Arduino
- 1 kΩ resistor
- connection wire
Steps
- 1. Assemble the switch on a protoboard.
- 2. Connect to the switch with a wire.
- 3. Connect the other end of the wire to pin 2 of Arduino.
- 4. Connect the resistor between pin 2 of Arduino and GND.
- 5. Load the code onto Arduino.
- 6. Check the logic of your application.
- 7. Repeat for the other 9 pieces.
- 8. Check the datasheet for further details
Example code
int button = 2;
void setup() {
pinMode(button, INPUT);
}
void loop() {
if (digitalRead(button) == HIGH) {
Serial.println("Interruttore attivato");
}
}
Mini project
Build a simple door alarm system. Connect the switch to a motion sensor and activate an acoustic signal.
Common mistakes
- Do not check the datasheet before using the switch.
- Connect the switch directly to GND without resistor.
- Omit the verification of maximum current.
- Do not use a protoboard for assembly.
Recommended accessories
- motion sensor
- speaker
- protoboard
- Connection Cables
Frequently asked questions
How can I check the datasheet?
Access the manufacturer’s website and search for the product datasheet.
What is the maximum current the switch can handle?
Check the datasheet.
Can I use the switch with a microcontroller other than Arduino?
Yes, but check the compatibility on the datasheet.
How long does the self-locking adhesive last?
Check the datasheet.







Reviews
There are no reviews yet.