Description
What it is
The 22 mm 12-24 V push switch without auto-lock is an electronic component suitable for various projects, such as those based on Arduino. Available in four colors: red, green, blue, and yellow, this button is ideal for controlling electronic circuits.
Features
- Diameter: 22 mm
- Operating voltage: 12-24 V
- Without auto-lock
- Available in four colors: red, green, blue, yellow
What it is for
This push switch can be used to activate or deactivate electronic circuits. It is compatible with Arduino projects and can be integrated into home alarm systems or any other project requiring a simple manual intervention.
Tutorial: How to use 22 mm 12-24 V Push Switch
This 22 mm 12-24 V push switch is perfect for Arduino and general electronics projects. It serves to control electronic circuits with a simple touch.
What you need
- Arduino
- jumper wire
- multimeter
- 12-24 V power supply
Steps
- Connect the button to the 12-24 V power supply and to the GND of the Arduino.
- Use a jumper wire to connect the middle part of the button to the input pin of the Arduino.
- Write an Arduino sketch to read the state of the button.
- Check with the multimeter that the button functions correctly when pressed.
- Test the project with the Arduino and ensure that the button interrupts or completes the circuit as expected.
Example code
int bottone = 2;
void setup() {
pinMode(bottone, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
int stato = digitalRead(bottone);
Serial.println(stato);
}
Mini project
Create a home security system that activates an alarm when the button is pressed.
Common mistakes
- Connect the button to the potentiometer instead of the input pin.
- Do not check the state of the button with the multimeter.
- Use a voltage different from 12-24 V.
- Do not use INPUT_PULLUP in the Arduino code.
Recommended accessories
- Arduino Uno
- USB cable for Arduino
- Electronic siren
- 12-24 V relay
Frequently asked questions
Does the button work with 5V?
Check the datasheet, but it is generally designed for 12-24V.
Can I use this button with a Raspberry Pi?
Yes, but make sure to adapt the voltage and connection.






Reviews
There are no reviews yet.