Description
Red Push Button Switch LAS1 – AJ – 11 LA128 LA16 – J – 11d RED 24VOLT DC
We have datasheets available for all components, should it not be present in the product download sheet, send us a message from the contact us module and we will publish it as soon as possible on our website.
Tutorial: How to use Red Push Button LAS1
This button is ideal for projects that require manual input, such as intervention controls or function selection. Useful for beginners and intermediates in electronics.
What you need
- Red Push Button LAS1
- Arduino
- Pull-up resistor (10kΩ)
- 24V DC power cable
Steps
- 1. Connect the button to the Arduino using a 24V DC power cable.
- 2. Attach the button pins to the Arduino: GND to GND, VCC to 5V, and the middle pin to a digital pin (e.g., D2).
- 3. Connect the pull-up resistor (10kΩ) between the digital pin and VCC.
- 4. Load the following code onto your Arduino.
- 5. Wait for the button to function correctly.
- 6. Check the datasheet if additional connections are necessary.
- 7. Test the button with a simple program to check its state.
- 8. Experiment with different digital pins.
Example code
```
int pushButtonPin = 2;
int buttonState;
void setup() {
pinMode(pushButtonPin, INPUT);
}
void loop() {
buttonState = digitalRead(pushButtonPin);
if (buttonState == HIGH) {
// Pulsante premuto
}
}
```
Mini project
Create a simple alarm system with the button as an emergency switch. Connect an LED and a buzzer to the output pin of the button.
Common mistakes
- Connect the button directly to GND without a pull-up resistor.
- Use an analog pin instead of a digital pin.
- Omit checking the datasheet.
- Do not test the button before uploading the code.
Recommended accessories
- LED
- Buzzer
- 24V DC power cable
- Pull-down resistor (10kΩ)
Frequently asked questions
Does the button work with 5V?
Check the datasheet. Otherwise, use a 24V-5V transformer.
Can I use an analog pin?
No, use a digital pin.
Does the button work with Arduino Uno?
Yes, it works with Arduino Uno.







Reviews
There are no reviews yet.