8 Pin Slide Switch
1. What Is an 8 Pin Slide Switch?
The 8 Pin Slide Switch is a mechanical electronic component used to change electrical connections by moving a sliding actuator between selectable positions.
It features a metal housing, a black plastic actuator and eight electrical terminals designed for through-hole PCB mounting.
This slide switch is suitable for circuit selection, operating mode selection, electronic control panels, robotics and DIY electronics projects.
2. What Can You Build With an 8 Pin Slide Switch?
This slide switch can be used in various electronics applications, including:
- Electronic mode selection circuits
- Arduino and ESP32 input controls
- Robotics control panels
- Signal selection circuits
- DIY electronic instruments
- Custom PCB projects
- Battery-operated electronic devices
- Educational electronics projects
3. Who Is It For?
The 8 Pin Slide Switch is suitable for:
- School and college students
- Electronics and engineering students
- PCB designers
- Arduino and ESP32 enthusiasts
- Robotics hobbyists
- Electronics technicians
- STEM educators
- DIY electronics makers
4. How Does an 8 Pin Slide Switch Work?
An 8 Pin Slide Switch operates through an internal mechanical contact arrangement.
When the actuator is moved, the internal contacts change their connections, allowing different electrical paths to be selected depending on the switch position.
Unlike a momentary push button, a conventional slide switch maintains its selected position until manually moved again.
Working principle:
Actuator Movement → Internal Contact Movement → Electrical Path Selection → Circuit Operation
5. Technical Specifications
| Specification | Details |
|---|---|
| Product Type | Mechanical Slide Switch |
| Number of Pins | 8 |
| Terminal Arrangement | Two rows |
| Operation | Manual sliding |
| Actuator Type | Extended lever |
| Actuator Material | Plastic |
| Actuator Colour | Black |
| Housing | Metal |
| Mounting Type | Through-hole PCB |
| Control Method | Mechanical |
| Application | Circuit selection and mode switching |
6. 8 Pin Slide Switch Pinout
The switch features eight electrical terminals arranged in two rows.
Depending on its internal configuration, these terminals provide different electrical connections when the sliding actuator is moved.
Use a multimeter in continuity mode to identify the common terminals and their corresponding switched contacts.
Always verify the pin configuration before connecting or soldering the switch into a circuit.
7. How to Connect an 8 Pin Slide Switch to Arduino
The slide switch can be used as a manual digital input for Arduino projects.
Required components:
- 8 Pin Slide Switch
- Arduino Uno
- Jumper wires
- Suitable prototyping board
After identifying the common and switched terminals using a multimeter, connect them as follows:
| Slide Switch Terminal | Arduino Uno |
|---|---|
| Common terminal | GND |
| Selected switched contact | Digital Pin 2 |
Enable the Arduino’s internal pull-up resistor to detect the switch position.
8. Arduino Example Code
The following code demonstrates how to detect the selected switch contact using Arduino.
const int switchPin = 2;
const int ledPin = 13;
void setup() {
pinMode(switchPin, INPUT_PULLUP);
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (digitalRead(switchPin) == LOW) {
digitalWrite(ledPin, HIGH);
Serial.println("Contact Closed");
} else {
digitalWrite(ledPin, LOW);
Serial.println("Contact Open");
}
delay(100);
}
When the selected switch contact connects the Arduino input to GND, the onboard LED turns on.
9. Beginner Project: LED Control Using a Slide Switch
Build a simple LED control circuit using the 8 Pin Slide Switch and Arduino Uno.
Required components:
- 8 Pin Slide Switch
- Arduino Uno
- Jumper wires
- LED (optional)
- 220Ω resistor for an external LED
Connect the verified common terminal to GND and a selected switched terminal to Arduino digital pin 2.
Upload the example code to control the Arduino’s onboard LED using the slide switch.
This project helps beginners understand mechanical switching, digital inputs and circuit selection.
10. Related Products
Complete your electronics project with:
- Arduino Uno R3 Compatible Board
- ESP32 Development Board
- 6x6x5mm Tactile Push Button Switch
- TTP223 Touch Sensor Module
- Breadboard
- Jumper Wires
- LED
- Resistors
- BO Motor Dual Shaft
11. Related Tutorials
Suggested learning topics:
- How to use a slide switch with Arduino
- How to identify slide switch terminals using a multimeter
- How to connect a slide switch to ESP32
- Difference between slide switches and push buttons
- How to control an LED using a slide switch
- Understanding electronic switch configurations
12. Frequently Asked Questions
What is an 8 Pin Slide Switch?
An 8 Pin Slide Switch is a mechanical electronic component used to select electrical connections by moving a sliding actuator.
What is an 8 Pin Slide Switch used for?
It is used for circuit selection, signal switching, operating mode selection and electronic control applications.
Can I use this slide switch with Arduino?
Yes. It can be used as a digital input switch after identifying the appropriate electrical terminals.
Is this slide switch compatible with ESP32?
Yes. It can be used in suitable ESP32 digital input circuits.
Does this switch require a power supply?
No. It is a passive mechanical component and does not require a separate operating power supply.
What is the difference between a slide switch and a push button?
A conventional slide switch maintains its selected position, whereas a momentary push button returns to its original position when released.
Can I solder this switch directly onto a PCB?
Yes. It features through-hole terminals suitable for mounting on a PCB with a matching footprint.
How can I identify the terminals of an 8 Pin Slide Switch?
Use a multimeter in continuity mode to check which terminals are electrically connected in each actuator position.
13. What Is Included?
- 1 × 8 Pin Slide Switch
Microcontroller boards, jumper wires and other electronic components are not included.
14. Compatibility
The 8 Pin Slide Switch can be used in suitable electronic circuits involving:
- Arduino Uno
- Arduino Nano
- Arduino Mega
- ESP32
- ESP8266
- Raspberry Pi GPIO
- Custom PCBs
- Standalone electronic circuits
Ensure that the circuit voltage and current remain within the switch’s electrical ratings.
15. Buy 8 Pin Slide Switch Online in India
Complete your next electronics project with the 8 Pin Slide Switch from Yagobotix.
Whether you are building a custom PCB, robotics project or electronic control system, this mechanical slide switch provides a convenient method of selecting electrical connections.
Order online across India or take advantage of same-day delivery and pickup services in Surat, subject to stock availability and applicable order cut-off times.







There are no reviews yet.