Is it possible to turn on two power sources by one rocker switch?

Hi everyone. I'm working on a project with Arduino UNO and a servo.

I used two separate power sources to power up the Arduino UNO and the servo respectively.

However, in order to provide a more user-friendly experience, I want to use a rocker switch to turn on/off the power instead of connecting/disconnecting the wires.

Moreover, I want to use 1 rocker switch to turn on the two power sources but I don't know if it is possible.

Or can anyone give me some advices? Thank you!

A two-pole switch

Nick_Pyner:
A two-pole switch

Do you mean a DPST switch?

yes

Nick_Pyner:
yes

May I know how to wire a DPST rocker switch with LED?
I can only find the wiring diagram for SPST. Thanks!

Treat the DPST switch as a pair of SPST switches.

...R

Thanks Robin and Larry. I bought one today and it worked :slight_smile: