Wednesday, April 13, 2011

Soldering Guide

How to Solder

First a few safety precautions:

  • Never touch the element or tip of the soldering iron.
    They are very hot (about 400°C) and will give you a nasty burn.
  • Take great care to avoid touching the mains flex with the tip of the iron.
    The iron should have a heatproof flex for extra protection. An ordinary plastic flex will melt immediately if touched by a hot iron and there is a serious risk of burns and electric shock.
  • Always return the soldering iron to its stand when not in use.
    Never put it down on your workbench, even for a moment!
  • Work in a well-ventilated area.
    The smoke formed as you melt solder is mostly from the flux and quite irritating. Avoid breathing it by keeping you head to the side of, not above, your work.
  • Wash your hands after using solder.
    Solder contains lead which is a poisonous metal.
If you are unlucky (or careless!) enough to burn yourself please read the First Aid section.

Preparing the soldering iron:

  • Place the soldering iron in its stand and plug in.
    The iron will take a few minutes to reach its operating temperature of about 400°C.
  • Dampen the sponge in the stand.
    The best way to do this is to lift it out the stand and hold it under a cold tap for a moment, then squeeze to remove excess water. It should be damp, not dripping wet.
  • Wait a few minutes for the soldering iron to warm up.
    You can check if it is ready by trying to melt a little solder on the tip.
  • Wipe the tip of the iron on the damp sponge.
    This will clean the tip.
  • Melt a little solder on the tip of the iron.
    This is called 'tinning' and it will help the heat to flow from the iron's tip to the joint. It only needs to be done when you plug in the iron, and occasionally while soldering if you need to wipe the tip clean on the sponge.

You are now ready to start soldering:

Good and bad soldered joints
  • Hold the soldering iron like a pen, near the base of the handle.
    Imagine you are going to write your name! Remember to never touch the hot element or tip.
  • Touch the soldering iron onto the joint to be made.
    Make sure it touches both the component lead and the track. Hold the tip there for a few seconds and...
  • Feed a little solder onto the joint.
    It should flow smoothly onto the lead and track to form a volcano shape as shown in the diagram. Apply the solder to the joint, not the iron.
  • Remove the solder, then the iron, while keeping the joint still.
    Allow the joint a few seconds to cool before you move the circuit board.
  • Inspect the joint closely.
    It should look shiny and have a 'volcano' shape. If not, you will need to reheat it and feed in a little more solder. This time ensure that both the lead and track are heated fully before applying solder.
If you are unlucky (or careless!) enough to burn yourself please read the First Aid section.
Crocodile clip, photograph © Rapid Electronics
Crocodile clip


Using a heat sink

Some components, such as transistors, can be damaged by heat when soldering so if you are not an expert it is wise to use a heat sink clipped to the lead between the joint and the component body. You can buy a special tool, but a standard crocodile clip works just as well and is cheaper.

Further information




Soldering Advice for Components

It is very tempting to start soldering components onto the circuit board straight away, but please take time to identify all the parts first. You are much less likely to make a mistake if you do this!
    Components stuck onto paper
  1. Stick all the components onto a sheet of paper using sticky tape.
  2. Identify each component and write its name or value beside it.
  3. Add the code (R1, R2, C1 etc.) if necessary.
    Many projects from books and magazines label the components with codes (R1, R2, C1, D1 etc.) and you should use the project's parts list to find these codes if they are given.
  4. Resistor values can be found using the resistor colour code which is explained on our Resistors page. You can print out and make your own Resistor Colour Code Calculator to help you.
  5. Capacitor values can be difficult to find because there are many types with different labelling systems! The various systems are explained on our Capacitors page.
Some components require special care when soldering. Many must be placed the correct way round and a few are easily damaged by the heat from soldering. Appropriate warnings are given in the table below, together with other advice which may be useful when soldering. For more detail on specific components please see the Components page or click on the component name in the table.
For most projects it is best to put the components onto the board in the order given below:

 

Components


Pictures


Reminders and Warnings


1
IC Holders
(DIL sockets)


IC holder
Connect the correct way round by making sure the notch is at the correct end.
Do NOT put the ICs (chips) in yet.


2
Resistors

resistor
No special precautions are needed with resistors.


3
Small value capacitors
(usually less than 1µF)


small value capacitors
These may be connected either way round.
Take care with polystyrene capacitors because they are easily damaged by heat.


4
Electrolytic capacitors
(1µF and greater)


electrolytic capacitor
Connect the correct way round. They will be marked with a + or - near one lead.


5
Diodes

diodes
Connect the correct way round.
Take care with germanium diodes (e.g. OA91) because they are easily damaged by heat.


6
LEDs

LED
Connect the correct way round.
The diagram may be labelled a or + for anode and k or - for cathode; yes, it really is k, not c, for cathode! The cathode is the short lead and there may be a slight flat on the body of round LEDs.


7
Transistors

transistors
Connect the correct way round.
Transistors have 3 'legs' (leads) so extra care is needed to ensure the connections are correct.
Easily damaged by heat.


8
Wire Links between points on the circuit board.

single core wire
single core wire
Use single core wire, this is one solid wire which is plastic-coated.
If there is no danger of touching other parts you can use tinned copper wire, this has no plastic coating and looks just like solder but it is stiffer.


9
Battery clips, buzzers and other parts with their own wires   Connect the correct way round.
10 Wires to parts off the circuit board, including switches, relays, variable resistors and loudspeakers.

stranded wire
stranded wire
You should use stranded wire which is flexible and plastic-coated.
Do not use single core wire because this will break when it is repeatedly flexed.
11 ICs (chips)

555 timer IC
Connect the correct way round.
Many ICs are static sensitive.
Leave ICs in their antistatic packaging until you need them, then earth your hands by touching a metal water pipe or window frame before touching the ICs.

Carefully insert ICs in their holders: make sure all the pins are lined up with the socket then push down firmly with your thumb.





What is solder?

Reels of solder

Solder is an alloy (mixture) of tin and lead, typically 60% tin and 40% lead. It melts at a temperature of about 200°C. Coating a surface with solder is called 'tinning' because of the tin content of solder. Lead is poisonous and you should always wash your hands after using solder. Solder for electronics use contains tiny cores of flux, like the wires inside a mains flex. The flux is corrosive, like an acid, and it cleans the metal surfaces as the solder melts. This is why you must melt the solder actually on the joint, not on the iron tip. Without flux most joints would fail because metals quickly oxidise and the solder itself will not flow properly onto a dirty, oxidised, metal surface.
The best size of solder for electronics is 22swg (swg = standard wire gauge).



Desoldering

At some stage you will probably need to desolder a joint to remove or re-position a wire or component. There are two ways to remove the solder:
Using a desoldering pump (solder sucker)
1.  With a desoldering pump (solder sucker)
  • Set the pump by pushing the spring-loaded plunger down until it locks.
  • Apply both the pump nozzle and the tip of your soldering iron to the joint.
  • Wait a second or two for the solder to melt.
  • Then press the button on the pump to release the plunger and suck the molten solder into the tool.
  • Repeat if necessary to remove as much solder as possible.
  • The pump will need emptying occasionally by unscrewing the nozzle.


Solder remover wick

2.  With solder remover wick (copper braid)
  • Apply both the end of the wick and the tip of your soldering iron to the joint.
  • As the solder melts most of it will flow onto the wick, away from the joint.
  • Remove the wick first, then the soldering iron.
  • Cut off and discard the end of the wick coated with solder.

After removing most of the solder from the joint(s) you may be able to remove the wire or component lead straight away (allow a few seconds for it to cool). If the joint will not come apart easily apply your soldering iron to melt the remaining traces of solder at the same time as pulling the joint apart, taking care to avoid burning yourself.

Tuesday, April 12, 2011

Other Components



LDR

LDR symbol
circuit symbol

Light Dependent Resistor (LDR)

An LDR is an input transducer (sensor) which converts brightness (light) to resistance. It is made from cadmium sulphide (CdS) and the resistance decreases as the brightness of light falling on the LDR increases. A multimeter can be used to find the resistance in darkness and bright light, these are the typical results for a standard LDR:
  • Darkness: maximum resistance, about 1Mohm.
  • Very bright light: minimum resistance, about 100ohm.
For many years the standard LDR has been the ORP12, now the NORPS12, which is about 13mm diameter. Miniature LDRs are also available and their diameter is about 5mm. An LDR may be connected either way round and no special precautions are required when soldering.


Thermistor

thermistor

thermistor symbol
circuit symbol
A thermistor is an input transducer (sensor) which converts temperature (heat) to resistance. Almost all thermistors have a negative temperature coefficient (NTC) which means their resistance decreases as their temperature increases. It is possible to make thermistors with a positive temperature coefficient (resistance increases as temperature increases) but these are rarely used. Always assume NTC if no information is given. A multimeter can be used to find the resistance at various temperatures, these are some typical readings for example:
  • Icy water 0°C: high resistance, about 12kohm.
  • Room temperature 25°C: medium resistance, about 5kohm.
  • Boiling water 100°C: low resistance, about 400ohm.
Suppliers usually specify thermistors by their resistance at 25°C (room temperature). Thermistors take several seconds to respond to a sudden temperature change, small thermistors respond more rapidly. A thermistor may be connected either way round and no special precautions are required when soldering. If it is going to be immersed in water the thermistor and its connections should be insulated because water is a weak conductor; for example they could be coated with polyurethane varnish.


Piezo transducer

piezo transducer

piezo transducer symbol
circuit symbol
Piezo transducers are output transducers which convert an electrical signal to sound. They require a driver circuit (such as a 555 astable) to provide a signal and if this is near their natural (resonant) frequency of about 3kHz they will produce a particularly loud sound. Piezo transducers require a small current, usually less than 10mA, so they can be connected directly to the outputs of most ICs. They are ideal for buzzes and beeps, but are not suitable for speech or music because they distort the sound. They are sometimes supplied with red and black leads, but they may be connected either way round. PCB-mounting versions are also available.
Piezo transducers can also be used as input transducers for detecting sudden loud noises or impacts, effectively behaving as a crude microphone.


loudspeaker

 
capacitor in series with loudspeaker
capacitor in series to block DC
 
loudspeaker symbol
circuit symbol

Loudspeaker

Loudspeakers are output transducers which convert an electrical signal to sound. Usually they are called 'speakers'. They require a driver circuit, such as a 555 astable or an audio amplifier, to provide a signal. There is a wide range available, but for many electronics projects a 300mW miniature loudspeaker is ideal. This type is about 70mm diameter and it is usually available with resistances of 8ohm and 64ohm. If a project specifies a 64ohm speaker you must use this higher resistance to prevent damage to the driving circuit. Most circuits used to drive loudspeakers produce an audio (AC) signal which is combined with a constant DC signal. The DC will make a large current flow through the speaker due to its low resistance, possibly damaging both the speaker and the driving circuit. To prevent this happening a large value electrolytic capacitor is connected in series with the speaker, this blocks DC but passes audio (AC) signals. See capacitor coupling.
Loudspeakers may be connected either way round except in stereo circuits when the + and - markings on their terminals must be observed to ensure the two speakers are in phase.
Correct polarity must always be observed for large speakers in cabinets because the cabinet may contain a small circuit (a 'crossover network') which diverts the high frequency signals to a small speaker (a 'tweeter') because the large main speaker is poor at reproducing them.
Miniature loudspeakers can also be used as a microphone and they work surprisingly well, certainly good enough for speech in an intercom system for example.


buzzer bleeper
Buzzer (about 400Hz)Bleeper (about 3kHz)

 
circuit symbol   buzzer symbol

Buzzer and Bleeper

These devices are output transducers converting electrical energy to sound. They contain an internal oscillator to produce the sound which is set at about 400Hz for buzzers and about 3kHz for bleepers. Buzzers have a voltage rating but it is only approximate, for example 6V and 12V buzzers can be used with a 9V supply. Their typical current is about 25mA.
Bleepers have wide voltage ranges, such as 3-30V, and they pass a low current of about 10mA.
Buzzers and bleepers must be connected the right way round, their red lead is positive (+).


inductor
Inductor (miniature)
ferrite rod
Ferrite rod

 
inductor symbol
circuit symbol

Inductor (coil)

An inductor is a coil of wire which may have a core of air, iron or ferrite (a brittle material made from iron). Its electrical property is called inductance and the unit for this is the henry, symbol H. 1H is very large so mH and µH are used, 1000µH = 1mH and 1000mH = 1H. Iron and ferrite cores increase the inductance. Inductors are mainly used in tuned circuits and to block high frequency AC signals (they are sometimes called chokes). They pass DC easily, but block AC signals, this is the opposite of capacitors. Inductors are rarely found in simple projects, but one exception is the tuning coil of a radio receiver. This is an inductor which you may have to make yourself by neatly winding enamelled copper wire around a ferrite rod. Enamelled copper wire has very thin insulation, allowing the turns of the coil to be close together, but this makes it impossible to strip in the usual way - the best method is to gently pull the ends of the wire through folded emery paper.
Warning: a ferrite rod is brittle so treat it like glass, not iron!
An inductor may be connected either way round and no special precautions are required when soldering.

Variable Resistors

Construction

variable resistor track and wiper
variable resistor
Standard Variable Resistor

Variable resistors consist of a resistance track with connections at both ends and a wiper which moves along the track as you turn the spindle. The track may be made from carbon, cermet (ceramic and metal mixture) or a coil of wire (for low resistances). The track is usually rotary but straight track versions, usually called sliders, are also available. Variable resistors may be used as a rheostat with two connections (the wiper and just one end of the track) or as a potentiometer with all three connections in use. Miniature versions called presets are made for setting up circuits which will not require further adjustment.
Variable resistors are often called potentiometers in books and catalogues. They are specified by their maximum resistance, linear or logarithmic track, and their physical size. The standard spindle diameter is 6mm.
The resistance and type of track are marked on the body:
    4K7 LIN means 4.7 kohm linear track.
    1M LOG means 1 Mohm logarithmic track.
Some variable resistors are designed to be mounted directly on the circuit board, but most are for mounting through a hole drilled in the case containing the circuit with stranded wire connecting their terminals to the circuit board.


Linear (LIN) and Logarithmic (LOG) tracks

Linear (LIN) track means that the resistance changes at a constant rate as you move the wiper. This is the standard arrangement and you should assume this type is required if a project does not specify the type of track. Presets always have linear tracks. Logarithmic (LOG) track means that the resistance changes slowly at one end of the track and rapidly at the other end, so halfway along the track is not half the total resistance! This arrangement is used for volume (loudness) controls because the human ear has a logarithmic response to loudness so fine control (slow change) is required at low volumes and coarser control (rapid change) at high volumes. It is important to connect the ends of the track the correct way round, if you find that turning the spindle increases the volume rapidly followed by little further change you should swap the connections to the ends of the track.

Rheostat

rheostat symbol
Rheostat Symbol
 
This is the simplest way of using a variable resistor. Two terminals are used: one connected to an end of the track, the other to the moveable wiper. Turning the spindle changes the resistance between the two terminals from zero up to the maximum resistance. Rheostats are often used to vary current, for example to control the brightness of a lamp or the rate at which a capacitor charges.
If the rheostat is mounted on a printed circuit board you may find that all three terminals are connected! However, one of them will be linked to the wiper terminal. This improves the mechanical strength of the mounting but it serves no function electrically.


Potentiometer

potentiometer symbol
Potentiometer Symbol
 
Variable resistors used as potentiometers have all three terminals connected. This arrangement is normally used to vary voltage, for example to set the switching point of a circuit with a sensor, or control the volume (loudness) in an amplifier circuit. If the terminals at the ends of the track are connected across the power supply then the wiper terminal will provide a voltage which can be varied from zero up to the maximum of the supply.


Presets

preset symbol
Preset Symbol
 
These are miniature versions of the standard variable resistor. They are designed to be mounted directly onto the circuit board and adjusted only when the circuit is built. For example to set the frequency of an alarm tone or the sensitivity of a light-sensitive circuit. A small screwdriver or similar tool is required to adjust presets. Presets are much cheaper than standard variable resistors so they are sometimes used in projects where a standard variable resistor would normally be used.
Multiturn presets are used where very precise adjustments must be made. The screw must be turned many times (10+) to move the slider from one end of the track to the other, giving very fine control.

preset presets multiturn preset
Preset
(open style)
Presets
(closed style)
Multiturn preset

Heat sinks for transistors

Why is a heat sink needed?

Heat sink
Heat sinkPhotograph © Rapid Electronics
Waste heat is produced in transistors due to the current flowing through them. If you find that a transistor is becoming too hot to touch it certainly needs a heat sink! The heat sink helps to dissipate (remove) the heat by transferring it to the surrounding air. The rate of producing waste heat is called the thermal power, P. Usually the base current IB is too small to contribute much heat, so the thermal power is determined by the collector current IC and the voltage VCE across the transistor:
P = IC × VCE   (see diagram below)


Insulation kit
Insulation kit
 
Heat-conducting paste
Heat-conducting pastePhotographs © Rapid Electronics
The heat is not a problem if IC is small or if the transistor is used as a switch because when 'full on' VCE is almost zero. However, power transistors used in circuits such as an audio amplifier or a motor speed controller will be partly on most of the time and VCE may be about half the supply voltage. These power transistors will almost certainly need a heat sink to prevent them overheating.
Power transistors usually have bolt holes for attaching heat sinks, but clip-on heat sinks are also available. Make sure you use the right type for your transistor. Many transistors have metal cases which are connected to one of their leads so it may be necessary to insulate the heat sink from the transistor. Insulating kits are available with a mica sheet and a plastic sleeve for the bolt. Heat-conducting paste can be used to improve heat flow from the transistor to the heat sink, this is especially important if an insulation kit is used.


Heat sink ratings

Heat sinks are rated by their thermal resistance (Rth) in °C/W. For example 2°C/W means the heat sink (and therefore the component attached to it) will be 2°C hotter than the surrounding air for every 1W of heat it is dissipating. Note that a lower thermal resistance means a better heat sink. This is how you work out the required heat sink rating: NPN transistor with load
  1. Work out thermal power to be dissipated, P = IC × VCE
    If in doubt use the largest likely value for IC and assume that VCE is half the supply voltage.
    For example if a power transistor is passing 1A and connected to a 12V supply, the power P is about 1 × ½ × 12 = 6W.
  2. Find the maximum operating temperature (Tmax) for the transistor if you can, otherwise assume Tmax = 100°C.
  3. Estimate the maximum ambient (surrounding air) temperature (Tair). If the heat sink is going to be outside the case Tair = 25°C is reasonable, but inside it will be higher (perhaps 40°C) allowing for everything to warm up in operation.
  4. Work out the maximum thermal resistance (Rth) for the heat sink using: Rth = (Tmax - Tair) / P
    With the example values given above: Rth = (100-25)/6 = 12.5°C/W.
  5. Choose a heat sink with a thermal resistance which is less than the value calculated above (remember lower value means better heat sinking!) for example 5°C/W would be a sensible choice to allow a safety margin. A 5°C/W heat sink dissipating 6W will have a temperature difference of 5 × 6 = 30°C so the transistor temperature will rise to 25 + 30 = 55°C (safely less than the 100°C maximum).
  6. All the above assumes the transistor is at the same temperature as the heat sink. This is a reasonable assumption if they are firmly bolted or clipped together. However, you may have to put a mica sheet or similar between them to provide electrical insulation, then the transistor will be hotter than the heat sink and the calculation becomes more difficult. For typical mica sheets you should subtract 2°C/W from the thermal resistance (Rth) value calculated in step 4 above.
If this all seems too complex you can try attaching a moderately large heat sink and hope for the best. Cautiously monitor the transistor temperature with your finger, if it becomes painfully hot switch off immediately and use a larger heat sink!

Why thermal resistance?

The term 'thermal resistance' is used because it is analagous to electrical resistance:
  • The temperature difference across the heat sink (between the transistor and air) is like voltage (potential difference) across a resistor.
  • The thermal power (rate of heat) flowing through the heat sink from transistor to air is like current flowing through a resistor.
  • So R = V/I becomes Rth = (Tmax - Tair)/P
  • Just as you need a voltage difference to make current flow, you need a temperature difference to make heat flow.