Hacker News new | ask | show | jobs
by klodolph 748 days ago
Yes—although E96 is cheap, I’m still very fond of E12. You get to keep less stock. I’ll even use two resistors rather than use something outside E12, most of the time. Maybe it’s habit?

Hell, I don’t even think all of E12 is necessary. I’ll stick to E6 most of the time.

2 comments

Being a mostly-digital electronics guy, I think 0.1, 1, 10, 100, 1k, 10k, 100k, 1M and 10M is a perfectly fine series for pretty much any usecase.

Sense resistor? 0.1 ohm.

Resistor for an LED: 100 ohm

Pull up resistor: 10k

Bias resistor for some mosfet gate: 10M

Voltage divider to measure the battery voltage with an ADC: two 100k resistors.

It's super rare I need anything else. I hate fiddling about with switching the reels on the pick'n'place anyway.

Have you tried 10 kΩ for LED and FET pull down?

100 Ω sounds like way too much current for modern LEDs. I often end up using 100 kΩ especially for green LEDs. They are very visible under indoor lighting even with 1 MΩ and 3.3 V supply.

For pulling down FETs, you want something in the range of 10 kΩ. 10 MΩ sounds way too high, which makes your circuit sensitive to being touched or affected by moisture, especially if there are near by components connected to the power rail.

My digital electronics grab bag consist of 22 mΩ for sensing, 100 kΩ for battery voltage divider, 22 kΩ for one of the 3.3 V buck converter feedback dividers, 10 kΩ for everything else like I2C pulling.

Are you sure all those numbers are in the right ballpark? With a 3.3V supply and a 1 MΩ resistor, the most current you can get from that circuit is in the neighborhood of 3μA, and that's ignoring the LED voltage drop. I would think the LED won't be visible until you're around the mA range. Or are some LEDs visible in the low μA range?
Modern LEDs light up with incredibly low currents. In a RF noisy environment, I've often seen LEDs glow just by touching one side with a wire and the other to ground. Just the parasitic from such a crude antenna was enough.

Of course as stated by another comment, our eyes are also incredible, and can pick up very faint amount of light.

human eyes are logarithmic and can easily see microamps.

In fact, just hold an LED between your fingers in a dark enough room and you'll sometimes see them glow from stray magnetic fields inducing enough current in your body to light them.

Beautiful if true!
Resistor for an LED: 100 ohm

Yeah, that's why I can read a book by the blue LEDs on my alarm clock...

https://www.3m.com/3M/en_US/p/d/b40068069/

Depending on the colour bleed though. It may wipe out all visibility of the clock numbers.

And to think a little dimming circuit with LDR/phototransistor (RoHS..) is practically electronics 101...
I do mostly analog and being off by a factor of 2 or 3 is gonna ruin your day.
How do the tolerances combine when you're using two resistors? I'm pretty sure they'd add together if in series (so two 5%'s become 10%), but I'm having trouble easily intuiting what happens if in parallel. Do they combine in the same way that resistances combine when in parallel?

edit: Actually, I'm not so sure anymore that the tolerances would add up in series... I should probably just look this stuff up, since I'm not awake enough to intuit correctly, I think.

Values (for resistors) add in series and sort of divide-average in parallel.

In either case though, the tolerance divides.

The combined tolerance becomes more accurate the more resistors there are in total, whether parallel or serial. The highs and lows, and the chances of high or low, cancel each other out and you get a final actual value that is closer to the nominal statistical center of the bell curve the more individual parts there are. (same goes for other components, just resistors are simpler to talk about because their behavior is simple.)

In series, a single 10K might really be 9K or 11K, but if you chain 10 10Ks in series, you don't get a "maybe 90K maybe 110K". That is technically possible but statistics means that what what you actually get is if there was N% chance that a given 10K is 9K or 11K, the there is 1/10th of N% chance (or less, I bet the actual equation is more complicated) that the chain of 10 is 90K or 110K. If the individual 10Ks were 10%, then you get 100K with something like 1% tolerance.

(except also in reality, there is such a thing as batches, where all the parts in a given batch are all high or low the same way, because the process was drifting a little high or low while it was cranking out thousands of them that hour. So Ideally your 10 individuals need to come from 10 different batches or even 10 different manufacturers if that were practical or in a pure math world.)

In parallel, the statistical division is the same though the value centers on the value/N rather than value*N. 10 10% 10Ks in parallel = 1 1% 1k

> or less, I bet the actual equation is more complicated

https://en.wikipedia.org/wiki/Central_limit_theorem

I’m a bit tired otherwise I’d write something more rigorous. There are different ways the central limit theorem is expressed and proved here—there are more powerful ways to state it that require more complicated proofs, and there are simpler versions that are simple to prove.

A simple version will suffice here. Treat the resistors as iid variables with finite variance σ². When you average them, the variance of the average is σ²/n. More or less… this means that if your resistors are ±10%, and you have 16 of them, you get something with (fuzzy math) ±10%/√16 = ±2.5%.

There’s a lot of unstated assumptions in what I just wrote. But you’ll see the “grows proportional to √n” a lot in stats.

If you have 2 identical resistors that are 5% over nominal and you put them in parallel, you'll get a value 5% over nominal. Example:

Suppose you had a pair of 105 Ohm resistors that are nominally 100 Ohm. In parallel you get:

1/(1/105 + 1/105) = 105/2 = 52.5 Ohm (5% over expected 50 Ohm)

If one is over nominal and the other is under, they'll cancel out for the most part:

1/(1/105 + 1/95) = 49.875 Ohm (0.25% under expected 50 Ohm)

If the resistor values are distributed as a Gaussian where the tolerance is some confidence interval, then the total resistance of resisters in series would be distributed as the sum of those Gaussians whose tolerance would be the root-sum-square of the individual tolerances: sqrt(tol1^2 + tol2^2 + ... tolN^2), or if all the tolerances are the same then sqrt(N)*tol.
In series they don't add up... doing a quick example, I find that in the worst case (e.g. each resistor out by 5% in the same direction):

22 - 5% = 20.9

47 - 5% = 44.65

Actual resistance in series: 65.55

Nominal resistance in series: 69

69 - 5% = 65.55

So the combination of the components still appears to maintain the 5% tolerance.