2
\$\begingroup\$

Say I have to get a resistance \$R_{T}\$ and I have a bunch of resistors, \$R_1, R_2, \ldots, R_n\$.

Does there exist a tool, algorithm, or method that gets the resistance value closest to \$R_T\$ by connecting (one or more) of the resistors \$R_1, R_2, \ldots, R_n\$ in series, in parallel or a combination of those two? And how to connect those resistors to get that value? So not trial and error. :)

Thanks in advance.

\$\endgroup\$
  • \$\begingroup\$ Unfortunately for all the times I had to have matched pairs of resistors (matched to within.05%), I had to manually go through reels of resistors, which tend to slowly go up or down in value but stay within their own tolerance. \$\endgroup\$ – Sparky256 Jul 8 '16 at 20:53
  • 1
    \$\begingroup\$ jansson.us/resistors.html (seems to do what you want, but with some constraints - e.g. using standard series for Rx and only 2 in series/parallel) \$\endgroup\$ – Zuofu Jul 8 '16 at 20:55
  • \$\begingroup\$ This question makes little sense without constraints, otherwise the answer is to find \$N\$ and \$M\$ so that \$\frac{R_i}{R_T}=\frac{M}{N}\$, then connect \$N\$ resistors \$R_i\$ in series, and \$M\$ such series in parallel. \$\endgroup\$ – Dmitry Grigoryev Oct 5 '17 at 9:22
1
\$\begingroup\$

It's not clear from your question whether you have a theoretical interest in the possibility of a solution, or a practical interest on the bench of finding some resistor values that will do your job.

To find the best possible combination of Rn to Rt would, I suspect, be a Travelling Salesman problem, NP complete and needing a brute force search for the global optimum. The structure of the problem is almost identical, it's a search of all possible combinations in a discrete space. Similarly it should admit to faster sub-optimal solutions by simulated annealing or similar.

If you are after a practical solution, then it's worth starting with an often overlooked caveat that can be used to limit just how close you attempt to get these resistors to be. Most 'cooking grade' resistors have tempcos of 100 to 200ppm. That is, if you assembled a resistor to an initial tolerance of 0.001%, you could not expect it to keep that precision with changes of temperature. When you buy a precision resistor to a specific value, you are paying most of the money for the 25 or 5ppm tempco that will keep it precise.

This is the non-optimum but fairly quick and rapidly terminating method of assembling special resistor values I use. I first attempt to get to within a few percent of my target value, above when dealing with low values, below when dealing with high values, by just randomly putting resistors in series or parallel. Then I measure the resistance, and calculate the shimming resistor value needed in series or parallel. As the needed resistor is at least an order of magnitude different (as I'm within a few % of target), the precision needed in the shim is an order of magnitude less than my overall precision.

I either have something close enough to that value, or I can construct one the same way, but it's an order of magnitude easier because of the relaxed precision. This rinse and repeat process gets easier each time, and will terminate in very few steps.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.