Is this the correct switch I need? How would I wire this?

Apologies in advance, I'm new to the wiring/electronics side of things.

Here's the switch I'm looking at:

I want to use this to manually open/close a door (I have a linear actuator that does the actual opening and closing). I want a 3 position switch such that I can wire it to a Open-Off-Close configuration. The 'Off' being the middle default position. Imagine a scenario where something was stuck in the door, or jammed in the mechanism, you'd need to be able to just make it stop whatever it was doing.

Is this he correct type of switch or do I need something different? thanks

That switch should be fine.

...R

Robin2:
That switch should be fine.

...R

OK so how does the wiring work with only 3 pins?
I've wired a push button (like this: https://www.arduino.cc/en/Tutorial/Button) before and it had pins connected to ground, 5V and the digital in, how would this be wired?

Wire the centre pin to GND and the other two pins to 2 I/O pins. Use pinMode(pinNumber, INPUT_PULLUP); and then the I/O pins will read HIGH unless the switch is closed to that pin.

...R

OK cool, I'll give that a shot!

shralp:
I want a 3 position switch such that I can wire it to a Open-Off-Close configuration. The 'Off' being the middle default position.

Do you mean by 'default' that the switch returns to the center (OFF) position when it's not actually being pushed? If so, you need something like this.

My 2 cents, I like the momentary switch for this application much better. Good call @dougp.

There is also the possibility of using a single button to trigger the door action like a garage door opener does. If it is closed, pushing the button opens. If it is opened, pushing the button closes.

shralp:
Apologies in advance, I'm new to the wiring/electronics side of things.

Here's the switch I'm looking at:

https://www.amazon.com/uxcell-Road-Position-Toggle-Switch/dp/B00E1JNAC6

I want to use this to manually open/close a door (I have a linear actuator that does the actual opening and closing). I want a 3 position switch such that I can wire it to a Open-Off-Close configuration. The 'Off' being the middle default position. Imagine a scenario where something was stuck in the door, or jammed in the mechanism, you'd need to be able to just make it stop whatever it was doing.

Is this he correct type of switch or do I need something different? thanks

Are you controlling the actuator with an H-bridge and Arduino, or is this just bare actuator + switch?