I am looking at this datasheet.
It is a simple SPDT switch, but it has 5 pins in the footprint instead of 3. Since I am using it as a power on/off switch, I wired it up like below.
I want to make sure it is correct use of this.
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
The 'extra' two pins are connected to the metal housing and switch handle:
They are for mechanical mounting. Typically you might leave them to float, connect them to earth or connect them to circuit ground. Up to you (though they provide a direct connection to the user's fingers, so safety is a consideration in some applications).
Please post a photo of the switch or a link to a datasheet.
The other two pins might be mounting pins to relieve mechanical stress on the signal pins and assure correct position alignment. If what you have is a right-angle, pcb-mount toggle switch, then that is what they are.
The two pins are connected through the body of the switch, but should not be used as an electrical connection. If the switch protrudes through a panel that is important for shielding, connect the mounting pins to the same GND potential as the panel so the switch's mounting frame "plugs up" the hole it is poking through.