Description
What is the Gear Shift Toggle Switch LAY37-11 x2 Y090-11 x2? This electronic component includes two buttons with NO (Normally Open) and NC (Normally Closed) contacts. This type of switch is used for managing input functions in DIY or Arduino projects. Features Gear Shift Toggle Switch LAY37-11 x2 Y090-11 x2 1NO + 1NC contact What is it for Ideal for electronic switching projects, this button can be used to create an on/off switch for devices such as projectors or lights. It is compatible with Arduino and ESP. How to use Two-Position Gear Shift Button This button with NO and NC contacts is ideal for switching projects or to add input functionality to DIY devices. It is particularly suitable for beginners looking for a simple yet flexible component. What do you need Arduino Uno USB Type B cable Connecting to the circuit Steps Connect the button pins to GND, 5V, and two digital pins on the Arduino (check the datasheet for the exact number of contacts). Open Arduino IDE and upload a sketch that reads the state of the pins connected to the button. Write a function that changes the system switch when the button is pressed. Test the project by closing and opening the circuit with the button. Example code void setup() { pinMode(2, INPUT); pinMode(3, INPUT); } void loop() { int buttonState1 = digitalRead(2); int buttonState2 = digitalRead(3); if (buttonState1 == LOW) { // Change system state when the button is pressed. } } Mini-project Create an on/off switch for a projector or light using this button and Arduino. Common mistakes Not verifying the correct polarity of the pins during connection. Ignoring the necessary pull-up/pull-down resistor. Using an inadequate power supply for the button. Forgetting to update the sketch when changing connectors. Recommended accessories Arduino Uno Basic Kit USB Type B cable Variable resistors Frequently Asked Questions How can I verify the polarity of the contacts? Check the button’s datasheet to identify the GND, VCC, and input/output pins. Can I use this button with other microcontrollers besides Arduino? Yes, but ensure that the power supply voltage is compatible with your device.







Reviews
There are no reviews yet.