🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: sci.electronics.design
33 messages
33 total messages Started by john larkin Sat, 17 Oct 2026 16:16
AI resistor picker
#381
Author: john larkin
Date: Sat, 17 Oct 2026 16:16
13 lines
1516 bytes

https://www.dropbox.com/scl/fi/46ayzr6kb9chfe455dq4u/14S560A.pdf?rlkey=qr2y7fkoyv2z29s0wbi7hbhha&raw=1

It's a minor nuisance to select resistors from what we have in stock,
to get a circuit good enough and use networks and minimize the BOM
parts count or the cost. Not to mention PCB routability.



John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#435
Author: Someone
Date: Mon, 19 Oct 2026 18:00
5 lines
1230 bytes
What's the question?

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-resistor-picker-4418351-.htm
Re: AI resistor picker
#436
Author: john larkin
Date: Mon, 19 Oct 2026 20:00
10 lines
1529 bytes
On Mon, 19 Oct 2026 18:00:01 +0000, Someone
<864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
wrote:

>What's the question?

Is there an AI thing that can design resistor networks?

Does anyone else have issues with designing resistor networks?
Re: AI resistor picker
#443
Author: Someone
Date: Tue, 20 Oct 2026 01:45
20 lines
2514 bytes
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:

1. 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.

1. 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.

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-resistor-picker-4418351-.htm
Re: AI resistor picker
#445
Author: Edward Rawde
Date: Tue, 20 Oct 2026 01:55
22 lines
2400 bytes
"john larkin" <jl@htigct.com> wrote in message news:kjtcdlpa4b8dfqoqtoqdkul5naskmi18iu@4ax.com...
> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
> wrote:
>
>>What's the question?
>
> Is there an AI thing that can design resistor networks?

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.
https://www.google.com/search?q=Design+a+single+stage+transistor+amplifier+using+a+2N3904+with+an+input+impedance+of+more+than+10k+ohm+and+a+voltage+gain+of+roughly+5+into+100k+ohm.+Supply+voltage+is+12v.
You get a different circuit every time and an occasional ascii schematic disaster.

>
> Does anyone else have issues with designing resistor networks?

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 

Re: AI resistor picker
#478
Author: Martin Brown
Date: Wed, 21 Oct 2026 09:07
30 lines
2423 bytes
On 19/10/2026 21:00, john larkin wrote:
> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
> wrote:
> 
>> What's the question?
> 
> Is there an AI thing that can design resistor networks?

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.

> Does anyone else have issues with designing resistor networks?

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.

-- 
Martin Brown
Re: AI resistor picker
#491
Author: john larkin
Date: Wed, 21 Oct 2026 15:23
46 lines
2921 bytes
On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
<'''newspam'''@nonad.co.uk> wrote:

>On 19/10/2026 21:00, john larkin wrote:
>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>> wrote:
>> 
>>> What's the question?
>> 
>> Is there an AI thing that can design resistor networks?
>
>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.
>
>> Does anyone else have issues with designing resistor networks?
>
>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.

https://www.dropbox.com/scl/fi/cb2gzpb8ll60wyhmaj6gk/Rugrat.jpg?rlkey=9fxlf3255j4y7cl4aap6wo7ye&raw=1

Sometimes I just Spice a network and fiddle and hope to get lucky. But
I do have to select a topology first.





John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#496
Author: Bill Sloman
Date: Wed, 21 Oct 2026 16:09
50 lines
3481 bytes
On 22/10/2026 2:23 am, john larkin wrote:
> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
> <'''newspam'''@nonad.co.uk> wrote:
> 
>> On 19/10/2026 21:00, john larkin wrote:
>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>> wrote:
>>>
>>>> What's the question?
>>>
>>> Is there an AI thing that can design resistor networks?
>>
>> 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.
>>
>>> Does anyone else have issues with designing resistor networks?
>>
>> 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 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 can be done by brute force. More complex problems might compute
 > for hours or weeks.

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.

-- 
Bill Sloman, Sydney
Re: AI resistor picker
#503
Author: john larkin
Date: Wed, 21 Oct 2026 17:59
62 lines
3790 bytes
On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:

>On 22/10/2026 2:23 am, john larkin wrote:
>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>> <'''newspam'''@nonad.co.uk> wrote:
>> 
>>> On 19/10/2026 21:00, john larkin wrote:
>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>> wrote:
>>>>
>>>>> What's the question?
>>>>
>>>> Is there an AI thing that can design resistor networks?
>>>
>>> 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.
>>>
>>>> Does anyone else have issues with designing resistor networks?
>>>
>>> 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 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 can be done by brute force. More complex problems might compute
> > for hours or weeks.
>
>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.

 
Re: AI resistor picker
#520
Author: Bill Sloman
Date: Thu, 22 Oct 2026 03:23
68 lines
4191 bytes
On 22/10/2026 4:59 am, john larkin wrote:
> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 22/10/2026 2:23 am, john larkin wrote:
>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>> <'''newspam'''@nonad.co.uk> wrote:
>>>
>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>> wrote:
>>>>>
>>>>>> What's the question?
>>>>>
>>>>> Is there an AI thing that can design resistor networks?
>>>>
>>>> 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.
>>>>
>>>>> Does anyone else have issues with designing resistor networks?
>>>>
>>>> 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 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 can be done by brute force. More complex problems might compute
>>> for hours or weeks.
>>
>> 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.

  "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>

-- 
Bill Sloman, Sydney
Re: AI resistor picker
#521
Author: john larkin
Date: Thu, 22 Oct 2026 03:36
81 lines
4669 bytes
On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:

>On 22/10/2026 4:59 am, john larkin wrote:
>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>
>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>> wrote:
>>>>>>
>>>>>>> What's the question?
>>>>>>
>>>>>> Is there an AI thing that can design resistor networks?
>>>>>
>>>>> 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.
>>>>>
>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>
>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>> for hours or weeks.
>>>
>>> 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.
>
>  "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
Re: AI resistor picker
#531
Author: JM
Date: Thu, 22 Oct 2026 19:05
14 lines
1861 bytes
On Wed, 21 Oct 2026 08:23:50 -0700, john larkin <jl@glen--canyon.com>
wrote:


>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.

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.

https://jahonen.kapsi.fi/Electronics/ResOptimizer/

How many reels can your P&P handle?
Re: AI resistor picker
#533
Author: Someone
Date: Thu, 22 Oct 2026 19:30
5 lines
1731 bytes
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.

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-resistor-picker-4418351-.htm
Re: AI resistor picker
#534
Author: john larkin
Date: Thu, 22 Oct 2026 19:33
27 lines
2201 bytes
On Thu, 22 Oct 2026 20:05:47 +0100, JM
<sunaecoNoChoppedPork@gmail.com> wrote:

>On Wed, 21 Oct 2026 08:23:50 -0700, john larkin <jl@glen--canyon.com>
>wrote:
>
>
>>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.
>
>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.
>
>https://jahonen.kapsi.fi/Electronics/ResOptimizer/

Looks nice.

>
>How many reels can your P&P handle?

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.
Re: AI resistor picker
#535
Author: john larkin
Date: Thu, 22 Oct 2026 20:12
15 lines
2255 bytes
On Thu, 22 Oct 2026 19:30:02 +0000, Someone
<864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
wrote:

>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.

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.
Re: AI resistor picker
#536
Author: ehsjr
Date: Thu, 22 Oct 2026 20:17
18 lines
2451 bytes
On 10/22/2026 3:30 PM, Someone wrote:
> 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.
> 

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

Re: AI resistor picker
#537
Author: john larkin
Date: Thu, 22 Oct 2026 21:07
22 lines
2404 bytes
On Thu, 22 Oct 2026 16:17:58 -0400, ehsjr <ehsjr@verizon.net> wrote:

>On 10/22/2026 3:30 PM, Someone wrote:
>> 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.
>> 
>
>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.
Re: AI resistor picker
#538
Author: Bill Sloman
Date: Fri, 23 Oct 2026 00:43
93 lines
5260 bytes
On 22/10/2026 2:36 pm, john larkin wrote:
> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 22/10/2026 4:59 am, john larkin wrote:
>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>> wrote:
>>>
>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>
>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> What's the question?
>>>>>>>
>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>
>>>>>> 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.
>>>>>>
>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>
>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>> for hours or weeks.
>>>>
>>>> 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.
>>
>>   "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.

"More complex problems might compute for hours or weeks."

That's hanging up. You may not want to admit it.

> 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.

Perhaps, if you are computationally inept.

> A two-resistor ratio finder is easy. More complex networks aren't.

But they should reduce to a series of twp-resistor ratio finders.

> Of course, BOM minimization is another factor in the game.

It's nice, but not worth a lot of effort.

-- 
Bill Sloman, Sdney
Re: AI resistor picker
#539
Author: john larkin
Date: Fri, 23 Oct 2026 02:02
85 lines
4915 bytes
On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:

>On 22/10/2026 2:36 pm, john larkin wrote:
>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>> wrote:
>>>>
>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>
>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> What's the question?
>>>>>>>>
>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>
>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>> for hours or weeks.
>>>>>
>>>>> 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.
>>>
>>>   "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.
>
>"More complex problems might compute for hours or weeks."
>
>That's hanging up. You may not want to admit it.

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
Re: AI resistor picker
#540
Author: Don Y
Date: Fri, 23 Oct 2026 02:24
37 lines
2857 bytes
On 10/21/2026 2:07 AM, Martin Brown wrote:
> 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.

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.

>> Does anyone else have issues with designing resistor networks?
> 
> 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.

Re: AI resistor picker
#541
Author: Don Y
Date: Fri, 23 Oct 2026 02:28
16 lines
2222 bytes
On 10/22/2026 12:05 PM, JM wrote:
> 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.
> 
> https://jahonen.kapsi.fi/Electronics/ResOptimizer/
But, does it naively brute force the solution?  Or, is it smart enough
to realize many candidates need not be evaluated?

[Granted, "evaluation" is trivial -- but that doesn't justify
using a crude/stupid algorithm as you likely would want to
reuse such an algorithm for other (potentially more complex)
problems in the future]

You're creating families of graphs.  You can realize the shape of
a graph and know that "further efforts in THAT direction will
produce worse results"
Re: AI resistor picker
#543
Author: Martin Brown
Date: Fri, 23 Oct 2026 10:07
48 lines
3523 bytes
On 23/10/2026 03:02, john larkin wrote:
> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 22/10/2026 2:36 pm, john larkin wrote:
>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>> wrote:
>>>
>>>> On 22/10/2026 4:59 am, john larkin wrote:

>>>>> 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.
>>>>
>>>>    "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.
>>
>> "More complex problems might compute for hours or weeks."
>>
>> That's hanging up. You may not want to admit it.
> 
> No. A more complex component value finder might have 10^15 possible
> solutions to explore.

Only if you don't prune out the no hopers early on. Greedy method tend 
to work well for engineering problems where good enough is typically 1% 
or 0.1%. Even gaming the system by choosing pairs of close values to add 
together in series or parallel in the hope of having a slightly lower 
error in the ratio by ~sqrt(2) doesn't affect things by much.

How many components in a network does it take to make it take *so* long?

E96 is the most extensive resistor range add 4 for good luck = 100 and 
you are implying with 10^15 solutions to explore that you attack a 7 to 
8 component problem with pure brute force and nothing else.

-- 
Martin Brown
Re: AI resistor picker
#545
Author: Bill Sloman
Date: Fri, 23 Oct 2026 13:40
95 lines
5745 bytes
On 23/10/2026 1:02 pm, john larkin wrote:
> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 22/10/2026 2:36 pm, john larkin wrote:
>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>> wrote:
>>>
>>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>> wrote:
>>>>>
>>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>
>>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> What's the question?
>>>>>>>>>
>>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>>
>>>>>>>> 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.
>>>>>>>>
>>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>>
>>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>>> for hours or weeks.
>>>>>>
>>>>>> 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.
>>>>
>>>>    "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.
>>
>> "More complex problems might compute for hours or weeks."
>>
>> That's hanging up. You may not want to admit it.
> 
> No. A more complex component value finder might have 10^15 possible
> solutions to explore.

A more competent component value finder would include a tree-pruning 
algorithm to delete most of them. You really don't want to explore most 
of the solution space.

It's theoretically impossible to prove that an alogorithm will stop in a 
finite numbers of step (if you don't count them and impose a limit). 
Alan Turing got famous for proving it, but you do need to design 
practical programs so that they don't spend a lot of time in pointless 
optimisation or creating imperceptible improvements.

-- 
Bill Sloman, Sydney
Re: AI resistor picker
#547
Author: john larkin
Date: Fri, 23 Oct 2026 15:39
68 lines
4307 bytes
On Fri, 23 Oct 2026 11:07:56 +0100, Martin Brown
<'''newspam'''@nonad.co.uk> wrote:

>On 23/10/2026 03:02, john larkin wrote:
>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>> wrote:
>>>>
>>>>> On 22/10/2026 4:59 am, john larkin wrote:
>
>>>>>> 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.
>>>>>
>>>>>    "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.
>>>
>>> "More complex problems might compute for hours or weeks."
>>>
>>> That's hanging up. You may not want to admit it.
>> 
>> No. A more complex component value finder might have 10^15 possible
>> solutions to explore.
>
>Only if you don't prune out the no hopers early on. Greedy method tend 
>to work well for engineering problems where good enough is typically 1% 
>or 0.1%. Even gaming the system by choosing pairs of close values to add 
>together in series or parallel in the hope of having a slightly lower 
>error in the ratio by ~sqrt(2) doesn't affect things by much.
>
>How many components in a network does it take to make it take *so* long?
>
>E96 is the most extensive resistor range add 4 for good luck = 100 and 
>you are implying with 10^15 solutions to explore that you attack a 7 to 
>8 component problem with pure brute force and nothing else.

As serious board has a 30-sheet schematic and 1000 parts. One can
juggle not just parts values, but circuit topologies and parts sizes.
And consider bypassing, prop delays, crosstalk, thermals, currents,
ground loops, layer count, and cost. And trade off between single
resistors and quad packs, with associated routability issues. And do
BOM and feeder minimization. Use parts that are already in stock.

It's amazing that human brains can be pretty good at all that.

I woke up at 5AM with an idea of improving this layout. It's dense
enough that most any change has a bunch of side effects.

https://www.dropbox.com/scl/fi/chg4tzmhwku1uzjnssoit/R256_A6_Oct_21.jpg?rlkey=90k0p16w2l2baifn1j5eg83qo&raw=1




John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#550
Author: john larkin
Date: Fri, 23 Oct 2026 15:46
109 lines
6002 bytes
On Sat, 24 Oct 2026 00:40:48 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:

>On 23/10/2026 1:02 pm, john larkin wrote:
>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>> wrote:
>>>>
>>>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>> wrote:
>>>>>>
>>>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>
>>>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> What's the question?
>>>>>>>>>>
>>>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>>>
>>>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>>>
>>>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>>>> for hours or weeks.
>>>>>>>
>>>>>>> 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.
>>>>>
>>>>>    "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.
>>>
>>> "More complex problems might compute for hours or weeks."
>>>
>>> That's hanging up. You may not want to admit it.
>> 
>> No. A more complex component value finder might have 10^15 possible
>> solutions to explore.
>
>A more competent component value finder would include a tree-pruning 
>algorithm to delete most of them. You really don't want to explore most 
>of the solution space.

RUGRAT works fine. The pruning mechanism is the input limits.

I can specify limits that find a thousand resistor pairs, or none. My
choice.

>
>It's theoretically impossible to prove that an alogorithm will stop in a 
>finite numbers of step (if you don't count them and impose a limit). 

It stops when it has logged every possible pair that meets the input
constraints.


>Alan Turing got famous for proving it, but you do need to design 
>practical programs so that they don't spend a lot of time in pointless 
>optimisation or creating imperceptible improvements.

John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#556
Author: piglet
Date: Fri, 23 Oct 2026 21:53
52 lines
3633 bytes
Martin Brown <'''newspam'''@nonad.co.uk> wrote:
> On 23/10/2026 03:02, john larkin wrote:
>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>> wrote:
>>>> 
>>>>> On 22/10/2026 4:59 am, john larkin wrote:
> 
>>>>>> 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.
>>>>> 
>>>>> "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.
>>> 
>>> "More complex problems might compute for hours or weeks."
>>> 
>>> That's hanging up. You may not want to admit it.
>> 
>> No. A more complex component value finder might have 10^15 possible
>> solutions to explore.
> 
> Only if you don't prune out the no hopers early on. Greedy method tend 
> to work well for engineering problems where good enough is typically 1% 
> or 0.1%. Even gaming the system by choosing pairs of close values to add 
> together in series or parallel in the hope of having a slightly lower 
> error in the ratio by ~sqrt(2) doesn't affect things by much.
> 
> How many components in a network does it take to make it take *so* long?
> 
> E96 is the most extensive resistor range add 4 for good luck = 100 and 
> you are implying with 10^15 solutions to explore that you attack a 7 to 
> 8 component problem with pure brute force and nothing else.
> 

E192 is even more extensive :)


-- 
piglet
Re: AI resistor picker
#559
Author: Bill Sloman
Date: Sat, 24 Oct 2026 04:45
112 lines
6383 bytes
On 24/10/2026 2:46 am, john larkin wrote:
> On Sat, 24 Oct 2026 00:40:48 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 23/10/2026 1:02 pm, john larkin wrote:
>>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>>> wrote:
>>>
>>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>> wrote:
>>>>>
>>>>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>>
>>>>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> What's the question?
>>>>>>>>>>>
>>>>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>>>>
>>>>>>>>>> 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.
>>>>>>>>>>
>>>>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>>>>
>>>>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>>>>> for hours or weeks.
>>>>>>>>
>>>>>>>> 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.
>>>>>>
>>>>>>     "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.
>>>>
>>>> "More complex problems might compute for hours or weeks."
>>>>
>>>> That's hanging up. You may not want to admit it.
>>>
>>> No. A more complex component value finder might have 10^15 possible
>>> solutions to explore.
>>
>> A more competent component value finder would include a tree-pruning
>> algorithm to delete most of them. You really don't want to explore most
>> of the solution space.
> 
> RUGRAT works fine. The pruning mechanism is the input limits.
> 
> I can specify limits that find a thousand resistor pairs, or none. My
> choice.
> 
>>
>> It's theoretically impossible to prove that an alogorithm will stop in a
>> finite numbers of step (if you don't count them and impose a limit).
> 
> It stops when it has logged every possible pair that meets the input
> constraints.

But it should stop as soon as it gets to a pair that is within tolerance 
of the input constraint. Each of the resistors in a pair will have a 
tolerance, and these can be used to  put a tolerance on the ratio generated.

<snip>

-- 
Bill Sloman, Sydney

Re: AI resistor picker
#558
Author: john larkin
Date: Sat, 24 Oct 2026 15:06
121 lines
6552 bytes
On Sat, 24 Oct 2026 15:45:33 +1100, Bill Sloman <bill.sloman@ieee.org>
wrote:

>On 24/10/2026 2:46 am, john larkin wrote:
>> On Sat, 24 Oct 2026 00:40:48 +1100, Bill Sloman <bill.sloman@ieee.org>
>> wrote:
>> 
>>> On 23/10/2026 1:02 pm, john larkin wrote:
>>>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>> wrote:
>>>>
>>>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>> wrote:
>>>>>>
>>>>>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>>>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>>>
>>>>>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> What's the question?
>>>>>>>>>>>>
>>>>>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>>>>>
>>>>>>>>>>> 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.
>>>>>>>>>>>
>>>>>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>>>>>
>>>>>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>>>>>> for hours or weeks.
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>
>>>>>>>     "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.
>>>>>
>>>>> "More complex problems might compute for hours or weeks."
>>>>>
>>>>> That's hanging up. You may not want to admit it.
>>>>
>>>> No. A more complex component value finder might have 10^15 possible
>>>> solutions to explore.
>>>
>>> A more competent component value finder would include a tree-pruning
>>> algorithm to delete most of them. You really don't want to explore most
>>> of the solution space.
>> 
>> RUGRAT works fine. The pruning mechanism is the input limits.
>> 
>> I can specify limits that find a thousand resistor pairs, or none. My
>> choice.
>> 
>>>
>>> It's theoretically impossible to prove that an alogorithm will stop in a
>>> finite numbers of step (if you don't count them and impose a limit).
>> 
>> It stops when it has logged every possible pair that meets the input
>> constraints.
>
>But it should stop as soon as it gets to a pair that is within tolerance 
>of the input constraint. Each of the resistors in a pair will have a 
>tolerance, and these can be used to  put a tolerance on the ratio generated.
>
><snip>

No, I want to see them all. I wrote the program to do exactly what it
does.

Feel free to write your own program to select resistors from your
stock.


John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#566
Author: Bill Sloman
Date: Sun, 25 Oct 2026 03:50
134 lines
7565 bytes
On 25/10/2026 2:06 am, john larkin wrote:
> On Sat, 24 Oct 2026 15:45:33 +1100, Bill Sloman <bill.sloman@ieee.org>
> wrote:
> 
>> On 24/10/2026 2:46 am, john larkin wrote:
>>> On Sat, 24 Oct 2026 00:40:48 +1100, Bill Sloman <bill.sloman@ieee.org>
>>> wrote:
>>>
>>>> On 23/10/2026 1:02 pm, john larkin wrote:
>>>>> On Fri, 23 Oct 2026 11:43:52 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>> wrote:
>>>>>
>>>>>> On 22/10/2026 2:36 pm, john larkin wrote:
>>>>>>> On Thu, 22 Oct 2026 14:23:58 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> On 22/10/2026 4:59 am, john larkin wrote:
>>>>>>>>> On Thu, 22 Oct 2026 03:09:16 +1100, Bill Sloman <bill.sloman@ieee.org>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> On 22/10/2026 2:23 am, john larkin wrote:
>>>>>>>>>>> On Wed, 21 Oct 2026 10:07:05 +0100, Martin Brown
>>>>>>>>>>> <'''newspam'''@nonad.co.uk> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> On 19/10/2026 21:00, john larkin wrote:
>>>>>>>>>>>>> On Mon, 19 Oct 2026 18:00:01 +0000, Someone
>>>>>>>>>>>>> <864c855e3d64399dc06fa30ebb75526c2c2e73db7216b16a3d4cf03e8a52ec3b@example.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> What's the question?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Is there an AI thing that can design resistor networks?
>>>>>>>>>>>>
>>>>>>>>>>>> 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.
>>>>>>>>>>>>
>>>>>>>>>>>>> Does anyone else have issues with designing resistor networks?
>>>>>>>>>>>>
>>>>>>>>>>>> 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 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 can be done by brute force. More complex problems might compute
>>>>>>>>>>> for hours or weeks.
>>>>>>>>>>
>>>>>>>>>> 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.
>>>>>>>>
>>>>>>>>      "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.
>>>>>>
>>>>>> "More complex problems might compute for hours or weeks."
>>>>>>
>>>>>> That's hanging up. You may not want to admit it.
>>>>>
>>>>> No. A more complex component value finder might have 10^15 possible
>>>>> solutions to explore.
>>>>
>>>> A more competent component value finder would include a tree-pruning
>>>> algorithm to delete most of them. You really don't want to explore most
>>>> of the solution space.
>>>
>>> RUGRAT works fine. The pruning mechanism is the input limits.
>>>
>>> I can specify limits that find a thousand resistor pairs, or none. My
>>> choice.
>>>
>>>>
>>>> It's theoretically impossible to prove that an alogorithm will stop in a
>>>> finite numbers of step (if you don't count them and impose a limit).
>>>
>>> It stops when it has logged every possible pair that meets the input
>>> constraints.
>>
>> But it should stop as soon as it gets to a pair that is within tolerance
>> of the input constraint. Each of the resistors in a pair will have a
>> tolerance, and these can be used to  put a tolerance on the ratio generated.
>>
>> <snip>
> 
> No, I want to see them all. I wrote the program to do exactly what it
> does.

And you shouldn't want to see them all - it's a waste of time.

And you didn't write the program so the  "More complex problems might 
compute for hours or weeks." That was just an incidental result of your 
incompetence.

> Feel free to write your own program to select resistors from your
> stock.

I never felt the need. A decent hand calculator and access to the 
component data base was all I ever needed. It's a sort of intellectually 
interesting problem, but I'd need a more constrained problem for it to 
be worth trying to solve. John Larkin's list of the resistors he's got 
in stock isn't an accessible constraint, and restricting yourself to 
just what you have got in stock isn't a defensible constraint either.

-- 
Bill Sloman, Sydney
Re: AI resistor picker
#629
Author: someone
Date: Thu, 29 Oct 2026 05:45
355 lines
12251 bytes
Do you care if your schematic, or portions thereof, end up in the cloud?

As a test case, I created a schematic for the "interesting regulator"
Automotive sensor power supply without a switching pre-regulator by Vishwas Vaidya

( With a slight refinement to achieve 60dB input bus ripple rejection, and got rid of the KF capacitor. Also found he transposed the values for R6 and R5 which doesn't work at all)

then munged the resistor values off standard E-24

applied an algorithm to clean up the resistors to closest E-24 values.

The program executes in a flash.

Here is the original schema with munged resistors, making them candidates for replacement with standard values;

Version 4
SHEET 1 2732 1280
WIRE -224 48 -352 48
WIRE -32 48 -160 48
WIRE 144 48 -32 48
WIRE 304 48 144 48
WIRE 608 48 400 48
WIRE 704 48 608 48
WIRE 832 48 784 48
WIRE 912 48 832 48
WIRE 1200 48 976 48
WIRE 1472 48 1200 48
WIRE 1632 48 1472 48
WIRE -32 112 -32 48
WIRE 144 112 144 48
WIRE 608 112 608 48
WIRE 1200 144 1200 48
WIRE 352 176 352 112
WIRE 560 176 352 176
WIRE 832 176 832 48
WIRE 832 176 656 176
WIRE -352 256 -352 48
WIRE -32 272 -32 192
WIRE 144 320 144 192
WIRE 144 320 32 320
WIRE 784 320 144 320
WIRE 784 368 784 320
WIRE 960 416 848 416
WIRE 1072 416 960 416
WIRE 1200 416 1200 224
WIRE 1200 416 1152 416
WIRE 1344 416 1200 416
WIRE -32 432 -32 368
WIRE 784 512 784 464
WIRE 1344 528 1344 416
WIRE 1472 528 1472 48
WIRE -32 544 -32 512
WIRE 352 544 352 176
WIRE 352 544 -32 544
WIRE 960 560 960 416
WIRE -32 576 -32 544
WIRE 784 608 784 576
WIRE 896 608 784 608
WIRE 1200 608 1200 416
WIRE 784 672 784 608
WIRE -32 704 -32 640
WIRE -352 784 -352 336
WIRE -32 784 -32 768
WIRE -32 784 -352 784
WIRE 464 784 -32 784
WIRE 784 784 784 752
WIRE 784 784 464 784
WIRE 960 784 960 656
WIRE 960 784 784 784
WIRE 1200 784 1200 688
WIRE 1200 784 960 784
WIRE 1344 784 1344 608
WIRE 1344 784 1200 784
WIRE 1472 784 1472 608
WIRE 1472 784 1344 784
WIRE 464 864 464 784
FLAG 464 864 0
FLAG 1632 48 out
IOPIN 1632 48 Out
DATAFLAG 496 48 "round($*1k)/1k"
DATAFLAG 256 320 "round($*1k)/1k"
DATAFLAG 160 544 "round($*1k)/1k"
DATAFLAG 1472 48 "round($*1k)/1k"
DATAFLAG 160 48 "round($*1k)/1k"
DATAFLAG -32 656 "round(I(D2)*1M)/1M"
SYMBOL res -48 96 R0
SYMATTR InstName R7
SYMATTR Value 510.125
SYMBOL res 128 96 R0
SYMATTR InstName R6
SYMATTR Value 6.825k
SYMBOL pnp 32 368 R180
SYMATTR InstName Q4
SYMATTR Value MPSA92
SYMBOL res -48 416 R0
SYMATTR InstName R8
SYMATTR Value 100.125
SYMBOL zener -16 640 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D2
SYMATTR Value 1N4735
SYMBOL diode -48 704 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL npn 304 112 R270
WINDOW 0 73 24 Left 2
WINDOW 3 74 74 Left 2
SYMATTR InstName Q1
SYMATTR Value MPSA42
SYMBOL npn 560 112 M90
SYMATTR InstName Q2
SYMATTR Value MPSA42
SYMBOL res 688 32 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 38 54 VTop 2
SYMATTR InstName R4
SYMATTR Value 10.125
SYMBOL schottky 912 64 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value RB521CS-30L
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 1184 128 R0
SYMATTR InstName R1
SYMATTR Value 1.0125K
SYMBOL res 1184 592 R0
SYMATTR InstName R2
SYMATTR Value 1.0125K
SYMBOL res 1168 400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 38 55 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL npn 848 368 M0
SYMATTR InstName Q3
SYMATTR Value MPSA42
SYMBOL voltage -352 240 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
WINDOW 3 24 96 Invisible 2
SYMATTR SpiceLine Rser=0.01
SYMATTR Value PULSE(13.6 73.6 0 100u 500m 100u 750m 1)
SYMATTR InstName V1
SYMBOL voltage 1344 512 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 3.5V
SYMBOL res 768 656 R0
SYMATTR InstName R5
SYMATTR Value 1.2125K
SYMBOL diode -224 64 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D5
SYMATTR Value 1N4007
SYMBOL current 1472 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I1
SYMATTR Value 20m
SYMBOL npn 896 560 R0
SYMATTR InstName Q5
SYMATTR Value MPSA42
SYMBOL diode 768 512 R0
SYMATTR InstName D4
TEXT -376 1224 Left 2 !.op I1 0 75m 5m
TEXT 1504 664 Left 2 !;dc I1 0 75m 5m
TEXT -368 936 Left 2 !.model MPSA42 NPN (Is=34.9f Xti=3 Eg=1.11 Vaf=100 Bf=2.65K Ne=1.708 Ise=16.32p Ikf=23.79m Xtb=1.5 Br=9.769 Nc=2 Isc=0 Ikr=0 Rc=7 Cjc=14.23p Mjc=.5489 Vjc=.75 Fc=.5 Cje=49.62p Mje=.4136 Vje=.75 Tr=934.3p Tf=1.69n Itf=5 Vtf=20 Xtf=150 Rb=10)
TEXT -368 992 Left 2 !.model MPSA92 PNP (Is=1.31f Xti=3 Eg=1.11 Vaf=100 Bf=183.1 Ne=1.312 Ise=1.31f Ikf=.1507 Xtb=1.5 Br=4.249 Nc=2 Isc=0 Ikr=0 Rc=4.4 Cjc=18.15p Mjc=.4936 Vjc=.75 Fc=.5 Cje=28.15p Mje=.4161 Vje=.75 Tr=11.23n Tf=1.708n Itf=1 Vtf=10 Xtf=2 Rb=10)
TEXT -368 1040 Left 2 !.model 1N4007 D (IS=76.9p RS=42.0m BV=1.00k IBV=5.00u CJO=26.5p M=0.333 N=1.45 TT=4.32u)
TEXT -368 1096 Left 2 !.model RB521CS-30L D (Is=2.27u Rs=0.68 N=1.19 Cjo=21.5p M=0.33 Vj=0.65 Fc=0.5 Bv=30 Ibv=100u Eg=0.69 Xti=2)
TEXT -376 1264 Left 2 !;tran 750m
TEXT -368 1144 Left 2 !.model 1N4735 D(Is=5.205n Rs=.4763 N=1.28 Cjo=180p M=.3333 Vj=.75 Isr=1.317u Nr=3.097 Bv=6.2 Ibv=41m)

Here is the instantaneously cleaned-up version:

Version 4
SHEET 1 2732 1280
WIRE -224 48 -352 48
WIRE -32 48 -160 48
WIRE 144 48 -32 48
WIRE 304 48 144 48
WIRE 608 48 400 48
WIRE 704 48 608 48
WIRE 832 48 784 48
WIRE 912 48 832 48
WIRE 1200 48 976 48
WIRE 1472 48 1200 48
WIRE 1632 48 1472 48
WIRE -32 112 -32 48
WIRE 144 112 144 48
WIRE 608 112 608 48
WIRE 1200 144 1200 48
WIRE 352 176 352 112
WIRE 560 176 352 176
WIRE 832 176 832 48
WIRE 832 176 656 176
WIRE -352 256 -352 48
WIRE -32 272 -32 192
WIRE 144 320 144 192
WIRE 144 320 32 320
WIRE 784 320 144 320
WIRE 784 368 784 320
WIRE 960 416 848 416
WIRE 1072 416 960 416
WIRE 1200 416 1200 224
WIRE 1200 416 1152 416
WIRE 1344 416 1200 416
WIRE -32 432 -32 368
WIRE 784 512 784 464
WIRE 1344 528 1344 416
WIRE 1472 528 1472 48
WIRE -32 544 -32 512
WIRE 352 544 352 176
WIRE 352 544 -32 544
WIRE 960 560 960 416
WIRE -32 576 -32 544
WIRE 784 608 784 576
WIRE 896 608 784 608
WIRE 1200 608 1200 416
WIRE 784 672 784 608
WIRE -32 704 -32 640
WIRE -352 784 -352 336
WIRE -32 784 -32 768
WIRE -32 784 -352 784
WIRE 464 784 -32 784
WIRE 784 784 784 752
WIRE 784 784 464 784
WIRE 960 784 960 656
WIRE 960 784 784 784
WIRE 1200 784 1200 688
WIRE 1200 784 960 784
WIRE 1344 784 1344 608
WIRE 1344 784 1200 784
WIRE 1472 784 1472 608
WIRE 1472 784 1344 784
WIRE 464 864 464 784
FLAG 464 864 0
FLAG 1632 48 out
IOPIN 1632 48 Out
DATAFLAG 496 48 "round($*1k)/1k"
DATAFLAG 256 320 "round($*1k)/1k"
DATAFLAG 160 544 "round($*1k)/1k"
DATAFLAG 1472 48 "round($*1k)/1k"
DATAFLAG 160 48 "round($*1k)/1k"
DATAFLAG -32 656 "round(I(D2)*1M)/1M"
SYMBOL res -48 96 R0
SYMATTR InstName R7
SYMATTR Value 510
SYMBOL res 128 96 R0
SYMATTR InstName R6
SYMATTR Value 6.8k
SYMBOL pnp 32 368 R180
SYMATTR InstName Q4
SYMATTR Value MPSA92
SYMBOL res -48 416 R0
SYMATTR InstName R8
SYMATTR Value 100
SYMBOL zener -16 640 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D2
SYMATTR Value 1N4735
SYMBOL diode -48 704 R0
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL npn 304 112 R270
WINDOW 0 73 24 Left 2
WINDOW 3 74 74 Left 2
SYMATTR InstName Q1
SYMATTR Value MPSA42
SYMBOL npn 560 112 M90
SYMATTR InstName Q2
SYMATTR Value MPSA42
SYMBOL res 688 32 M90
WINDOW 0 0 56 VBottom 2
WINDOW 3 38 54 VTop 2
SYMATTR InstName R4
SYMATTR Value 10
SYMBOL schottky 912 64 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value RB521CS-30L
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 1184 128 R0
SYMATTR InstName R1
SYMATTR Value 1K
SYMBOL res 1184 592 R0
SYMATTR InstName R2
SYMATTR Value 1K
SYMBOL res 1168 400 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 38 55 VTop 2
SYMATTR InstName R3
SYMATTR Value 10K
SYMBOL npn 848 368 M0
SYMATTR InstName Q3
SYMATTR Value MPSA42
SYMBOL voltage -352 240 R0
WINDOW 123 0 0 Left 0
WINDOW 39 24 124 Left 2
WINDOW 3 24 96 Invisible 2
SYMATTR SpiceLine Rser=0.01
SYMATTR Value PULSE(13.6 73.6 0 100u 500m 100u 750m 1)
SYMATTR InstName V1
SYMBOL voltage 1344 512 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value 3.5V
SYMBOL res 768 656 R0
SYMATTR InstName R5
SYMATTR Value 1.2K
SYMBOL diode -224 64 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D5
SYMATTR Value 1N4007
SYMBOL current 1472 528 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName I1
SYMATTR Value 20m
SYMBOL npn 896 560 R0
SYMATTR InstName Q5
SYMATTR Value MPSA42
SYMBOL diode 768 512 R0
SYMATTR InstName D4
TEXT -376 1224 Left 2 !.op I1 0 75m 5m
TEXT 1504 664 Left 2 !;dc I1 0 75m 5m
TEXT -368 936 Left 2 !.model MPSA42 NPN (Is=34.9f Xti=3 Eg=1.11 Vaf=100 Bf=2.65K Ne=1.708 Ise=16.32p Ikf=23.79m Xtb=1.5 Br=9.769 Nc=2 Isc=0 Ikr=0 Rc=7 Cjc=14.23p Mjc=.5489 Vjc=.75 Fc=.5 Cje=49.62p Mje=.4136 Vje=.75 Tr=934.3p Tf=1.69n Itf=5 Vtf=20 Xtf=150 Rb=10)
TEXT -368 992 Left 2 !.model MPSA92 PNP (Is=1.31f Xti=3 Eg=1.11 Vaf=100 Bf=183.1 Ne=1.312 Ise=1.31f Ikf=.1507 Xtb=1.5 Br=4.249 Nc=2 Isc=0 Ikr=0 Rc=4.4 Cjc=18.15p Mjc=.4936 Vjc=.75 Fc=.5 Cje=28.15p Mje=.4161 Vje=.75 Tr=11.23n Tf=1.708n Itf=1 Vtf=10 Xtf=2 Rb=10)
TEXT -368 1040 Left 2 !.model 1N4007 D (IS=76.9p RS=42.0m BV=1.00k IBV=5.00u CJO=26.5p M=0.333 N=1.45 TT=4.32u)
TEXT -368 1096 Left 2 !.model RB521CS-30L D (Is=2.27u Rs=0.68 N=1.19 Cjo=21.5p M=0.33 Vj=0.65 Fc=0.5 Bv=30 Ibv=100u Eg=0.69 Xti=2)
TEXT -376 1264 Left 2 !;tran 750m
TEXT -368 1144 Left 2 !.model 1N4735 D(Is=5.205n Rs=.4763 N=1.28 Cjo=180p M=.3333 Vj=.75 Isr=1.317u Nr=3.097 Bv=6.2 Ibv=41m)

Functionally, this establishes a route to using what's called an "inventory bound" file for the calculations in place of standard spec of using the full E-24 line.

This has been expanded to use series/parallel combinations of resistors from the inventory file (text file with one value per line).
All the resistors are recalculated, and you have the option of replacement on the schematic or not. If you choose not to replace, which may be the wiser decision, the program outputs a table of the results for each resistor, the combination of inventory resistors used for a prospective replacement, and an error for the replacement deviation from the schematic value. So you can pick and choose which one you want, or change, or leave alone. If you choose to replace, the program will alter the resistor's attribute spec with the pseudo c-code, which lets you quickly simulate to verify everything is hunky-dory. The actual drawing is not altered.

This approach seems like the most universal way to go since all your circuits originate with a schematic. And you avoid some app mess with hundreds of possible input directives.

Let me know if you want to pursue it further. I have no use for it, so this is as far as I go.

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-resistor-picker-4418351-.htm
Re: AI resistor picker
#632
Author: john larkin
Date: Thu, 29 Oct 2026 11:02
368 lines
13126 bytes
On Thu, 29 Oct 2026 05:45:01 +0000, someone
<2a59d59e3809f827ce709d3815e3950eef4a6a93af5557a93a7fdfba71460843@example.com>
wrote:

>Do you care if your schematic, or portions thereof, end up in the cloud?

That's just one sheet of four. Not rocket science.

>
>As a test case, I created a schematic for the "interesting regulator"
>Automotive sensor power supply without a switching pre-regulator by Vishwas Vaidya
>
>( With a slight refinement to achieve 60dB input bus ripple rejection, and got rid of the KF capacitor. Also found he transposed the values for R6 and R5 which doesn't work at all)
>
>then munged the resistor values off standard E-24
>
>applied an algorithm to clean up the resistors to closest E-24 values.

We try hard to use parts that we already have in stock. That includes
quad r-packs whose various series/parallel combos add to the fun.



>
>The program executes in a flash.
>
>Here is the original schema with munged resistors, making them candidates for replacement with standard values;
>
>Version 4
>SHEET 1 2732 1280
>WIRE -224 48 -352 48
>WIRE -32 48 -160 48
>WIRE 144 48 -32 48
>WIRE 304 48 144 48
>WIRE 608 48 400 48
>WIRE 704 48 608 48
>WIRE 832 48 784 48
>WIRE 912 48 832 48
>WIRE 1200 48 976 48
>WIRE 1472 48 1200 48
>WIRE 1632 48 1472 48
>WIRE -32 112 -32 48
>WIRE 144 112 144 48
>WIRE 608 112 608 48
>WIRE 1200 144 1200 48
>WIRE 352 176 352 112
>WIRE 560 176 352 176
>WIRE 832 176 832 48
>WIRE 832 176 656 176
>WIRE -352 256 -352 48
>WIRE -32 272 -32 192
>WIRE 144 320 144 192
>WIRE 144 320 32 320
>WIRE 784 320 144 320
>WIRE 784 368 784 320
>WIRE 960 416 848 416
>WIRE 1072 416 960 416
>WIRE 1200 416 1200 224
>WIRE 1200 416 1152 416
>WIRE 1344 416 1200 416
>WIRE -32 432 -32 368
>WIRE 784 512 784 464
>WIRE 1344 528 1344 416
>WIRE 1472 528 1472 48
>WIRE -32 544 -32 512
>WIRE 352 544 352 176
>WIRE 352 544 -32 544
>WIRE 960 560 960 416
>WIRE -32 576 -32 544
>WIRE 784 608 784 576
>WIRE 896 608 784 608
>WIRE 1200 608 1200 416
>WIRE 784 672 784 608
>WIRE -32 704 -32 640
>WIRE -352 784 -352 336
>WIRE -32 784 -32 768
>WIRE -32 784 -352 784
>WIRE 464 784 -32 784
>WIRE 784 784 784 752
>WIRE 784 784 464 784
>WIRE 960 784 960 656
>WIRE 960 784 784 784
>WIRE 1200 784 1200 688
>WIRE 1200 784 960 784
>WIRE 1344 784 1344 608
>WIRE 1344 784 1200 784
>WIRE 1472 784 1472 608
>WIRE 1472 784 1344 784
>WIRE 464 864 464 784
>FLAG 464 864 0
>FLAG 1632 48 out
>IOPIN 1632 48 Out
>DATAFLAG 496 48 "round($*1k)/1k"
>DATAFLAG 256 320 "round($*1k)/1k"
>DATAFLAG 160 544 "round($*1k)/1k"
>DATAFLAG 1472 48 "round($*1k)/1k"
>DATAFLAG 160 48 "round($*1k)/1k"
>DATAFLAG -32 656 "round(I(D2)*1M)/1M"
>SYMBOL res -48 96 R0
>SYMATTR InstName R7
>SYMATTR Value 510.125
>SYMBOL res 128 96 R0
>SYMATTR InstName R6
>SYMATTR Value 6.825k
>SYMBOL pnp 32 368 R180
>SYMATTR InstName Q4
>SYMATTR Value MPSA92
>SYMBOL res -48 416 R0
>SYMATTR InstName R8
>SYMATTR Value 100.125
>SYMBOL zener -16 640 R180
>WINDOW 0 24 64 Left 2
>WINDOW 3 24 0 Left 2
>SYMATTR InstName D2
>SYMATTR Value 1N4735
>SYMBOL diode -48 704 R0
>SYMATTR InstName D3
>SYMATTR Value 1N914
>SYMBOL npn 304 112 R270
>WINDOW 0 73 24 Left 2
>WINDOW 3 74 74 Left 2
>SYMATTR InstName Q1
>SYMATTR Value MPSA42
>SYMBOL npn 560 112 M90
>SYMATTR InstName Q2
>SYMATTR Value MPSA42
>SYMBOL res 688 32 M90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 38 54 VTop 2
>SYMATTR InstName R4
>SYMATTR Value 10.125
>SYMBOL schottky 912 64 R270
>WINDOW 0 32 32 VTop 2
>WINDOW 3 0 32 VBottom 2
>SYMATTR InstName D1
>SYMATTR Value RB521CS-30L
>SYMATTR Description Diode
>SYMATTR Type diode
>SYMBOL res 1184 128 R0
>SYMATTR InstName R1
>SYMATTR Value 1.0125K
>SYMBOL res 1184 592 R0
>SYMATTR InstName R2
>SYMATTR Value 1.0125K
>SYMBOL res 1168 400 R90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 38 55 VTop 2
>SYMATTR InstName R3
>SYMATTR Value 10K
>SYMBOL npn 848 368 M0
>SYMATTR InstName Q3
>SYMATTR Value MPSA42
>SYMBOL voltage -352 240 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 24 124 Left 2
>WINDOW 3 24 96 Invisible 2
>SYMATTR SpiceLine Rser=0.01
>SYMATTR Value PULSE(13.6 73.6 0 100u 500m 100u 750m 1)
>SYMATTR InstName V1
>SYMBOL voltage 1344 512 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 0 0 Left 0
>SYMATTR InstName V2
>SYMATTR Value 3.5V
>SYMBOL res 768 656 R0
>SYMATTR InstName R5
>SYMATTR Value 1.2125K
>SYMBOL diode -224 64 R270
>WINDOW 0 32 32 VTop 2
>WINDOW 3 0 32 VBottom 2
>SYMATTR InstName D5
>SYMATTR Value 1N4007
>SYMBOL current 1472 528 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 0 0 Left 0
>SYMATTR InstName I1
>SYMATTR Value 20m
>SYMBOL npn 896 560 R0
>SYMATTR InstName Q5
>SYMATTR Value MPSA42
>SYMBOL diode 768 512 R0
>SYMATTR InstName D4
>TEXT -376 1224 Left 2 !.op I1 0 75m 5m
>TEXT 1504 664 Left 2 !;dc I1 0 75m 5m
>TEXT -368 936 Left 2 !.model MPSA42 NPN (Is=34.9f Xti=3 Eg=1.11 Vaf=100 Bf=2.65K Ne=1.708 Ise=16.32p Ikf=23.79m Xtb=1.5 Br=9.769 Nc=2 Isc=0 Ikr=0 Rc=7 Cjc=14.23p Mjc=.5489 Vjc=.75 Fc=.5 Cje=49.62p Mje=.4136 Vje=.75 Tr=934.3p Tf=1.69n Itf=5 Vtf=20 Xtf=150 Rb=10)
>TEXT -368 992 Left 2 !.model MPSA92 PNP (Is=1.31f Xti=3 Eg=1.11 Vaf=100 Bf=183.1 Ne=1.312 Ise=1.31f Ikf=.1507 Xtb=1.5 Br=4.249 Nc=2 Isc=0 Ikr=0 Rc=4.4 Cjc=18.15p Mjc=.4936 Vjc=.75 Fc=.5 Cje=28.15p Mje=.4161 Vje=.75 Tr=11.23n Tf=1.708n Itf=1 Vtf=10 Xtf=2 Rb=10)
>TEXT -368 1040 Left 2 !.model 1N4007 D (IS=76.9p RS=42.0m BV=1.00k IBV=5.00u CJO=26.5p M=0.333 N=1.45 TT=4.32u)
>TEXT -368 1096 Left 2 !.model RB521CS-30L D (Is=2.27u Rs=0.68 N=1.19 Cjo=21.5p M=0.33 Vj=0.65 Fc=0.5 Bv=30 Ibv=100u Eg=0.69 Xti=2)
>TEXT -376 1264 Left 2 !;tran 750m
>TEXT -368 1144 Left 2 !.model 1N4735 D(Is=5.205n Rs=.4763 N=1.28 Cjo=180p M=.3333 Vj=.75 Isr=1.317u Nr=3.097 Bv=6.2 Ibv=41m)
>
>Here is the instantaneously cleaned-up version:
>
>Version 4
>SHEET 1 2732 1280
>WIRE -224 48 -352 48
>WIRE -32 48 -160 48
>WIRE 144 48 -32 48
>WIRE 304 48 144 48
>WIRE 608 48 400 48
>WIRE 704 48 608 48
>WIRE 832 48 784 48
>WIRE 912 48 832 48
>WIRE 1200 48 976 48
>WIRE 1472 48 1200 48
>WIRE 1632 48 1472 48
>WIRE -32 112 -32 48
>WIRE 144 112 144 48
>WIRE 608 112 608 48
>WIRE 1200 144 1200 48
>WIRE 352 176 352 112
>WIRE 560 176 352 176
>WIRE 832 176 832 48
>WIRE 832 176 656 176
>WIRE -352 256 -352 48
>WIRE -32 272 -32 192
>WIRE 144 320 144 192
>WIRE 144 320 32 320
>WIRE 784 320 144 320
>WIRE 784 368 784 320
>WIRE 960 416 848 416
>WIRE 1072 416 960 416
>WIRE 1200 416 1200 224
>WIRE 1200 416 1152 416
>WIRE 1344 416 1200 416
>WIRE -32 432 -32 368
>WIRE 784 512 784 464
>WIRE 1344 528 1344 416
>WIRE 1472 528 1472 48
>WIRE -32 544 -32 512
>WIRE 352 544 352 176
>WIRE 352 544 -32 544
>WIRE 960 560 960 416
>WIRE -32 576 -32 544
>WIRE 784 608 784 576
>WIRE 896 608 784 608
>WIRE 1200 608 1200 416
>WIRE 784 672 784 608
>WIRE -32 704 -32 640
>WIRE -352 784 -352 336
>WIRE -32 784 -32 768
>WIRE -32 784 -352 784
>WIRE 464 784 -32 784
>WIRE 784 784 784 752
>WIRE 784 784 464 784
>WIRE 960 784 960 656
>WIRE 960 784 784 784
>WIRE 1200 784 1200 688
>WIRE 1200 784 960 784
>WIRE 1344 784 1344 608
>WIRE 1344 784 1200 784
>WIRE 1472 784 1472 608
>WIRE 1472 784 1344 784
>WIRE 464 864 464 784
>FLAG 464 864 0
>FLAG 1632 48 out
>IOPIN 1632 48 Out
>DATAFLAG 496 48 "round($*1k)/1k"
>DATAFLAG 256 320 "round($*1k)/1k"
>DATAFLAG 160 544 "round($*1k)/1k"
>DATAFLAG 1472 48 "round($*1k)/1k"
>DATAFLAG 160 48 "round($*1k)/1k"
>DATAFLAG -32 656 "round(I(D2)*1M)/1M"
>SYMBOL res -48 96 R0
>SYMATTR InstName R7
>SYMATTR Value 510
>SYMBOL res 128 96 R0
>SYMATTR InstName R6
>SYMATTR Value 6.8k
>SYMBOL pnp 32 368 R180
>SYMATTR InstName Q4
>SYMATTR Value MPSA92
>SYMBOL res -48 416 R0
>SYMATTR InstName R8
>SYMATTR Value 100
>SYMBOL zener -16 640 R180
>WINDOW 0 24 64 Left 2
>WINDOW 3 24 0 Left 2
>SYMATTR InstName D2
>SYMATTR Value 1N4735
>SYMBOL diode -48 704 R0
>SYMATTR InstName D3
>SYMATTR Value 1N914
>SYMBOL npn 304 112 R270
>WINDOW 0 73 24 Left 2
>WINDOW 3 74 74 Left 2
>SYMATTR InstName Q1
>SYMATTR Value MPSA42
>SYMBOL npn 560 112 M90
>SYMATTR InstName Q2
>SYMATTR Value MPSA42
>SYMBOL res 688 32 M90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 38 54 VTop 2
>SYMATTR InstName R4
>SYMATTR Value 10
>SYMBOL schottky 912 64 R270
>WINDOW 0 32 32 VTop 2
>WINDOW 3 0 32 VBottom 2
>SYMATTR InstName D1
>SYMATTR Value RB521CS-30L
>SYMATTR Description Diode
>SYMATTR Type diode
>SYMBOL res 1184 128 R0
>SYMATTR InstName R1
>SYMATTR Value 1K
>SYMBOL res 1184 592 R0
>SYMATTR InstName R2
>SYMATTR Value 1K
>SYMBOL res 1168 400 R90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 38 55 VTop 2
>SYMATTR InstName R3
>SYMATTR Value 10K
>SYMBOL npn 848 368 M0
>SYMATTR InstName Q3
>SYMATTR Value MPSA42
>SYMBOL voltage -352 240 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 24 124 Left 2
>WINDOW 3 24 96 Invisible 2
>SYMATTR SpiceLine Rser=0.01
>SYMATTR Value PULSE(13.6 73.6 0 100u 500m 100u 750m 1)
>SYMATTR InstName V1
>SYMBOL voltage 1344 512 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 0 0 Left 0
>SYMATTR InstName V2
>SYMATTR Value 3.5V
>SYMBOL res 768 656 R0
>SYMATTR InstName R5
>SYMATTR Value 1.2K
>SYMBOL diode -224 64 R270
>WINDOW 0 32 32 VTop 2
>WINDOW 3 0 32 VBottom 2
>SYMATTR InstName D5
>SYMATTR Value 1N4007
>SYMBOL current 1472 528 R0
>WINDOW 123 0 0 Left 0
>WINDOW 39 0 0 Left 0
>SYMATTR InstName I1
>SYMATTR Value 20m
>SYMBOL npn 896 560 R0
>SYMATTR InstName Q5
>SYMATTR Value MPSA42
>SYMBOL diode 768 512 R0
>SYMATTR InstName D4
>TEXT -376 1224 Left 2 !.op I1 0 75m 5m
>TEXT 1504 664 Left 2 !;dc I1 0 75m 5m
>TEXT -368 936 Left 2 !.model MPSA42 NPN (Is=34.9f Xti=3 Eg=1.11 Vaf=100 Bf=2.65K Ne=1.708 Ise=16.32p Ikf=23.79m Xtb=1.5 Br=9.769 Nc=2 Isc=0 Ikr=0 Rc=7 Cjc=14.23p Mjc=.5489 Vjc=.75 Fc=.5 Cje=49.62p Mje=.4136 Vje=.75 Tr=934.3p Tf=1.69n Itf=5 Vtf=20 Xtf=150 Rb=10)
>TEXT -368 992 Left 2 !.model MPSA92 PNP (Is=1.31f Xti=3 Eg=1.11 Vaf=100 Bf=183.1 Ne=1.312 Ise=1.31f Ikf=.1507 Xtb=1.5 Br=4.249 Nc=2 Isc=0 Ikr=0 Rc=4.4 Cjc=18.15p Mjc=.4936 Vjc=.75 Fc=.5 Cje=28.15p Mje=.4161 Vje=.75 Tr=11.23n Tf=1.708n Itf=1 Vtf=10 Xtf=2 Rb=10)
>TEXT -368 1040 Left 2 !.model 1N4007 D (IS=76.9p RS=42.0m BV=1.00k IBV=5.00u CJO=26.5p M=0.333 N=1.45 TT=4.32u)
>TEXT -368 1096 Left 2 !.model RB521CS-30L D (Is=2.27u Rs=0.68 N=1.19 Cjo=21.5p M=0.33 Vj=0.65 Fc=0.5 Bv=30 Ibv=100u Eg=0.69 Xti=2)
>TEXT -376 1264 Left 2 !;tran 750m
>TEXT -368 1144 Left 2 !.model 1N4735 D(Is=5.205n Rs=.4763 N=1.28 Cjo=180p M=.3333 Vj=.75 Isr=1.317u Nr=3.097 Bv=6.2 Ibv=41m)
>
>Functionally, this establishes a route to using what's called an "inventory bound" file for the calculations in place of standard spec of using the full E-24 line.
>
>This has been expanded to use series/parallel combinations of resistors from the inventory file (text file with one value per line).
>All the resistors are recalculated, and you have the option of replacement on the schematic or not. If you choose not to replace, which may be the wiser decision, the program outputs a table of the results for each resistor, the combination of inventory resistors used for a prospective replacement, and an error for the replacement deviation from the schematic value. So you can pick and choose which one you want, or change, or leave alone. If you choose to replace, the program will alter the resistor's attribute spec with the pseudo c-code, which lets you quickly simulate to verify everything is hunky-dory. The actual drawing is not altered.
>
>This approach seems like the most universal way to go since all your circuits originate with a schematic. And you avoid some app mess with hundreds of possible input directives.
>
>Let me know if you want to pursue it further. I have no use for it, so this is as far as I go.

John Larkin
Highland Tech Glen Canyon Design Center
Lunatic Fringe Electronics
Re: AI resistor picker
#637
Author: someone
Date: Thu, 29 Oct 2026 14:15
6 lines
2158 bytes
The main thing is AI can read and modify the LTSpice .asc ASCII text file, which enables all sorts of modifications. Just paste the .asc text file into the chat box. You do the same with your inventory/constraint text file. From there, it's much simpler to just text in the operations you want AI to perform. I found that using E-96, a series-parallel combo gets within some ridiculous pseudo-precision of less than 10 ppm error most of the time. Resistor network packages are no problem, except for crosstalk coupling in some cases, just have the manu and partno in your inventory file so AI knows specifically what it's working with. AI can also handle tempco matching. If the task is a production regularity, you can also make a text file of your directives and past that into the AI chat box too.
The days of programming up this kind of minutiae are dead. Use AI to do it. It's not rocket science.

-- 
For full context, visit https://www.electrondepot.com/electrodesign/ai-resistor-picker-4418351-.htm
Re: AI resistor picker
#651
Author: Liz Tuddenham
Date: Fri, 30 Oct 2026 08:50
23 lines
1666 bytes
john larkin <jl@glen--canyon.com> wrote:

> https://www.dropbox.com/scl/fi/46ayzr6kb9chfe455dq4u/14S560A.pdf?rlkey=qr2
> y7fkoyv2z29s0wbi7hbhha&raw=1
> 
> It's a minor nuisance to select resistors from what we have in stock,
> to get a circuit good enough and use networks and minimize the BOM
> parts count or the cost. Not to mention PCB routability.

I drew up two spreadsheets, one for resistors in series, the other for
resistors in parallel.  The preferred values over two decades were
filled in along the top and again in the LH column.  The cells contained
the computed result for each pair.

It only takes a moment to scan along the cells and find the nearest
value to the wanted one and read off the series or partallel pair that
will give it.


-- 
~ Liz Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads