Introduction: Hook-up and Simple Operation of Ulincos Momentary Push Button Switch U19D1 1NO SPST Silver Stainless Steel Shell

About: I am a engineering graduate with a degree in Engineering Management. I tinker with bits and pieces of electronics to make interesting items and learn about coding and micro-controllers.

This is a simple guide to testing and connecting the Ulincos Momemtary Push Button Switch(LED).

It is a straight forward process for anyone that has connected push buttons to Arduino or any microcontroller project.

Materials:

Arduino UNO

Hook-up wires/26AWG wires if soldering

Momemtary Push Button(resistor included) - From Amazon

Breadboard

10k Ohm resistor

Here is a list of websites where you can find the LED push buttons:

Amazon - https://www.amazon.com/gp/product/B01LWIYPKI/ref=o... (resistor included seperately)

Sparkfun - https://www.sparkfun.com/products/11968 (Note on sparkfun - led rated for 5V so probably resistor built-in)

Adafruit - https://www.adafruit.com/products/560 (built-in resistor)

Information about the button:

The item is all metal button, except for the back which is plastic. The back has four connectors (positive and negative for the led and two connectors for a normally open circuit). The switch is rated up to 3A and 250VAC, while the led is rated for 1.8-2.8V. The buttons from Amazon come with a rubber O-ring, while the ones from Sparkfun and Adafruit may contain a separate O-ring.

Step 1: Hook-up of LED PUSH BUTTON

Note: This guide is using the push button from amazon, the ones from sparkfun or adafruit will not look like the button above.

This is the back of the push button. There is four connectors and a small embedded circle behind the resistor to indicate the led color and orientation of the button.

Note: The buttons from sparkfun and adafruit are different, they contain 5 connectors in the back. The back should contain etches for the led(+ and -), NO1(Normally open), NC1(Normally close), C1 (common).

The left and right are connectors for NO1(left) and NO2(right).
The top and bottom wires are the positive(top) and negative(bottom) for the led.

~I suggest connecting via breadboard first before soldering the led or wires for a permanent connection.

First orient the button so you have the embedded circle in the top-left.(A small diagram is included with the momentary push button)

Connect the resistor to led(positive) and NO1 to keep the LED lit when the button is not depressed. Connect the resistor to led(positive) and NO2 to light the LED only when the button is pressed.

Step 2: Connecting the Push Button to the Arduino

The diagram is a little bit messy but it shows how the button is connected to the arduino.

First connect NO1 to positive, then LED(-) to ground. Connect the 10k Ohm resistor to NO2, then connect it inline to ground.

Last connect a wire between the 10k Ohm and ground to Arduino pin number two.

The led should be fully connected to the arduino, if you power on the arduino the led should lit if always on or lit if the button is pressed.

Step 3: Checking the Button Switch Is Working

The code above is a simple Arduino file to test that the switch is working properly.

~Both Arduino code and a notepad text file is provided.