How to hook it up to my Arduino Uno?

I got a strange 6 pin pushbutton, and am confused as to how to hook this weirdo on the breadboard to make led's go on and off. I'm using an arduino uno and am a newbie. I'm attaching a picture of it too. Please help me out :slight_smile:

Hard to tell from that photo, it is blurred and from a bad angle.

Is it a push button or a rotary hex switch?

Get your resistance meter and probe the contacts to see what make and break with the switch. Does it contain an LED? You might be able to see a faint glow when you probe it. Otherwise thke a 1K resistor and connect one end to 5V, connect another wire to ground and probe the switch contacts until you find the ones that light up the LED.

Looks like a DPDT pushbutton switch to me.
Two independent sets of contacts, that operate at the same time. Usually the middle pin of each set of three will be the 'common', then when the button is not pressed, the middle pin is switched to one end, (normally closed). Once the button is pressed, the middle pin connects to the other end, (normally open).
You didn't mention if the pushbutton switch is 'momentary' or 'latching', but either way the usual layout is as I describe.
If you Google "DPDT pushbutton switch", you'll find more info and probably a diagram.

^ ditto on the above.

If it had an led in it (which this one looks NOT to have).. you would have 8-total 'legs'.. but the ones for the led would be on the alternate side that the 'circuit' legs are.



like that ^ (if it keeps formatting)

Grumpy_Mike:
Hard to tell from that photo, it is blurred and from a bad angle.

Is it a push button or a rotary hex switch?

Get your resistance meter and probe the contacts to see what make and break with the switch. Does it contain an LED? You might be able to see a faint glow when you probe it. Otherwise thke a 1K resistor and connect one end to 5V, connect another wire to ground and probe the switch contacts until you find the ones that light up the LED.

It's a push button