13.3 First light: an LED on the lab supply
In Ben Eater’s first video an LED sits straight on a lab supply. He turns the voltage up slowly, the LED lights at about 1.8 V, and at about 2.2 V it glows red-hot inside and dies. We repeat his experiment with the current limit of the supply set first, so that the supply protects the LED, and we see the same behaviour without losing the part. What we see is the property that every LED circuit in this book is designed around.
What we need
A red 5 mm LED, a breadboard, two jumper wires, the lab supply with its two leads, and the datasheet of the LED. If the kit came without a datasheet, the one for Kingbright’s WP7113SRD1 is typical for a red 5 mm LED and is used for the numbers in this chapter.
Step 1: Find the legs
An LED conducts in one direction only, from the anode (+) to the cathode (−). The anode has the longer leg. The cathode has the shorter leg, and the rim of the plastic body is flattened on the cathode side, which still works after the legs have been cut to the same length. In a schematic the LED is a triangle pointing in the direction of the current, with a bar on the cathode side.
Connected the wrong way round, the LED stays dark and nothing is damaged at the voltages we use. If in doubt, the diode test of the multimeter shows which leg is which (Continuity and diode test).
Step 2: Read the datasheet
A datasheet is long, but three tables do most of the work. Absolute maximum ratings lists the values that must never be exceeded, not even for a moment; exceeding them may destroy the part at once or shorten its life. Electrical characteristics lists what the part does in normal operation, each value under stated test conditions, and its columns Min, Typ and Max give the spread between individual parts. Recommended operating conditions, when present, gives the range where the characteristics hold.
Open the LED datasheet and find the first two. Under Absolute maximum ratings the WP7113SRD allows a continuous forward current of 30 mA. Under Electrical characteristics it gives the forward voltage at a test current of 20 mA: 1.85 V typical and 2.5 V maximum.2 These are the numbers on the little card that came with Ben’s LEDs, “1.9 to 2 V at 20 mA”. A value holds only under its test conditions, so the 1.85 V belongs to 20 mA and says nothing about 5 mA.
We design with the typical values, check that the circuit still works with the minimum and maximum ones, and stay well away from the absolute maximum ratings. Then we measure what our own part does.
Write the prediction in the lab log: the LED should start to glow somewhere below 1.8 V and reach 20 mA near 1.9 V.
Step 3: Set the supply
The two displays of the supply show the two quantities of every circuit (Figure 13.3.2). The current, in amperes (A), is the charge that flows through a part each second. In a single loop it is the same in every part and every wire, and a meter that measures it must sit in the loop so that the current flows through it too. The voltage, in volts (V), lies between two points, here the two legs of the LED; it is what drives the current through the part, and a meter measures it across the part, touching both points, without opening anything.
Follow the routine of The bench power supply: output off, VOLTAGE at zero, current limit at 20 mA. The limit is the rated test current of the LED and well below its 30 mA absolute maximum, so whatever happens next the LED survives.
Step 4: Build
Every circuit in this part is wired the same way: + of the supply on the top + rail, − on the bottom − rail, so that the current runs down the board from top to bottom. Run the red lead of the supply to the top + rail and the black lead to the bottom − rail. Push the LED across the centre gap with its long leg in the upper half and its short leg in the lower half. A red jumper takes + from the rail to the column of the long leg, and a black jumper takes the column of the short leg to the − rail, as in Figure 13.3.3.
Check the build against the list in Before switching on.
Step 5: Turn up the voltage
Switch the output on and raise the voltage in small steps, 0.1 V at a time to begin with and 0.02 V at a time once the LED starts to glow. At each step write the voltage, the current and the brightness in the log. The current column fills with 0.00, 0.01 and 0.02 (why); the coarse steps and the brightness already tell the story.
| Voltage (V) | Current (A) | LED |
|---|---|---|
| 1.50 | ||
| 1.60 | ||
| 1.70 | ||
| 1.75 | ||
| 1.80 | ||
| 1.85 | ||
| 1.90 | ||
| 1.95 | ||
| 2.00 |
Below about 1.6 V nothing happens: the LED is dark and the current display shows zero. Then the LED begins to glow, and from there on each small step in voltage multiplies the current: within about 0.1 V the display jumps from 0.00 to 0.02. Ben sees the same thing, between 4:00 and 6:00 in the video. At some step the current reaches the 20 mA limit, the C.V. lamp goes out and the C.C. lamp lights. Turn the VOLTAGE knob further: the current stays at 20 mA, the displayed voltage stops rising, and the LED keeps its brightness. The supply has taken over and holds the current at the limit.
What Ben’s LED shows us
Without a current limit, Ben’s supply holds whatever voltage he sets, and the LED takes whatever current that voltage drives through it. From 7:00 in the video, he goes a little above 2 V. The current runs from 20 mA to 300 mA within a quarter of a volt, the LED glows red-hot inside, and then it is dead.
Figure 13.3.4 is the same experiment in the Falstad circuit simulator. It starts at 1.85 V, where the simulated LED carries about 20 mA, the typical values from the datasheet. Drag the Supply voltage slider on the right and watch the current. Between 1.7 V and 2.0 V the current goes from almost nothing to far beyond the 30 mA the LED may carry. The simulated LED is a generic model, so its numbers differ a little from ours and from Ben’s, but the shape is the same.
Here lies the whole difficulty with LEDs. A resistor takes a current proportional to its voltage, a straight line in Figure 13.3.5. The LED takes almost nothing until about 1.7 V, and near its working point every 0.12 V more multiplies its current by ten,
\[ I = 20~\text{mA} \cdot 10^{(U - 1.85~\text{V})/0.12~\text{V}}, \tag{13.3.1}\]
a rule of thumb through the datasheet’s typical point. It gives 1 mA at 1.69 V and the absolute maximum of 30 mA already at 1.87 V, two hundredths of a volt above the typical point.
The forward voltage also differs from LED to LED (1.85 V typical, up to 2.5 V, says the datasheet) and falls as the LED warms up, which shifts the whole curve sideways. Setting the voltage across an LED therefore does not set its current, and a source that holds a fixed voltage across an LED, like a battery, a USB charger or an ESP32 pin, will sooner or later destroy it. The lab supply saved our LED only because we set its current limit.
Exercises
Exercise 1: The curve in numbers
Plot the current against the voltage from your log, by hand or in Python. Mark the datasheet’s typical forward voltage at 20 mA on the plot. Then use the slider in Figure 13.3.4 to find the voltages at which the simulated LED carries 1 mA, 10 mA and 30 mA. How many millivolts separate 10 mA from 30 mA?
Exercise 2: Another colour
Repeat Steps 2 to 5 with a green or blue LED, after finding its datasheet. Compare the voltage at which it reaches 20 mA with the red one. Why does the C.C. lamp tell you that the blue LED has reached its working point, even if you do not know its forward voltage?
Exercise 3: The wrong way round
Turn the LED around and repeat Step 5 up to 3 V. What do the current display and the lamps show? What would you conclude, in a larger circuit, if the supply showed a voltage but no current at all?
Kingbright, WP7113SRD/D T-1 3/4 (5mm) Solid State Lamp, Spec No DSAF2433, Rev V.9A, 2020, page 2, Absolute Maximum Ratings and Electrical / Optical Characteristics; the current against voltage graph is on page 3. kingbrightusa.com↩︎
Kingbright, WP7113SRD/D T-1 3/4 (5mm) Solid State Lamp, Spec No DSAF2433, Rev V.9A, 2020, page 2, Absolute Maximum Ratings and Electrical / Optical Characteristics; the current against voltage graph is on page 3. kingbrightusa.com↩︎