3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Use a Momentary or Tactile Switch as a Pushbutton Switch.

Use a Momentary or Tactile Switch as a Pushbutton Switch.
Just a Moment
Tactile switches (a specific type of momentary switch) are everywhere and they are especially popular on DIY  electronics and microcontroller boards because they are well suited to act as a boot option or reset switch.  Particularly, momentary switches are switches that don't save their state when you depress the switch.  That is, when you push the switch (and while you have the switch depressed) the circuit is ON, but once you let off the switch it reverts back to OFF.


In this micro-instructable, I will show you how to convert those ubiquitous tactile and general momentary switches into pushbutton switches that toggle and save their state.  It's very easy and extremely straight forward so you can implement it immediately in your designs if you're interested in doing so.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Get Yer Switches

Get Yer Switches
The most obvious part of the necessary components is a momentary switch.  Go grab one, or two, or a handful if you're OCD and can't decide.  There are lots of different kinds of momentary switches from panel switches, to PCB tactile switches, to toggle momentary switches.  I have collected several different kinds in the picture below. 

In this instructable, I'm going to use tactile switches.  There's just something wholly satisfying about the force required to activate the switch and the crisp *click* you get is quite rewarding.  Feel free to use whatever switches you have around.  If you haven't scoped the video, check it out now.  I have setup two tactile switches. One in a normal configuration with an LED and requisite resistor on the high side, and then driving to ground on the other.  It does what you would expect when you press the button: the nice little blue LED comes on and stays on for as long as you hold the switch down, then immediately goes off when the switch is depressed.

The second switch is attached to a MC14027 J-K flip-flop IC, as well as having two LED's attached to the flip-flops.  Turn the page and learn about flip-flops!

« Previous StepDownload PDFView All StepsNext Step »
13 comments
Feb 27, 2012. 10:06 PMpletchman says:
Question. I've found some really nice momentary switches but wanted to know if they can be used for my needs. Basically I am looking for an On-On-Off switch. I have a drawer with low level LED lighting and full LED lighting. I want to be able to have a single button that if pressed once turns on the red LEDS -- press it again it turns on the white LEDs (thereby also turning off red LEDs) -- press it again and both sets of LEDs are turned off. How do I accomplish this the most easily? I've found basic little ON-ON-OFF switches but like some of the nicer illuminated momentary switches. Thanks in advance for your expertise
Apr 5, 2011. 8:57 PMdailodai78 says:
HI, I've always wanted to make a pushbutton switch from a tactile switch but I don't know anything about the IC circuits. I'm a bit clueless when it comes that. If possible, can you upload a better picture of the wiring diagram and explain what you used in creating the pushbutton circuit (besides the tactile switches and LED lights)?
Mar 10, 2011. 7:04 AMEZELab says:
Thanks for this circuit, could you explain how to connect a 5V relay ?
Mar 13, 2011. 3:52 AMEZELab says:
The out put is very low, cant i connect a transistor or something to the out put that pass the ( - ) to the relay, and the other relay pin to ( + ). like the circuit i attached, this one i found on the internet, buy never worked for me !
Yours worked perfect ! but just missing the relay connection :)

I Think we need a good transistor that just passes the negative to the relay !
Sep 2, 2010. 8:04 PMverdastel says:
This is a very useful instructable, thanks a lot for sharing!
Aug 31, 2010. 2:25 PMxVirus says:
can I put a relay instead of a led
Aug 31, 2010. 5:57 AMjeff-o says:
Fantastic info! In a situation where you aren't using a microcontroller, this is just the thing for implementing a non-momentary switch.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
63
Followers
22
Author:nevdull(The Bold Scientist)
Gian is the VP Research & Development at Open Design Strategies and holds a BA in Molecular/Cellular Biology and an MS in Computer Science. He has a collection of 8-bit microcontrollers and a room fu...
more »