Lab: Soldering

In this tutorial you’ll learn the basics of soldering for electronics.


If you’re going to do any electronics work, you’re going to have to do some soldering, or have someone help you do it. Many people fear it before they’ve done it, but it’s really pretty simple to do. This exercise will show you how to solder a DC Power connector to a set of wires for a breadboard.

In order to get the most out of this tutorial, you should have a basic understanding of electrical circuits, so you understand why you’re soldering, and you should know what a solderless breadboard is.

You might also find this video on soldering by Andy Sigler and this video on desoldering helpful.

Soldering is a process in which you use a metal alloy with a low melting point to fuse together two other pieces of metal. It’s used in electronics all the time, because it ensures a mechanically solid connection between two materials that’s also electrically conductive. To do this, you heat the alloy, called solder, until it melts, and let it run across the two metal pieces you’re attempting to join.

There are many different ways to solder, but the most common for hobbyists uses a handheld soldering iron and a reel of solder wire. That’s the process that’s demonstrated here.

Things You’ll Need

Photo of a solderable DC power jack. It is shown disassembled, with the metal insides separate from the plastic insulator sleeve
Figure 1. Solderable DV power Jack. You can find this particular model on
Photo of breakaway header pins. There are 20 pins in one row. The pins are all 0.5 inch (1.3cm) long, and separated by 0.1 inch (2.5mm) plastic spacers. The plastic is scored so that the pins can be broken off one at a time.
Figure 2. Breakaway header pins
Photo of helping hands tool. The tool has a metal base witha swivel joint at the top. The swivel joint holds a metal bar approximately 6 inches (15cm) long. Each end of the bar has another swivel joint with a metal clip mounted on it.
Figure 3. Helping hands tool
Photo of a soldering iron. The base of the iron is approximately 5 inches (13cm) on a side. The left side is reaised and has a power switch and a temperature knob on the front. The right side has a metal coil, and the iron itself is inserted in the coil. The iron is approximately 8 inches (20cm) long, metal with a plastic handle. The handle has a thick wire coming out of the back that attaches to the base below the temperature knob.
Figure 4. Soldering iron
Photo of a roll of solder wire. The wire is thin, approximately 0.05 inches (1mm) in diameter. It is quite soft, and breaks easily.
Figure 5. A roll of solder wire
Photo of two pieces of 22AWG hookup wire. The wire is approximately 0.05 inches (1mm) in diameter, and clad in a plastic insulation. These two wires have red and black insulation, respectively.
Figure 6. 22AWG hookup wire
Photo of a hot glue gun.
Figure 7. Hot glue gun
Wire strippers. The jaws of this wire stripper have multiple hole sizes so that it can strip wires of variable sizes.
Figure 8. Wire stripper tool

In the steps that follow, you’ll connect jumper wires to a power connector. When you’re prototyping a circuit, you need all of your parts to have connections that can fit firmly in a solderless breadboard. Many electronic components and connectors don’t have such connections, so you need to solder them on. The DC power jack shown in this exercise is one such connector. It comes with no wires, just connections onto which you’re expected to solder your own wires.  You’ll solder wires onto it, and then you’ll solder a pair of stiff header pins onto the ends of the wires.

Preparing the parts

Cut a red and a black wire about four inches (10cm) in length. Strip the ends back about 1/4 of an inch (1/2 cm). Bend a hook on one end of each wire. Unscrew the power jack. As shown in Figure 9, connect the red wire to the hole in the the center tab of the power, and the black to the hole in the outside tab. Use pliers to crimp the hooked wires to their connections on the jack. If the connections aren’t soldered, you’ll get an inconsistent connection at best, and a short circuit at worst.

Related video: Wiring a power supply using a DC power jack

Photo of a DC power jack with 22AWG wires hooked into its two solder tabs. The wires are not yet soldered.
Figure 9. A DC power jack ready to solder

Heating the Soldering Iron (and the connections)

Heat up your soldering iron. It doesn’t need to be cranked to its maximum heat. For most small jobs like this, 600-700 degrees Fahrenheit (315-370 C) will work just fine. You really only need the iron hot enough to heat the metal connections so that they’ll melt the solder.

The best solder joints are those where the two metal connections to be joined are heated up together, and the solder is then melted by the heat of the connections. That way, all three metals cool down together. As they cool, they contract. You want them to contract together, so there is no cracking of the joint between them.

Make sure the two pieces of metal are touching each other firmly. Use a helping hand or a clamp to hold them in place. When they’re solidly touching, and held firmly by your clamp or helping hands, touch the iron to the joint between the wire and the metal to heat the joint (see Figure 10). Then touch the solder to the joint (NOT to the iron) until it melts. This should make a clean solder with a small blob of solder.

You may find that it takes longer to heat the connection in order for the solder to melt. The larger a connector is, the more time it takes to heat. This is because the metal of the connector is conducting the heat away from the joint. If your connector is too big, you may need to use a mechanical joint, as opposed to a solder joint. The DC power jacks shown in this tutorial will solder just fine, however.

As the solder cools down, its surface will go from shiny to a more matte surface. When it cools down, test the joint by wiggling it to make sure it’s firm.

Repeat the process with the other wire and the other part of the connector.

Photo of a wire hooked into the metal tab of a power connector. Both are held by a pair of helping hands clips. A soldering iron is touched to the joint between the wire and the tab. A piece of solder is touched to the joint, but is not touching the iron directly.
Figure 10. Preparing the solder joint. The solder should be touched to the joint, not to the iron.

Twist the wires together and thread them through the sleeve of the jack.

The result should look like this in Figure 11:

Photo of a soldered power connector. The wires are soldered to the two tabs of the connector, then twisted together before they are threaded into the plastic insulating sleeve of the connector.
Figure 11. The inside of a soldered power connector, with red and black wires twisted together.

Soldering the Header Pins

The two wires are now properly separated inside the connector, but the other ends can move freely. Even though these two ends can fit firmly in a breadboard, it can be dangerous to leave them loose. They might touch each other while you have the connector plugged in, causing a short circuit.

Header pins(Figure 12) are a great way to maintain the spacing between wires that you need to fit into a breadboard. If you solder two of them to the ends of your wires, with the metal spacer still on them, they’ll keep your wire leads safely apart.

Photo of breakaway header pins. There are 20 pins in one row. The pins are all 0.5 inch (1.3cm) long, and separated by 0.1 inch (2.5mm) plastic spacers. The plastic is scored so that the pins can be broken off one at a time.
Figure 12. Breakaway header pins

Trim the ends of the wires to the same length, and strip them back to about 1/8th of an inch. Break off two header pins and hold them in one clip of a helping hands device. Clip the wires in the other clip, and align them with the header pins like so in Figure 13:

Photo of two header pins held in a helping hands tool. The headers are touching two wires, one red, one black. The wires and the header pins are not soldered together.
Figure 13. Header pins ready to be soldered to the ends of your wires.

Solder the wires to the headers. Move quickly, as the plastic spacer between the headers can melt (that’s another reason not to heat your iron too hot). When you’re done soldering, you should have two separate blobs like this in Figure 14:

Photo of two header pins held in a helping hands tool. The headers are touching two wires, one red, one black. The wires and the header pins are soldered together.
Figure 14. Header pins successfully soldered to wires.

If you can’t see space between the two solder joints, de-solder them and do it again. You need to be sure there’s no connection between these wires that can cause a short circuit, and the best way to do that is to leave space.

Take a hot glue gun and surround the bare connections to insulate them and provide some strain relief. When you’re done, you should have a connection like this in Figure 15:

Photo of an assembled DC power connector. Red and black wires, twisted together, protrude from the connector. They terminate in a pair of header pins, The connection between the wires and the header pins, previously soldered, is hot glued for insulation.
Figure 15. DC power connector assembled, with the wire-to-header connections insulated with hot glue.

Make sure you can tell which pin is connected to the red wire and which is connected to the black.


Before you connect it to power, take a meter and check the connections for continuity. The center pin should be connected to the red wire, and the outer rim should be connected to black. When that’s good, you’re ready to use it.

What Else Can I Solder?

Any time you have loose mechanical connections, you should solder them if you can. For example, many common potentiometers have ring contacts(Figure 16). If you loop the wires around the rings as shown in Figure 17, you get inconsistent readings from your potentiometer. Solder the leads if they are loose.

Photo of a potentiometer with metal ring contacts.
Figure 16. A potentiometer with ring contacts, ready for soldering.
Photo of a potentiometer with ring contacts. Three wires are soldered to the three contacts, from left to right: black wire, blue wire, red wire.
Figure 17. Potentiometer with wires successfully soldered.

Many breadboard-friendly printed circuit boards come without headers soldered on. One of the most common mistakes beginners make with these boards is to push them into a breadboard using headers, but with no solder. This will also give inconsistent readings. Figure 18 shows an ADXL335 accelerometer module pins are properly soldered.

An ADXL335 accelerometer module. There are six pins along the bottom, labeled GND, Z, Y, X, 3V, and ST (left to right)
Figure 18. An ADXL335 accelerometer module. There are six pins along the bottom, labeled GND, Z, Y, X, 3V, and ST (left to right). These pins are properly soldered (You can find this accelerometer on

When in doubt, if you have loose connections, solder them!

For more on soldering, check out Adafruit’s soldering tutorial.