Sale!

20 Pieces SS12F23 / Horizontal Lever Switch / 5 Folded Pins 2 Position 4mm Contact Switch

Original price was: 2,56 €.Current price is: 1,97 €. Excluding VAT

20 Pieces SS12F23 / Toggle Switch / 5 Bent Pins 2 Positions Switch 4 mm

9 in stock (can be backordered)

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Category:

🎬 The product on video

Description

What it is

The SS12F23 switch is an electronic component used to control the flow of current in circuits. This horizontal lever switch features 5 bent pins and offers two positions, with a contact spacing of 4 mm.

Features

  • Type: Horizontal Lever Switch
  • Number of Positions: 2
  • Lever Length: 12 mm
  • Mounting Hole Diameter: 4 mm
  • Bent Pins: 5

What it is for

This switch is ideal for Arduino projects and other electronic devices that require a simple manual control system. It can be used in prototypes, small applications, and any other use case where it is necessary to regulate the flow of current through a circuit.

Tutorial: How to Use Horizontal Lever Switch SS12F23

The SS12F23 horizontal slide switch is a simple but fundamental component for electronic projects. Ideal for both beginners and more experienced makers, this switch can be used in various devices such as prototypes and small applications.

What you need

  • Arduino Uno or compatible
  • Breadboard connection
  • Jumper wires

Steps

  1. Connect the two terminals of the center pin of the switch to the input pin of the Arduino.
  2. Connect the four side terminals (two groups of two) to the 5V and GND of the Arduino or to another stable power source.
  3. Write an Arduino sketch to read the state of the switch and display it on the Serial Monitor.

Example code

void setup() {
  pinMode(2, INPUT);
  Serial.begin(9600);
}

void loop() {
  int buttonState = digitalRead(2);
  Serial.println(buttonState);
}

Mini project

Create a simple switch-controlled light prototype. Connect an LED to a digital pin of the Arduino and use the provided sketch to turn the LED on or off when the switch is pressed.

Common mistakes

  • Connect the central terminal to GND instead of an input pin.
  • Fail to correctly connect the side terminals to 5V and GND.
  • Use a sketch that does not read the state of the switch.
  • Forget to install the necessary library for the graphical interface (not applicable in this case).

Recommended accessories

  • LED
  • Breadboard
  • Jumper wires
  • Arduino Uno or compatible

Frequently asked questions

Can the switch be used with other microcontrollers besides Arduino?
Yes, the switch is universal and can be used with any microcontroller that has input and output pins.

How many switches can I connect to a single digital pin on the Arduino?
Generally, it is recommended to use one switch per pin. Check the datasheet of your microcontroller for specific details.

Reviews

There are no reviews yet.

Be the first to review “20 Pieces SS12F23 / Horizontal Lever Switch / 5 Folded Pins 2 Position 4mm Contact Switch”

Your email address will not be published. Required fields are marked *