Sale!

Power Signal / 16mm 12-24V SelfLock / Red / Green / Blue / Yellow Momentary Switch

Original price was: 7,42 €.Current price is: 3,58 €. Excluding VAT

Power Signal / 16mm 12-24V SelfLock / Red / Green / Blue / Yellow Momentary Switch

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

Description

What is it The Power Signal / 16mm 12-24V SelfLock is a momentary switch with a 16mm diameter, designed to indicate the power state in an electronic circuit. Available in red, green, blue, and yellow. Features Diameter: 16mm Operating Voltage: 12-24V Type: Momentary Switch SelfLock Available Colors: Red, Green, Blue, Yellow What is it used for This switch is ideal for controlling the power flow in electronic circuits, such as turning on or off an LED or another component. It can be used in Arduino projects and other electronics projects. Tutorial: How to use 16mm 12-24V SelfLock Momentary Switch This momentary switch is ideal for controlling the power flow in electronic circuits. Useful for beginners and intermediate makers. What does it require Arduino or microcontroller Pull-up resistor (5kΩ) 12-24V power cable Steps 1. Mount the switch on the circuit. 2. Connect the switch pins to the microcontroller. 3. Attach a pull-up resistor (5kΩ) between the input pin and VCC. 4. Connect the switch GND pin to the microcontroller GND. 5. Write the code to read the switch state. 6. Check the datasheet for detailed specifications. 7. Test the switch to ensure it works correctly. 8. Power on the circuit and check the switch state. Example Code “`int ledPin = 13; int buttonPin = 2; int buttonState = 0; void setup() { pinMode(buttonPin, INPUT); pinMode(ledPin, OUTPUT); } void loop() { buttonState = digitalRead(buttonPin); if (buttonState == HIGH) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } } “` Mini-project Create a simple emergency circuit with an LED that turns on when the switch is pressed. Common errors Incorrectly connecting the switch pins. Forgetting to add the pull-up resistor. Swapping VCC and GND. Writing bad Arduino code. Recommended accessories Arduino Uno LED 220Ω resistor 12-24V power cable

Reviews

There are no reviews yet.

Be the first to review “Power Signal / 16mm 12-24V SelfLock / Red / Green / Blue / Yellow Momentary Switch”

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