Identifying Components and Reading Datasheets
A bag of parts arrives: black cylinders with a grey band, clear domes with two legs of different length, little black half-moons with three legs, and an 8-pin chip with a dot in one corner. Before any of them goes into a circuit you need to know what each part is, which pin is which, and what it can take. The first two come from the body and its markings; the third comes only from the datasheet. This lesson teaches you to identify common parts and to read a datasheet the way engineers do: limits first, typical values last.
Intuition: packages and pin 1
| Part | How to recognise it | Which pin is which |
|---|---|---|
| small-signal or rectifier diode | glass or black cylinder, two leads, printed number (e.g. a 1N4148 type or 1N400x type) | the band marks the cathode (K); in the symbol, the bar |
| LED | coloured or clear dome | longer leg = anode (A), flat on the rim and short leg = cathode; check with the meter's diode test |
| transistor in TO-92, SOT-23 or TO-220 | three legs, a part number on the flat face | no universal pinout: E-B-C, C-B-E, G-D-S all exist; always look it up |
| integrated circuit in DIP, SOIC, QFN | many pins, part number, date code | notch or dot marks pin 1; pins count anticlockwise seen from the top |
| surface-mount parts (SOT-23 etc.) | 2 to 4 character "top marking" codes | the datasheet's marking table maps the code to the part |
The part number identifies the device; the extra letters (suffixes) often encode package, temperature range or tolerance, and the date code, often four digits (year and week), tells you its age.
Theory: the three tables of a datasheet
A datasheet is a contract. Read its tables in this order:
- Absolute maximum ratings. Stress limits. Exceeding any one, even briefly, can damage the part or shorten its life. They are not operating conditions: a part run at its absolute maximum is being abused.
- Recommended operating conditions. The range in which the maker guarantees the electrical characteristics: supply voltage, temperature, current.
- Electrical characteristics. Measured parameters with test conditions and min / typ / max columns. Min and max are guaranteed (tested or guaranteed by design); typ is only a typical value at stated conditions, often . Design with min and max.
Graphs follow (typical curves, derating curves) and then the package drawing. A derating curve shows how a limit, such as allowed current or power, falls with temperature:
Here is an invented datasheet extract for a red indicator LED, written for this lesson (not any real part):
| LED-R3 (invented) | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| Absolute maximum: forward current | 30 | mA | , derate linearly to 0 at | |||
| Absolute maximum: reverse voltage | 5 | V | ||||
| Recommended: forward current | 2 | 20 | mA | |||
| Characteristics: forward voltage | 1.8 | 2.0 | 2.4 | V | ||
| Characteristics: luminous intensity | 40 | 80 | mcd |
Worked example: an LED resistor from the table
Given: the LED-R3 above on a supply (), target , E12 resistors , ambient up to . Find: the series resistor, the worst-case current and whether the derated limit holds. Solve: with typical values ; choose from E12 (the value above, so the current is a little lower). Worst case, highest current: , , , giving . Lowest: , , , giving . Derated limit at : . Check: and inside the recommended to . The resistor dissipates at most , fine for a part.
Code: worst case from datasheet numbers
import itertools
# Invented datasheet-style values for a red 3 mm indicator LED ("LED-R3"), not a real part.
VF = {"min": 1.8, "typ": 2.0, "max": 2.4} # V at I_F = 20 mA
IF_ABS_MAX = 0.030 # A, absolute maximum at T_A <= 25 C
T_KNEE, T_ZERO = 25.0, 85.0 # C: derate linearly to zero
def if_allowed(t_amb):
"""Derating line: full absolute maximum up to T_KNEE, zero at T_ZERO."""
if t_amb <= T_KNEE:
return IF_ABS_MAX
return max(0.0, IF_ABS_MAX * (T_ZERO - t_amb) / (T_ZERO - T_KNEE))
V_S, I_TARGET = 5.0, 0.010
R_calc = (V_S - VF["typ"]) / I_TARGET
R = 330.0 # next E12 value up
print(f"R from typical values: {R_calc:.0f} ohm -> fit {R:.0f} ohm")
# Worst case: supply +/-5 %, resistor +/-5 %, VF from min to max.
currents = []
for vs, r, vf in itertools.product((V_S * 0.95, V_S * 1.05), (R * 0.95, R * 1.05), (VF["min"], VF["max"])):
currents.append((vs - vf) / r)
lo, hi = min(currents), max(currents)
print(f"LED current: typical {(V_S - VF['typ']) / R * 1000:.1f} mA, worst case {lo * 1000:.1f} .. {hi * 1000:.1f} mA")
p_r = (V_S * 1.05 - VF["min"]) ** 2 / (R * 0.95)
print(f"largest resistor power {p_r * 1000:.0f} mW")
for t in (25, 50, 60, 70):
ok = "ok" if hi <= if_allowed(t) else "TOO HIGH"
print(f"T_A = {t} C: allowed {if_allowed(t) * 1000:4.1f} mA -> {ok}")R from typical values: 300 ohm -> fit 330 ohm
LED current: typical 9.1 mA, worst case 6.8 .. 11.0 mA
largest resistor power 38 mW
T_A = 25 C: allowed 30.0 mA -> ok
T_A = 50 C: allowed 17.5 mA -> ok
T_A = 60 C: allowed 12.5 mA -> ok
T_A = 70 C: allowed 7.5 mA -> TOO HIGH
Checking every corner of the tolerances (eight combinations here) is called worst-case analysis. A design that only works with typical values works on your bench and fails in the field. (Strictly, at is a little lower than at the test condition, which raises the current slightly; a real datasheet's versus curve settles it.)
Guided lab: verify the LED circuit
Hand calculation. As above: about with typical values, to worst case.
Simulation. Change V_S to in the code: the typical current drops to and the worst case to about with at its maximum, below the recommended range, so a design needs a smaller resistor. Try it and choose one.
What you would measure. Identify the LED's anode with the meter's diode test (it lights faintly and shows about to ). Build the circuit from a bench supply at with the current limit at . Measure the voltage across the resistor, about , and compute : about , with an uncertainty of about from the resistor tolerance (measure itself to remove it). Then measure directly; record the LED's real value against the table.
Hazards and safe setup
- Low voltage only (, current-limited). Never connect an LED straight across a supply without a resistor.
- Do not reverse-bias an LED beyond its reverse-voltage rating ( here).
- Do not stare into high-brightness or high-power LEDs; indicator LEDs at are fine.
Pitfalls
- Designing with typ values or running parts at their absolute maximum.
- Assuming a transistor pinout from another part in the same package.
- Ignoring the temperature column: most limits are stated at .
- Reading a datasheet from a random website: get it from the manufacturer, check the revision date, and note it in your lab notebook.
Practice
- A part's datasheet lists : absolute maximum , recommended to . May you run it at ?
- With the LED-R3 table and , what resistor gives typical, and what power does it dissipate?
- What is the derated LED-R3 current limit at ?
Answer
- No. It will probably not be destroyed, but nothing in the characteristics table is guaranteed outside to .
- ( is in E12), : a part runs at .
- .
Test yourself
Which datasheet values may you design with as guaranteed?
- Typical values
- Min and max in the electrical characteristics, under their test conditions
- Absolute maximum ratings
- The typical curves
On a diode body, what does the band mark?
- The anode
- The cathode
- The tolerance
- Pin 1 of a chip
How are the pins of a DIP integrated circuit numbered, seen from the top?
- Clockwise from the notch
- Anticlockwise from pin 1, which is marked by a notch or dot
- Left row 1 to 4, right row 1 to 4
- It depends on the colour
A derating curve allows up to and at . What is allowed at ?