Description
What it is
Kit Self-Locking Waterproof Switches KAN-10A – 4 Pieces is a set of 4 self-locking waterproof switches of type KAN-10A / 1010X.
Features
- 4 pieces
- Type: KAN-10A / 1010X
- Self-locking
- Waterproof
What it is for
These self-locking waterproof switches are ideal for Arduino projects that require a safe and water-resistant control. They can be used to create home alarm systems, presence sensors, or any other device that needs a reliable and moisture-protected switch.
Tutorial: How to use Kit Self-Locking Waterproof Switches KAN-10A
These self-locking waterproof switches are ideal for projects that require a safe and water-resistant control. They are perfect for beginner and intermediate makers who want to create interactive and robust devices.
What you need
- Arduino Uno
- USB cable
- Breadboard
- Various connectors
- Power supply
Steps
- Install the switch on the breadboard, checking the position of the contacts.
- Connect the breadboard pins to the Arduino: GND, VCC and the signal pin.
- Write and upload the Arduino sketch.
- Test the switch operation by pressing the button.
- Verify that the signal is correctly sent to the Arduino.
- If necessary, adjust the connections or the code.
- Design a small test project to test the switch.
- Document the results and the steps followed during project creation.
Example code
const int interruptPin = 2;
int buttonState = 0;
void setup() {
pinMode(interruptPin, INPUT);
}
void loop() {
buttonState = digitalRead(interruptPin);
if (buttonState == HIGH) {
Serial.println("Interruttore premuto");
}
}
Mini project
Create a home alarm system that activates an audio or visual signal when the switch is pressed.
Common mistakes
- Incorrect pin connection
- Incorrect pinMode setting
- Switch not pressed correctly
- Power supply issues
Recommended accessories
- Arduino Uno
- Breadboard
- LED
- Resistor
Frequently asked questions
Is the switch waterproof?
Yes, it is designed to withstand water.
Can it be used as a permanent switch?
Yes, the switch has a self-locking feature.





Reviews
There are no reviews yet.