Description
Yellow 11MM LAY37 to 11 m (PBC) Y090LAY7-11 m to 11 m mushroomhead push button switch
We have datasheets available for all components, should it not be present in the product download sheet, send us a message via the contact us form and we will publish it as soon as possible on our website.
Tutorial: How to use Y090LAY7-11
The mushroomhead push button switch Y090LAY7-11 is ideal for projects requiring a physical switch. Useful for beginners and intermediate makers.
What you need
- Mushroomhead push button switch Y090LAY7-11
- Arduino
- Power supply cable
- 10kΩ resistor
- Breadboard
Steps
- 1. Mount the push button on the breadboard.
- 2. Connect the positive terminal of the push button to the digital input pin of the Arduino.
- 3. Connect the negative terminal of the push button to GND.
- 4. Connect a 10kΩ resistor between the digital input pin and VCC.
- 5. Download the following code to the Arduino.
- 6. Connect the Arduino to the power supply.
- 7. Test the button.
- 8. Verify the button reading on the serial monitor.
Example code
```void setup() { pinMode(2, INPUT); Serial.begin(9600);}void loop() { int val = digitalRead(2); Serial.println(val); delay(100);}```
Mini project
Create a simple counter using the button. Connect the button to a digital pin and an LED to another. Each time you press the button, the LED should turn on and off.
Common mistakes
- Do not check if the button is properly connected.
- Omit the pull-up resistor.
- Do not use the `digitalRead` function.
- Forget to connect the power supply.
Recommended accessories
- LED
- LED resistor
- Breadboard
- Breadboard wires
Frequently asked questions
The button doesn’t work, what should I do?
Check connectivity and polarity. Make sure the pull-up resistor is correctly connected.
Can I use another type of button?
Yes, but make sure it has a mushroom push.
Does the button consume energy?
No, the button does not consume energy when not pressed.
Can I use another Arduino?
Yes, this button is compatible with any Arduino.







Reviews
There are no reviews yet.