Splicing a power cord to effectively get a different connector is possible. This doesn't change the voltage or available supply current, it just changes the physical connector. Starting with a working wall transformer power supply that has the wrong type of connector, the goal is to remove the old connector and splice on a different connector.
This assumes that you have some basic electronics tools and experience:
soldering iron for electronics
Digital voltmeter (DVM)
- optional: butane micro torch or butane lighter
And some electronics supplies:
heat shrink tubing
Step 1. Plug in the power, and use the DVM to check that the power supply is working. There's no point in doing all this wiring only to find the power supply is dead. Wall transformers normally are marked with the output power and voltage rating. With no load, the measured voltage may be a slightly higher than the nominal rating. For safety I assume the voltage is less than 50V DC and less than 10V AC. If you see higher voltage than this, or if you feel a tingling or a shock, STOP.
Step 2. Unplug the transformer, then use the wire cutters to cut the cable. If you think you're likely to reuse the connector, you might make the cut about halfway along the length -- but if you're going to discard the original connector, then make the cut as far away as you can to save the maximum power cord length.
Step 3. With the power cord cut open, take a look at how the cable is constructed. Separate about an inch or two of the the two wire ends, then strip about 1/4 inch of the insulation off the end. Most likely each of the wires is made of several strands of copper, twisted together. Be sure to keep each conductor's strands twisted the same way.
Step 4. Plug in the power again, and measure the exposed wires with the DVM in volts mode. This is how you will determine which wire is the positive (+) and which is the negative (-). If these connections are swapped, the device may be permanently damaged. Make sure you can tell which wire is which -- hopefully they have different colored insulation. Red=(+), Black=(-) is commonly used, but you can't assume. If you can't distinguish the wires without the DVM, use some tape to mark the wires so they don't get mixed up.
Step 5. Unplug the transformer, and prepare the new connector. If the new connector is already attached to another power cable, make sure the wires are cut and stripped.
Step 6. Check the load requirement. There should be a label describing whether the power connector is center-positive or center-negative. Unfortunately barrel connectors are not really standardized, you need to check.
Step 7. Use the DVM in continuity mode (or ohms or diode check). One lead on the new connector's center contact, and use the other lead to find which of the wires connects to the center. Again, mark it with tape if you can't distinguish the wires. Just to be sure, check the other wire as well, just in case there's a bad connection.
Step 8. Match up the wires on the power supply side and the new connector side. You will need to make sure the new connector's center contact connects to the power supply's positive or negative supply, depending on the requirement established in step 6. Cut a length of the heat-shrink tubing, about 1/2 inch, and slide it over each end of the power supply wire. Then solder the new connector's wire to the power supply's wire (lap joint splice). Then do the same thing with the other pair of wires.
Step 9. Check your work: plug in the power again (being careful to keep the exposed splices apart), use the DVM in volts mode to verify the power supply still works and the power delivered to the new connector is the right polarity. If it's backwards, you can unplug the transformer, go back and re-do step 8 with the wires switched around right.
Step 10. Unplug the transformer, and slide the heat-shrink tubing over the wire splices. If you have a butane lighter or a small butane torch, that would be the ideal tool for heating and shrinking the tubing -- but it can also be done by contacting the barrel of the soldering iron to the tubing. Don't contact the tip of the iron, just the barrel. And don't stay very long in any one spot, the idea is to try to heat the surface of the tubing evenly until it conforms to the shape of the splice.
There's a lot of variations on this basic technique.
The new connector could be wired directly to the exposed wire ends of the power supply cable. Usually a connector includes some housing or mechanical strain relief, to prevent the end of the wire from breaking off when the cable pulls and flexes in normal use.
Heat-shrink tubing can shrink down to about half of its initial diameter. If the connector is fairly close to the diameter of the power cable, you can fit a large diameter piece of heat shrink tubing over the spliced area after you're done -- but it's better to plan ahead and get the cut length of heat shrink tubing in place before making the splices. Heat shrink tubing is good for insulating the splices and also provides good mechanical strain relief.
There are solderless connectors such as
crimp wire connectors, but these don't work quite as well for smaller diameter stranded wires such as you're likely to have in a typical wall transformer power supply. Crimp connectors also require a special crimping tool; pliers can sometimes work but not always reliably.