DRV-17 LED without a series resistor or current limit¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on NET-5 |
Data it needs: graph, part classes, rails.
Looks at. LEDs (part class), the path to a rail or pin.
What it catches. An LED whose chain from a rail or GPIO to ground (or to a GPIO sinking it) contains no resistor and no constant-current driver.
Why it matters. An LED has a steep exponential I-V curve: on a voltage source the current is set only by the source's internal resistance and the LED's own, both small and unspecified. The LED or the pin driving it is overloaded, and the brightness varies wildly between parts.
Example. A red LED from a 3.3 V GPIO straight to ground: the pin sources its short-circuit current into a 2 V LED. On B200A the status LED D102 has 33 Ω in series to GPIO38 (active low); on B153A the two status LEDs have 1 kΩ each.
How to check. LEDs (by class) whose chain has no resistor and no part of a current-regulator class.
Fix. A series resistor (V − Vf) / I, or an LED driver.
References. Wikipedia, LED circuit "Basic circuit", "Series resistor"; B200A review notes §11 (D102), B153A review notes §11 (LED pins).
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRV-17 reports on it.
drv-17_led_resistor¶
error DRV-17 #jxp D1 sits between GND and /STATUS with no series resistor or current limit: only the source's own resistance sets the current
part D1
fix: a series resistor (V - Vf) / I, or an LED driver
error DRV-17 #qc6 D2 and D3 sit in series between /STRING_K and +5V with no series resistor or current limit: only the source's own resistance sets the current
part D2, part D3
fix: a series resistor (V - Vf) / I, or an LED driver