

It might be easier to use a locking button, or a rocker switch, or maybe even a misile launch switch.

That's still do-able, but you're going to need a lot of things you probably don't already have.
#RED BUTTON GAME THIS BUT THAT CODE#
Because this is momentary switch, that would require a microcontroller,(arduino) and some code to to turn the relay on or off when you pushed the button. If you want to have a setup where you don't have to hold it down to turn it off. This setup would leave the power strip on until you pushed the button, which would turn the power strip off for as long as you held it down(like a kill switch) that will only work though for as long as the battery is charged, once the battery dies it would turn off your power strip so you would want something like a small wall wart (with a resistor to keep the current down) instead of a battery. There are four contacts on a relay, when you power two of them, it acts like a heavy duty switch for the other two contacts. Then wire the relay into the powerstrip cord. As far as what happens when you press the button, you have some options, if you wanted the powerstrip to turn off when you pushed and held the button, you would connect one side of the battery to one side of your relay, the other side of the relay to the NO(Normally Open) contact of the switch, and finally the common contact of the switch goes back to battery. That's a little vague, but if what you want is to set it up to turn the power strip on when you push the button, you're gonna need a relay or transistor(relay would be easier) because this switch will not be able to handle the amount of current that a power strip will draw. Hope this helps if anyone is confused about hooking up the LED.Īlso, if you're not sure, the bulb will light with only 5V across (in fact it will light with about 1.5V), so you can start with much lower voltage to figure out which way the LED is oriented, then ramp up to 12V for brightness. Said another way, if you orient the 3 switch contacts so they are at the 3 o'clock position, the LED+ is at the 12, and the LED- is at the 6. If you hold the button upside down, so that you're looking at the microswitch assembly not the red dome, and then rotate it so that the 3 contacts for the microswitch are all pointing to your right, then the LED+ is the contact furthest from you, and the lug closest to you is LED. The 2 contacts for the LED come out of the black housing. 3 contacts (COM, NO, & NC) are for the microswitch - they all protrude from the white housing of the microswitch assembly. Maybe I missed where this was documented, but I didn't see any indication of which contact was the LED+ and which was the LED-, so I thought I'd let people know. But if you don't anticipate needing a lot of them, just enough for this button, then you could pick up a few piecewise at a hardware store, or solder some wire directly to the tabs instead (be careful not to melt the plastic). You can get an assortment with both, and of both the male and female variety), from SFE. The quick disconnect tabs seem to be of two sizes, 0.25" and 0.2". That leaves you with actually having to connect things. Once the resistor has been bypassed or replaced, you can just use it as any other LED in any of the Arduino examples dealing with LEDs. There's several ways you could do this, so I won't get into that here. My suggestion there would be to just modify that part to bypass the resistor, or even replace it with one more suitable for typical Arduino voltages. Pretty common in industrial control system, automotive applications, etc. That resistor is set up so that the LED can be used with 12V. You can just barely see it in the product image for the Big Dome Push Button Blue.

The black part the LED actually resides in has a resistor snuck into it. The two tabs on that part are the anode and cathode.

If you look at the product image the black part on the left just has 2 component leads bent around a piece of plastic, which gets inserted into the black part on the top. The two examples above mention turning an LED on/off, but you can't use this button's LED directly for this. That NO pin you can liken to a typical push button, so : Examples > Digital I/O > Button and : Examples > Digital I/O > Switch and others apply. this pin is connected to the common pin when the button is pressed). this pin is connected to the common pin when the button is not pressed) and the NO (normally open - i.e. One is the 'common' pin, and the others are the NC (normally closed - i.e. If you look closely at the markings on there, you'll see the function of each of the quick disconnect tabs. The switch part is the white microswitch depicted in this product image: They're basically just a SPDT (Single Pole, Double Throw) switch and an LED.
