Description
What is a 2-piece 2.54 mm lever switch? This simple electronic device is used to control the activation and deactivation of electronic circuits. Features Dimensions: 2.54 mm Type: Lever with quadrant mounting Quantity: 2 pieces Number of ways: 2 SKU: ARD0011381 Price: €1.72 What it’s for Ideal for Arduino projects and electronic prototypes, it is easy to install and use. It can be used to create a home alarm system prototype that activates when the switch is pressed or to control an electronic circuit’s power supply. Tutorial How to use the 2-piece lever switch with quadrant mounting The 2-piece lever switch with quadrant mounting is a simple device used to control the activation and deactivation of electronic circuits. Ideal for Arduino projects and electronic prototypes, it is easy to install and use. What you need Arduino jumper wire 3D printer (for advanced projects) programming software Steps Install the switch on your circuit using the quadrant holes. Connect the switch contacts to the Arduino pins via jumper wires. Verify correct connection with a multimeter. Write an Arduino sketch to read the switch state. Upload the sketch to your Arduino. Test the switch operation by opening and closing the lever. Modify the sketch to activate specific functions when the switch is pressed. Explore further projects by integrating the switch into more complex circuits. Example code const int interruptPin = 2; // define the switch pin int buttonState = 0; // variable for the switch state void setup() { pinMode(interruptPin, INPUT_PULLUP); // set the pin as input with pull-up resistor Serial.begin(9600); // start serial communication } void loop() { buttonState = digitalRead(interruptPin); // read the switch state Serial.println(buttonState); // send the switch state to serial } Mini-project Create a home alarm system prototype that activates when the switch is pressed. Common mistakes Not verifying correct jumper wire connection. Using an inappropriate pin for the switch. Not correctly configuring the pin as input with pull-up resistor. Not adequately testing the circuit before writing the sketch. Recommended accessories Arduino Uno Jumper wires Various 3D printer Kit of
![[Interruttore a levetta a quadrante da 2 pezzi con spessore di 2,54 mm e 2 vie. Prodotto Arduiner per progetti elettronici.]](https://www.arduiner.com/wp-content/uploads/2026/05/ARD0011381__16550-Interruttore-a-levetta-a-quadrante-da-2-pezzi-da-254-mm-a-2-vie-1.jpg)




Reviews
There are no reviews yet.