How to Wire Pushbuttons and Switches!

LeMaster Tech
183 followers
34 Video Views·Apr 20, 2025
In this video we discuss how to use pushbuttons and switches for controls, automation and electronics!
Thank you to APIELE for sponsoring the hardware used in this tutorial:
https://www.apiele.com/
Momentary Pushbutton: https://amzn.to/4fzChSj
Latching Pushbutton: https://amzn.to/3LYFtsZ
Toggle Switch: https://amzn.to/3WCHMXM
Selector Switch: https://amzn.to/3SGCxoM
Keyed Switch: https://amzn.to/3SIvvjv
Thank you so much for watching and let me know in the comments with any questions or what you'd like to see next!
Don't forget to leave a like on the video and subscribe to the channel.
Consider checking out my Patreon if you love the channel: https://www.patreon.com/LeMasterTech
welcome back to the MasterTech and in
today's video I'm going to show you how
to use push buttons and switches for
industrial controls and
[Music]
automation now I will probably skew the
topics in this video towards
applications that might involve controls
and automation but this also is
applicable for anyone who wants to use
push buttons or switches for hobby
applications and Far and Away the most
common example of a digital onoff input
that is used in controls and Automation
and hobby circuitry in electronics are
the push button and the switch with a
push button it's either pushed or it's
not pushed with a switch it's either in
position one or position two so today
we'll be looking at the most common
wiring and talking about some of the
uses and applications of push buttons
and switches for controls autom
and electronics and a huge thank you to
APL Who provided the hardware we use in
this video more about them later in the
video now let's start with the most
common type of push button you will see
anywhere and everywhere a momentary push
button this is a type of device that is
only going to read a one or high or
energized when it is actively being
pushed in at an absolute minimum these
buttons may only have two wires because
that's all you need to get the effects
of a push button it's basically the
power feed in and then it's broken by a
strip of metal that is not made until
you push the button in when you push the
button in power flows into the second
wire and goes Downstream when you have a
slightly more advanced button that has
things like a built-in LED or a normally
opened and normally closed wire you can
do a lot more functionality with it to
understand the concept of normally open
and normally closed it's useful to start
from the concept of common on this
momentary push button in particular
there are five wires total now two of
them are just the power circuit for the
LED so to discuss the controls concept
going on here we actually just want to
focus on the other three wires first and
those three wires are common normally
open and normally closed in our case
we'll put our positive power from the
9volt battery on the common wire which
is green for these buttons when I'm not
pushing in my momentary push button one
of the wires will read 9 volts and the
other wire will read 0 volts the wire
that's going to read 9 volts when it's
not being acted upon is the normally
closed wire which in this case is yellow
the wire that is going to only read 9
volts when we're pushing the button in
is the normally open wire or blue in
this case so when you have have a device
that offers you both normally open and
normally closed feedback what you're
saying is there's a wire there that will
be connected to Common until you push
the button in and then there's another
wire there that won't be connected to
Common until you push the button in so
for my application I have the ground of
the LED pin connected to the negative
terminal of the battery and then I have
the positive terminal of the battery
connected currently to my normally open
contact meaning the light will not turn
on until I close this button then I have
the positive power from the battery
coming into the Comm terminal and
currently I don't need any purpose for
my normally closed contact so I'm just
going to cap that off it's not a good
idea to leave live copper wires around
even when you're only working with low
volt DEC now what we'll see when I push
the button in is I'm actually powering
the normally open wire which now becomes
closed and because it's connect Ed to
the power of the LED it turns the LED on
to understand the difference between the
normally open wire and the normally
closed wire we can just flip which one
our power LED is connected to so the red
wire which determines whether or not we
have the LED powered on is now going to
get connected to my yellow wire which
correlates to normally closed on the
button because it's normally closed we
can see that the LED turns on right away
and it doesn't turn off until I push the
button in in my handy dandy box where I
have a whole bunch of these hooked up
that's how I have both of my momentary
push buttons hooked up now that's not
just a deep dive into how momentary push
buttons work we also covered the
fundamentals of how normally open and
normally closed terminals work for that
reason we'll really be able to fly as we
talk through the next one which is a
latched push button so the biggest
difference between a latching push
button and a momentary push button is
right there in the name with a momentary
push button you have to be actively
holding and affecting the button for it
to change from a one to a zero with a
latching push button there's an internal
and rather interesting ratcheting
mechanism which will hold it in place
until you press it again to release it
so effectively you're getting the
switching between a one and a zero
effect that you get with a momentary
push button when you press it in and
release it but it holds its state so you
can put it in one and leave it and come
back later and put it to a zero so using
the exact same wiring configuration that
we just had with the momentary push
button where the LED was connected to
the normally closed contact and when we
push the button in the LED goes off you
can now see that I get the same
functionality that I was getting before
by having to hold it but now I can
release it and leave it in place so now
with the exact same normally open
normally closed configuration now I have
the LED connected to the normally open
Terminal so once I push the button in
the light comes on when I push it again
the light turns off now in my opinion
because we're looking at a latching push
button that's a good chance for us to
take a look at pivoting into the
latching switch now I have a couple
different types of latching switches
here on my handy dandy box one that has
no VIs ual indication of whether or not
it's passing power onward but has two
positions and one that does have an LED
to show you whether or not it's feeding
power out of the load line the
limitation of these switches as we'll
see in a second is there's only one way
for you to feed power out so you don't
have the normally open normally closed
connections that you do actually have
with a two position switch like this so
it's important before selecting your
hardware for any application to Think
Through the use case if you have a
switch that is as simple as it needs to
pass power on so you just want to be
able to flick a switch and feed power to
a bunch of devices flick it back the
other way and kill power to those
devices something that only has one
signal wire coming off of it is probably
perfectly fine in the case of my switch
here I can turn it on and I get the
visual indication that the LED is on and
in this case I'm actually triggering
another another LED on this push button
just as an example of how to use the
switch so when I sit here flicking my
switch I'm turning not just the LED on
this but also the LED on this light on
however a limitation is when I turn it
off the light has to turn off there's no
way for me to use this light to turn on
this light in an inverse manner where if
I wanted the green light to be on while
the switch was in a de energy ized way
because the switch only has one load
wire and the other two are the power
feed there's no way for me to
effectively do that so if I had an
application where I needed a switch to
do one thing in one position and a
different thing in another position this
would not be the right switch to select
but it does give me visual indication of
whether or not it's feeding power down
the line so we move on to the selector
switch that has four terminals on the
back and when it has four terminals what
it actually has is two sets of
electrically independent contacts so
when I am in position one on this switch
two terminals are being connected in the
back and the other two terminals are not
connected to each
other then when I flip the switch into
its other position the opposite two
terminals get connected and the original
two terminals that were connected are
now broken you can see that here by my
blue and green LEDs that change
hopefully you can see that that change
state every time I actuate the switch so
here again I have not so much normally
open normally closed configuration but
position one position two these are very
often used not just for onof like I have
here where I use my switch to kill power
to the entire enclosure I could use it
where when it's in position one it
powers only this half of the box and in
position two it powers only this half of
the box that would be a normal
application for it they do make a three
position selector switch as well that
has the same for terminals on the back
but it also has an off position where no
terminals are being connected the most
common use for that would be like on a
pump you might see a hand off auto in
hand the left two terminals might be
made in off no terminals might be
connected and then in Auto it might be
the right two terminals there are
definitely more selector switch options
out there some of which have eight
terminals on the back some have six
terminals on the back but Far and Away a
twoos selector switch with two sets of
isolated terminals is the most common
type that you'll run into and the most
common type you would need so just to
show one cool variation on the twoos
selector switch I also wanted to talk
about this cool key selector switch it's
effectively exactly the same device as
this twoos selector switch but rather
than being able to be turned by a human
hand you have to turn it using the key
that matches it and this way you're able
to control access to who can power up a
piece of equipment or Machinery using a
set of keys in this case too the key is
actually locked in the device while it's
on so you can't turn something on and
walk away with the keys anyone has the
ability to turn it back off and then you
can take the keys away this is a safety
measure to make sure that anybody is
able to deactivate a piece of equipment
if they feel it's unsafe it's not
incredibly common to see these but it is
an interesting and useful to know about
variation on the selector switch the
last and most important maybe piece of
equipment in industrial controls and
automation that I want to talk about
that is really just another form of a
latching push button is the EOP and the
purpose of an EOP is really to kill
power to an application some eops do
have terminal and feedback to a PLC or a
controller or a stack light to let you
know that they have been pressed but
typically the main reason you hit an EOP
is something is wrong and you want to
kill power to a device or at a minimum
put it in a safe State wiring and
functionality wise you everything we
discussed about momentary push buttons
still applies here but typically there's
an extra motion like a twisting motion
or a hard pull to release an EOP when it
gets pressed it's supposed to be easy to
press in to put things back into a safe
State and require effort and
intentionality to release and put back
into an operational state but it's a
super useful piece of equipment to know
about especially if you're in the world
of automation or controls now I'm going
to fidget with this incredibly cool uh
box that I made to that incorporates all
of the Technologies we talked about
today while I tell you about the awesome
sponsor of today's video APL they make
some of the coolest and most affordable
push buttons and switches for hobby
applications or industrial applications
they have highquality robust products
from push buttons and switches to eops
and key and latching switches featuring
tons of cool colors and variations and
different sizes and customization I
personally am super impressed with the
degree of quality they have for such an
affordable price making it a great
option for small business owners or
hobbyists just looking for cool switches
and buttons for their application I have
had a lot of fun using their products
I've been very impressed by the quality
and I know that these push buttons and
switches will be making appearances in
my builds for a long time to come thank
you APL for sponsoring the video and be
sure to check out their catalog of
awesome products Linked In the
description below I hope you found this
video useful I know at first glance how
to use push buttons and switches can
seem really intuitive or like a basic
concept but it's actually one of the
most important fundamental things to get
down if you want to be doing industrial
controls in automation or hobby
electronics and building with robotics
at home the topics and Concepts covered
here will serve you great not just as
you build physical things but it also
helps you think through logic and how
programming using normally open and
normally closed conditions work as well
so thank you so much for watching the
video thank you to APL for sponsoring
the video thank you so much to my
patreon supporters for all owing me to
do more and more work with Hardware
because obviously there is a cost to
doing these bigger projects thank you to
everyone who supports the channel by
watching leaving likes subscribing to
the channel and leaving nice comments as
always good luck with your projects
thank you for watching and we'll see you
next time thanks bye
