John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
AI resistor picker
What's the question?
Is there an AI thing that can design resistor networks?
Does anyone else have issues with designing resistor networks?
AI says it can do it. If I understood your question correctly, AI said this:
Yes, absolutely. I can design your network using only the specific resistor values you have available. Depending on your goal, I can handle this in two ways:
- Exact Combinations: If you need a specific target resistance, I can find the best series, parallel, or series-parallel combinations using only your specified stock.
- Standard E-Series Matching: If you are designing for manufacturing and want to use standard preferred values (like the E12, E24, or E96 series), I can restrict my calculations to those standard components.
To get started, tell me: What target resistance or output voltage do you need? What specific resistor values do you have available?
I will find the optimal combination or closest match for your circuit!
AI can give some really wacky results for circuits and devices. I've had to correct it on numerous occasions. Then it finally says "You're right." Things like the battery forward biases the PV cells in a charging panel, or the bubbles in datasheet logic diagram are commonly misunderstood to mean inversion. But all in all it does do a good job generally.
It'll probably be another year or two.
It's getting better at this kind of thing but I wouldn't use it for anything serious.
I'd probably do little more than look through the schematic myself to find non critical values which can be grouped such that they all use the same value such as 10k
Probably but until they can get the number of digits right on a human hand it would be unwise to trust them.
It doesn't really need AI though a brute force algorithm is plenty fast enough to find a 1% or 0.1% solution for resistor network problems. Deterministic programs can easily solve this stuff in a few ms.
What's the problem? At 1% tolerance there are only a dozen (12%) divider ratios that cannot be reached with just a pair of E12 resistors.
Your AI seems to have chosen 10+10, 8.75 to be perverse
More than 20% of the possible 0.nn ratios have more than 10 ways of realising them. 40% have just one or two choices.
I wrote a program, RUGRAT, that will find resistor ratios using what we have in stock. That can be done by brute force. More complex problems might compute for hours or weeks.
John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
That rather depends on what you have in stock.
Early in my career my then boss - one Colin Hunter - mentioned that the Kent Instruments had failed to stock an 18k resistor for years, and he'd deliberately designed a circuit that used several of them to fill the gap.
That has to be a duff program. If you want a specific resistor ratio you can't use an infinite number of resistors to get it because with even
0.1% resistors there's an upper limit on the number it's worth glomming together.
RUGRAT is very handy. It finds all 2-resistor ratios from what we have in stock.
You call it duff because your only motivation is to insult.
I have a list of all the series/parallel values and all the voltage dividers you can make from one quad r-pack too.
TI is making some insanely good thinfilm dividers lately. I need to design a product around them.
"More complex problems might compute for hours or weeks."
No resistor ratio problem is ever going to need that much iteration. If your program hangs up, it has got a fault - it's duff. Pointing this out to you may be insulting you, but you do need to know, and so does anybody else who might get stuck with the program.
<snip>
My program doesn't hang up. It typically runs for a fraction of a second and dumps tens of proposed solutions, or hundreds if you set the constraints loose. It's very valuable in real-world product design.
A two-resistor ratio finder is easy. More complex networks aren't.
Of course, BOM minimization is another factor in the game.
John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
This is what I sometimes use. You can create a list of stock resistors in a .res file and constrain the program to use that.
What algorithm did you use? This sounds like something that screams for a recursion-based program. That could explain the multi-week execution time, CPU tripping on stack overflow.
Looks nice.
It's a 2-side Yamaha, about 50 reels I think, and it can also feed from a few trays.
I guess if you make guitars and pianos and motorcycles, p+p machines is a logical next step.
RUGRAT runs in a fraction of a second and works fine.
Given the thevenin constraint, the possible resistor values are bracketed. I search the list of available resistors, pick one, and test that with all higher values in the range.
There's no point in using fancier coding to optimize a program that might run for a few seconds per month.
He said his program typically runs for a fraction of a second. Where did you get the idea it exhibits multi-week execution? John designs and sells (quite successfully) practical real world electronics that his customers need in their businesses. He would not design or use a program that took multi-weeks to eliminate what he calls a minor nuisance in his original post: "It's a minor nuisance to select resistors from what we have in stock,..."
Ed
I could just use interns.
"More complex problems might compute for hours or weeks."
That's hanging up. You may not want to admit it.
Perhaps, if you are computationally inept.
But they should reduce to a series of twp-resistor ratio finders.
It's nice, but not worth a lot of effort.
No. A more complex component value finder might have 10^15 possible solutions to explore.
John Larkin Highland Tech Glen Canyon Design Center Lunatic Fringe Electronics
It doesn't even have to be brute force. You have constraints that quickly reduce the number of candidates for particular goals.
E.g., if you want to create a value of X, then only values >= X are suitable for a paralleled resistor solution; <= X for a serial solution.
For a ratio of .X and a given R, then the other part of the divider is constrained by that .X relative to that R.
The problem comes when you want arbitrary networks.
E.g., I needed something that approximated V^2-K fed to a VCO as creating V^2 would have been silly -- when you're only reacting to the difference from V0^2. There, the criteria are: how well do you want to approximate the curve and in how many segments (cost).
Of course, classics like R-2R require very little thought.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required