Toggle Switch?

Hello,
I bought ten switches on Amazon. Now I don't know how to connect them to the Arduino Pro Micro. Can anyone help me?

Thanks in advance.

This is the switch:
Toggle Switch

You also need to decide whether the switches are active low or active high.

Connect the centre pin to ground, one side to an Arduino input (doesn't matter which). Use pinMode of INPUT_PULLUP on that pin. S3 or S2 in that diagram.

Paul__B:
Connect the centre pin to ground, one side to an Arduino input (doesn't matter which). Use pinMode of INPUT_PULLUP on that pin. S3 or S2 in that diagram.

Well, not S2, if using the internal pull-up [i.e. when using INPUT_PULLUP with the pinMode() function, only use the S3 arrangement].

Hi,
Do you have a DMM?
This should be enough to show you the connections.
Usually the switch has markings, showing the centre terminal as the common or switching point.

Tom... :slight_smile: