How to Solder: Through-Hole Soldering
Soldering is one of the most fundamental skills needed to dabble in the world of electronics. The two go together like peas and carrots. And, although it is possible to learn about and build electronics without needing to pick up a soldering iron, you'll soon discover that a whole new world is opened with this one simple skill. We here at SparkFun believe that soldering should be a skill in everyone's arsenal. In a world of increasing technological surroundings, we believe it is important that people everywhere be able to not only understand the technologies they use everyday but also be able to build, alter, and fix them as well. Soldering is one of many skills that will empower you to do just that.
In this tutorial we will go over the basics of through-hole soldering -- also known as plated through-hole soldering (PTH), discuss the tools needed, go over techniques for proper soldering, and show you where you can go from there. We will also discuss rework as it pertains to through-hole soldering and give you some tips and tricks that will make fixing any piece of electronics a breeze. This guide will be for beginners and experts alike. Whether you've never touched an iron before or are looking for a little refresher, this tutorial has a little something for everyone.
As stated earlier, you can learn about and build electronics without touching a soldering iron. If you would like to learn more about electronics theory before learning to solder, we recommend starting with some of these tutorials:
What is a Circuit?
Voltage, Current, Resistance, and Ohm's Law
If you would like to know more about building circuits without needing to pick up a soldering iron, check out our solderless breadboard tutorial:
Lastly, we will be building upon some previous tutorials, so it is suggested that you read about and understand these subjects before moving forward in this tutorial:
If you're all caught up on the above reading, let's dive right in!
What is Solder?
Before learning how to solder, it's always wise to learn a little bit about solder, its history, and the terminology that will be used while discussing it.
Solder, as a word, can be used in two different ways. Solder, the noun, refers to the alloy (a substance composed of two or more metals) that typically comes as a long, thin wire in spools or tubes. Solder, the verb, means to join together two pieces of metal in what is called a solder joint. So, we solder with solder!
Leaded vs. Lead-free Solder -- A Brief History
One of the most important things to be aware of when it comes to solder is that, traditionally, solder was composed of mostly lead (Pb), tin (Sn), and a few other trace metals. This solder is known as leaded solder. As it has come to be known, lead is harmful to humans and can lead to lead poisoning when exposed to large amounts. Unfortunately, lead is also a very useful metal, and it was chosen as the go-to metal for soldering because of its low melting point and ability to create great solder joints.
With the adverse effects of leaded soldering known, some key individuals and countries decided it was best to not use leaded solder anymore. In 2006, the European Union adopted the Restriction of Hazardous Substances Directive (RoHS). This directive, stated simply, restricts the use of leaded solder (amongst other materials) in electronics and electrical equipment. With that, the use of lead-free solder became the norm in electronics manufacturing.
Lead-free solder is very similar to its leaded counterpart, except, as the name states, it contains no lead. Instead it is made up of mostly tin and other trace metals, such as silver and copper. This solder is usually marked with the RoHS symbol to let potential buyers know it conforms to the standard.
Choosing the Right Solder for the Job
When it comes to manufacturing electronics, it's best to use lead-free solder to ensure the safety of your products. However, when it comes to you and your electronics, the choice of solder is yours to make. Many people still prefer the use of leaded solder on account of its superb ability to act as a joining agent. Still, others prefer safety over functionality and opt for the lead-free. SparkFun sells both varieties to allow individuals to make that choice for themselves.
Lead-free solder is not without its downfalls. As mentioned, lead was chosen because it performs the best in a situation such as soldering. When you take away the lead, you also take away some of the properties of solder that make it ideal for what it was intended -- joining two pieces of metal. One such property is the melting point. Tin has a higher melting point than lead resulting in more heat needed to achieve flow. And, although tin gets the job done, it sometimes needs a little help. Many lead-free solder variants have what's called a flux core. For now, just know that flux is a chemical agent that aids in the flowing of lead-free solder. While it is possible to use lead-free solder without flux, it makes it much easier to achieve the same effects as with leaded solder. Also, because of the added cost in making lead-free solder, it can sometimes be more expensive than leaded solder.
Aside from choosing leaded or lead-free solder, there are a number of other factors to consider when picking out solder. First, there are tons of other solder compositions out there aside from lead and tin. Check out the Wikipedia solder page for an extensive list of the different types. Second, solder comes in a variety of gauges, or widths. When working with small components, it's often better to use a very thin piece of solder -- the larger then number, the smaller the gauge. For large components, thicker wire is recommended. Last, solder comes in other forms besides wire. When getting into surface-mount soldering, you'll see that solder paste is the form of choice. However, since this is a through-hole soldering tutorial, solder paste will not be discussed in detail.
SparkFun offers many sizes of spools of solder in both leaded and lead-free varieties. Whether you just need enough for one project or are stocking up for the coming winter, SparkFun has what you need. You can visit the Soldering category of the SparkFun catalog for more solder options as well.
Now that you know how to choose the best solder for the job, let's move on to tools and more terminology.
There are many tools that aid in soldering, but none are more important than the soldering iron. If nothing else, you need at least an iron and some solder to accomplish the task at hand. Soldering irons come in a variety of from factors and range from simple to complex, but they all function roughly the same. Here, we'll discuss the parts of an iron and the different types of irons.
Soldering Iron Anatomy
Here are the basic parts that make up a soldering iron.
- Soldering Tips - No iron is complete without an iron tip. The tip is the part of the iron that heats up and allows solder to flow around the two components being joined. Although solder will stick to the tip when applied, a common misconception is that the tip transfers the solder. The tip actually transfers heat, raising the temperature of the metal components to the melting point of the solder, and the solder melts accordingly. Most irons give you the option to change your tip, should you need to replace an old tip or if you need to switch to a different style of tip. Tips come in a variety of sizes and shapes to accommodate any component.
Changing the tip is a simple process that consists of either unscrewing the wand or simply pushing in and pulling out the tip
- Wand - The wand is the part of the iron that holds the tip. This is also the part that is handled by the user. Wands are usually made of a variety of insulating materials (such as rubber) to prevent the heat of the tip from transferring to the outside of the wand, but they also house wires and metal contacts that transfer heat from the base or outlet to the tip. This dual role of heating and preventing burns makes a high quality wand much appreciated.
Some irons consist of just a wand that plugs into a wall outlet. These irons are as simple as they come, and they do not have any controls to vary the temperature. In these irons, the heating element is built directly into the wand.
- Base - The base of the soldering iron is the control box that allows the adjusting of temperatures. The wand attaches to the base and receives its heat from the electronics inside. There are analog bases, which have a dial that controls the temperature, and there are digital bases, which have buttons to set the temperature and a display that tells you the current temperature. Some bases even have extra features such as heat profiles that allow you to quickly change the amount of heat provided to the tip for soldering a variety of components.
The base typically is comprised of a large transformer and several other control electronics that safely allow you to vary the heat of your tip.
- Stand (Cradle) - The iron stand (often referred to as a cradle) is what houses the iron when it is not in use. The stand may seem trivial, but leaving an unattended iron laying around on your desk or workbench is a potential hazard: it could burn you, or, worse, it could burn your desk and start a fire. Again, they can be as simple as a metal stand, or they can be complex, offering an auto-shutoff feature that reduces the temperature of the tip when the wand is placed in the cradle. This helps prevent the wearing of your tip over time.
- Brass Sponge - As you solder, your tip will tend to oxidize, which means it will turn black and not want to accept solder. Especially with lead-free solder, there are impurities in the solder that tend to build up on the tip of your iron, which causes this oxidization. This is where the sponge comes in. Every so often you should give your tip a good cleaning by wiping off this build-up. Traditionally, an actual wet sponge was used to accomplish this. However, using a wet sponge can drastically reduce the lifespan of your tip. By wiping your tip on a cool, wet sponge, the tip tends to expand and contract from the change in temperature. This expansion and contraction will wear out your tip and can sometime cause a hole to develop in the side of the tip. Once a tip has a hole, it is no good for soldering. Thus, brass sponges have become the standard for tip cleaning. Brass sponges pull the excess solder from your tip while allowing the tip to maintain its current heat level. If you do not have a brass sponge, a regular sponge is better than nothing.
Purchasing a Soldering Iron
Whether you're just beginning or a seasoned pro we've got a soldering iron for you!
Looking for more options for soldering iron? Click on the button below for additional options in the catalog!
Now that you know the ins and outs of a soldering iron, it's time to discuss the other tools that will aid you on your soldering adventure.
- Solder Wick - is the eraser to soldering's pencil. When dealing with issues such as jumpers or the removal of parts (desoldering), solder wick comes in very handy. Solder wick -- aka desoldering braid -- is comprised of thin copper wire braided together. Solder is soaked (wicked) up by the copper allowing you to "erase" extra globs of solder.
- Tip Tinner - is a chemical paste used to clean the tip of your soldering iron. It is composed of a mild acid that helps remove baked on residue (like when you accidentally melt your tip on a component) and helps prevent oxidation (the nasty black stuff) that accumulates on your soldering tip when not in use.
- Solder Vacuum (Solder Sucker) - is a great tool for removing solder left behind in through-holes when delsodering components. We'll go over how to use this tool a little later in the tutorial.
- Water Soluble Flux Pen - Flux is a chemical agent that aids in the flowing of lead-free solder. Flux pens allow you to dab stubborn components with liquid flux to create better looking solder joints. It is recommended to clean and remove any remaining water soluble flux residue on the board.
- No Clean Flux Pen - Flux is another chemical agent that aids in the flowing of lead-free solder. Flux pens allow you to dab stubborn components with liquid flux to create better looking solder joints. Cleaning and flux removal is not required. For those interested in removing the flux residue, isopropyl alcohol (IPA) is required.
- Insulated Silicone Soldering Mat - Protect your desktop and keep it clean with a silicone soldering mat.
- Solder-Mate Solder Dispenser - To prevent your spool from rolling away and dispense your solder.
Other Suggested Tools
These tools aren't necessary, but they sure do make soldering easier at times.
- Third Hand (Third Arm) - Third hands are great for holding PCBs, wires, and components in place while you solder.
- Panavise Jr. - Vacuum Base - Another great tool for holding PCBs, wires, and components in place while you solder and reworking your board.
- Stickvise PCB Vise - This low profile PCB vise is ideal for holding a PCB flat while soldering, testing, and wiring on a table. They also fit easily under a microscope to keep the PCB consistently in focus. Worried about accidentally melting your standard Nylon jaws with the Stickvise? You may want to upgrade by picking up a pair of the high temperature PTFE jaws. They will not melt or become damaged by incidental contact with a soldering iron.
- Needle Nose Pliers - Mini pliers are a must have for any hobbyist or electrical engineer. Crucial for inserting devices into breadboards and bending pins.
- Diaconal Cutters - Cutters allow you to trim the legs of components you solder to the PCB. They can also be used to grip, grap, and pry connectors or other various cables such as a LiPo battery's 2-pin JST connector.
- Flush Cutters - Giving you a way to cut leads very cleanly and close to the solder joint. Diagonal cutters are good, but if you really need to get up close and personal, flush cutters are the way to go.
- Safety Glasses - Just in case any clipped leads go flying.
- Monocle - Useful for inspecting your solder joints and SMD components on a PCB. The LED provides sufficient light at the working distance.
Soldering Your First Component
Let's put all these tools into action. This first video will go over the basics of soldering your first component -- headers!
Check out the Vimeo version here.
It's really that easy! Follow Dave's simple rules to make every solder connection a good one.
- Be cautious when handling hot irons
- Use third hands or vices to hold boards while you solder
- Set your iron at a good medium heat (325-375 degrees C)
- If you see smoke coming from your solder, turn down the heat
- Tin your tip with solder before each connection to help prep the joint
- Use the side of the tip (aka the sweet spot), not the very tip of the iron
- Heat both the pad and the part you want to solder evenly and at the same time
- Pull the solder away, then the iron
- A good solder joint should look like a volcano or Hersey kiss, not a ball or clump
We've also put together this digram to help you better understand what makes a good solder joint.
When you are finished, tin the tip to increase its life before turning your soldering iron off.
Tips and Tricks
Besides using a third arm, there are other methods of soldering components to boards. You will also run into issues that require different techniques to get the perfect solder joint. Check out some additional tips and tricks below!
Tape or Sticky Tack to Hold Down Components
Got some tape or sticky tack? Try using it to hold down wires or headers against the board!
|Sticky tack holding down wires for the MAX30105 particle sensor breakout board.||Sticky tack holding down right angle headers for the GPS LS20031 module.|
Silicone or Pieces of Cardboard as Insulation
Need to hold down a component but it's getting too hot to hold down with your fingers against the board? You can always grab a piece of silicone or cut off a piece of cardboard to hold the component down for a few seconds. Below is an example of a resistor being held down on a shield with the help of piece of cardboard.
Old Shields, Development Boards, and Breadboards as a Helping Hand
If you do not have a steady hand, you can use old shields and development boards to align headers before soldering. Here are two examples from the Arduino Shield tutorial when installing female stackable headers or male headers.
|Installing Stackable Headers with an Old Shield||Installing Male Headers with a Development board|
If you have a shield or breakout board can fit on a breadboard, you can use the breadboard to hold the pins as you solder as well. We recommend using this method with boards that have two rows of headers. You will want to avoid applying a lot of heat as this can melt the breadboard.
|Installing male headers on TeensyView shield for the Teensy with a breadboard.||Installing long male headers on the MiniGen shield for the Pro Mini with a mini-breadboard.|
Ground Planes and Large Through Holes
Depending on the design, the plated through hole pad size may be connected to a ground plane or it's larger than usual. These require more heat. You may notice that the solder is kind of "sticking" but really, it's just blobbing up. You may need:
- larger soldering iron tip
- adjust the soldering station to a higher temperature (720 °F)
- add flux
- keep the soldering iron on the joint just a bit longer
|Soldering to a Ground Pin on the Beefcake Relay||Solder Blobbing Between Thick Wire and a Large Plated Through Hole on the Beefacke Relay|
Usually keeping adding some flux and keeping the soldering iron a little longer on the joint will help. Having a higher watt, adjustable soldering station usually helps with the tip recovering after it is in contact with something cold. If you have a friend or extra soldering iron around, you can also try to heat the joint with two soldering irons.
Advanced Techniques and Troubleshooting
Once you get the basics of creating good solder joints, it's time to learn some of the more advanced PTH techniques that you can utilize. This video goes over using flux, removing solder jumpers, desoldering components, along with some other tips and tricks.
Here are some other tips for PTH soldering:
Desoldering can often be the best way to learn how to solder. There are many reasons to desolder a part: repair, upgrade, salvage, etc. Many of the techniques used in the video aid in the desoldering process.
There is another method of removing solder from through-holes that we refer to as the slap method.
If you're ever unsure if the solder joint you created is making an electrical connection, you can use a multimeter to test for continuity.
Holding Headers Against a Board
For those that have the dexterity, you can install a row of headers by holding the pins against the board! You can try to use tape and sticky tack as mentioned earlier. Below is an example of installing female headers on the ProtoShield. However, you can follow along with male headers or use this technique to solder headers on any board.
Grab a female stackable header and slide it from the top side of a shield. With your soldering hand, pull the header with your index finger and thumb toward the edge of the board. Using your other hand, push against the header using your index finger and grip the board with your thumb. Hold the header down with your middle finger. Make sure to avoid touching any header pins where the soldering iron will touch.
Grab the soldering iron with your soldering hand and tack on one pin. Repeat for each header. After tacking one pin for each header, you will want to ensure that the pins are straight and perpendicular to your board. If they are not, you can try to reheat the header pin and adjust the header's alignment.
If the headers are aligned, you can solder the rest of the header pins on the board to finish installing the headers on the board!
Looking for more tips and tricks with just your soldering iron? Check out these advanced techniques to rework SMD components according to Pete.
Cleaning Flux Residue
When working with lead-free solder, flux tends to get everywhere, be it from the flux in the solder or from external flux applied by the user. Certain types of flux can corrode the PCB and components over time, thus it's good to know how to clean your PCBs so they're free of any flux residue. This can also cause a high-resistance shorts between pins as a result of the moisture in the air and tiny dendrites forming. Common problems can range from uploading code to an Arduino using a serial-to-USB converter to errors when sending data through I2C.
How do they look like? Well, lets take a look at the images below. The image on the left shows water-soluble flux residue on the solder joints. These can appear as a yellow or brown coating on or around the solder joints. The image on the right shows no clean flux that was used on the SparkFun Edge. These can appear gunky and white on the board. It's non-conductive so it can be left on the board.
|Water-Soluble Flux Residue on the 8-Pin SOIC to DIP Adapater||No Clean Flux on the SparkFun Edge's Pad|
If you have water-soluble flux residue on the board, you will want to remove it from the board. No clean flux, you should not need to remove it. The simplest way to clean water soluble-flux from the board is to use a small brush with stiff bristles (toothbrushes work great) or a Q-tip. Then scrub the solder joint with hot, de-ionized water to remove the water-soluble flux. Isopropyl alcohol can be used as a substitute for water. If you must remove no-clean flux from the board, the best approach would be to use isopropyl alcohol, rather than water. Keep in mind, you'll have to check the documentation for your solder for the proper cleaning methodology as other types of flux may require acetone.
|Removing Water Soluble Flux with a Brush||Removing Water Soluble Flux with a Q-Tip||Removing No Clean Flux with a Q-Tip|
If you are soldering more than a few boards, it may be necessary to clean them in batches. For this, we recommend a crock pot filled with distilled water. The distilled water keeps other impurities and contaminants away from your circuit. Below shows an image of a battery holders being cleaned. Not all boards can be dunked in water like this. So you may need to manually clean the solder joints. Having a crock pot full of hot, de-ionized water will make the process faster.
|Dunking Boards in a Crock Pot||Manually Cleaning an LED Strip's Solder Joints|
Make sure to avoid getting water sensors or components that can retain water. Certain components are sensitive to water, so you should avoid dunking those boards in water and be careful about getting these components wet. Here is a short list of components that should avoid contact with water. If water gets trapped in them and you power the board, it will probably damage the component.
- Character LCDs
- 7-Segment LED Displays
- GPS Modules
- Wireless Modules
- Barometric Pressure Sensors
- Slide Potentiometers
- Heart Rate Monitor ICs
When you are finished cleaning the board, you'll want to remove any excess water off the board. Compressed air works wonders so that you do not have to wait for it to evaporate. You can also paper towels to dry a board but it may leave pieces of lint behind. Thus low-lint wipes to dry a board would be better. If you have a hot air gun, you can also use it to heat the board up. Just make sure to not melt anything on the board.
|Compressed Air to Dry Board||Low Lint Wipes Drying a Board|
It's not 100% necessary to clean your board, however, it will increase the life of your circuit tremendously. Additionally, data sent through serial will be reliable when the board is clean. For more information on PCB cleaning, click below.
Testing and Troubleshooting Solder Joints
Once you are done cleaning, feel free to check your solder joints with a multimeter set to continuity mode as stated earlier. This is useful if you run into problems and need to check if a pin is soldered correctly to a board. For more information, check out our tutorial on how to use a multimeter.
Looking for troubleshooting tips? Check out the hardware checklist in our tutorial for more information!
Resources and Going Further
We've only just begun to travel down the soldering rabbit hole. Once you have mastered PTH soldering, you can try your hand at these other skills and tutorials.
- Electronics Troubleshooting
- Electronics Assembly
- SMD How To Soldering Series
- Making Your Own Solder Paste Stencils
- Solder Paste and Stenciling and Reflowing with a Skillet or Toaster
- SparkFun Simon SMD Tutorial w/ Tony
For more information about soldering castellated mounting holes to pads, check out our guide on soldering castellated holes.
How to Solder: Castellated Mounting Holes
May 12, 2015
Or check out the following tutorials to solder a surface mount component (SMD) to a breakout board.
SSOP-16 to DIP Adapter Hookup Guide
January 5, 2017
Looking for more tutorials with soldering? Try taking a look at any tutorial tagged with soldering!
Hacking Your Maker Faire Badge
Lumenati Hookup Guide
LilyPad Safety Scarf
And, of course, what's a soldering tutorial without something to solder. SparkFun sells a variety of kits that are great for honing your soldering skills. There's even a Learn to Solder series of kits that have all the tools necessary to get started.
Or check out these blog posts related to soldering and tools!