Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
👉 Ready to explore and create with us? Click [here] and join today!
Slide Switch
A slide switch, as the name suggests, operates by sliding a switch bar to open or close a circuit, allowing it to toggle between different circuits. Common types include SPDT, SPTT, DPDT, and DPTT. Slide switches are often used in low-voltage circuits due to their flexibility, stability, and wide application in electronic instruments and toys.
How It Works
The middle pin serves as the fixed connection point. When the slide bar is moved to the left, the two pins on the left become connected. Similarly, moving the slide bar to the right connects the two pins on the right. This mechanism enables the switch to establish or break connections between circuits. Refer to the diagram below for a visual representation.
The circuit symbol of the slide switch is shown as below. The pin2 in the figure refers to the middle pin.
Example
2.7 Toggle Left and Right (For MicroPython User)
7.3 Building an Alarm Siren Lamp (For MicroPython User)
2.7 Toggle Left and Right (For Arduino User)