Description
What it is
The KCD3 Round black 2 position switch with 2 pins is ideal for Arduino projects.
Features
- 2 pieces
- Type: KCD3 Round black
- 2 pins
- Current: 15A
- Voltage: 250V
What it is for
This 2 position switch is perfect for controlling electronic devices that require manual intervention, such as lights or motors. It can be used with Arduino and other microcontrollers to create simple control systems.
Tutorial: How to use the KCD3 Round black 2 position switch
This 2 position switch is ideal for controlling electronic devices that require manual intervention, such as lights or motors. Perfect for beginners and basic projects.
What you need
- KCD3 Round black switch
- Connection wires
- Arduino or electronic circuit
- 250V power supply
Steps
- 1. Check that the switch supports 15A and 250V.
- 2. Disconnect the power.
- 3. Connect the wires to the switch, check the datasheet.
- 4. Connect the switch pins to the digital pin of your Arduino.
- 5. Write the basic code to control the state of the switch.
- 6. Upload the code to the Arduino.
- 7. Reactivate the power.
- 8. Check the functionality.
Example code
void setup() {
pinMode(2, INPUT);
}
void loop() {
if (digitalRead(2) == HIGH) {
Serial.println("Switch ON");
} else {
Serial.println("Switch OFF");
}
}
Mini project
Build a control system for a lamp using the KCD3 switch and an Arduino.
Common mistakes
- Do not check the power supply before connecting the wires.
- Connect the switch to a power supply above 250V.
- Do not verify the code before uploading it to the Arduino.
- Omit checking the functionality.
Recommended accessories
- Arduino
- Connection wires
- Lamp
- 250V power supply
Frequently asked questions
Does this switch support remote control?
This switch is a direct contact switch and does not support remote control.
Which Arduino pins should I use?
Use a digital pin, such as D2, to connect the switch.
Can I use a different power supply than 250V?
Check the datasheet for the maximum supported power supply.
Does the switch support more than 15A?
Check the datasheet for the maximum supported current.







Reviews
There are no reviews yet.