Electronic – Safe to add a switch into power cord

power supplysafety

First off: I realize that my problem could be solved by simply using a few power strips with built in on/off switches, but I do not want to do that. I look at this project as being a learning opportunity.

For aesthetic reasons I have hidden most of my electronics (PC peripherals etc…) under my desk. However in doing this I have sacrificed ease of access. Since I do not want to have to continually plug/unplug my devices but also do not want to leave them constantly running, I would like to add a switch box (to the side of my desk) where the power cords for a variety of these devices each are connected to a switch.

There are two types of power supplies I would like to add a switch too:
1) 120V AC
2) 5-20V DC (what comes off of many of the AD/DC converters that come with my devices).

Note for each of these devices I am not dealing with particularly high currents (again think normal household electronics, speakers, monitors, laptop…)

If, for each of these devices I have just two wires (+) and (-/Neutral) is it safe to simply cut one of them and add a switch?

If not what would be the proper way of handling this? Do I need a different approach for High Voltage AC and Moderate Voltage DC power cords?

Thank you very much for your help!

Best Answer

I would not perform surgury on line cords to install switches. I'd look at solving the more general problem of switched power at your desk. This probably won't be up to code, so don't let anyone official see this, and hiding it a bit is probably a good idea. You can mount a regular wall switch somewhere on the side of your desk in a metal electrical box. Get a line cord with wire ends or cut the female end off a extension cord and have that go into your switch. Coming out of that you have switched power which can go to a bunch of regular wall outlets mounted in more metal electrical boxes under or at the back of your desk. Now you can plug in whatever you want switched to these outlets without having to modify the equipment at all. When you upgrade equipment, just plug in the new stuff without having to modify it.

Having general switchable outlets attached to you desk could be useful for various things. Here in the office I have several switched outlet strips stuck to backsides and undersides of various desks. They come in quite handy. There are a lot of things you need to plug in when you work with electronics and computers.


As Photon pointed out, I should have mentioned that all these electric boxes should be grounded. That's why I said to make them metal. I meant to say to ground them but somehow forgot.

There will be three wires that come from the line cord that goes into the first box with the switch: Hot, neutral, and ground. Here in the US these are usually color coded black, white, and green, respectively, but don't rely on that. The neutrals of everything coming into and going out of a box should simply be connected. The ground should also be connected, but also to the box. There is usually a separate screw inside the box just for clamping a ground wire to it. The hot line is what gets switched in the first box. What comes out of that box therefore is the same neutral and ground that went in, but the hot is either connected or floating depending on whether the switch is on or off.

If you are paranoid or want to go further, you can use a DPST switch to switch both hot and neutral. Never switch ground. That must always be reliably connected straight thru and to every metal box.

If you're really paranoid, you can install a ground fault interruptor in the first box immediately to the incoming power. That shuts off the power if it sees a imballance between the hot and neutral currents. When all is working right, all the current that flows out on the hot line should come back on the neutral line. If something goes wrong, like your body is conduting between hot and a metal radiator pipe for example, then the hot and neutral currents won't ballance anymore and it shuts off power before you get too fried, hopefully, if all works right.