Article View: sci.electronics.design
Article #566Re: AI resistor picker
From: Bill Sloman
Date: Sun, 25 Oct 2026 03:50
Date: Sun, 25 Oct 2026 03:50
134 lines
7565 bytes
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
Technical Details
Message-ID:
<11bju9g$39erh$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<kjtcdlpa4b8dfqoqtoqdkul5naskmi18iu@4ax.com> <11b9vbr$3pd65$1@dont-email.me> <tolhdld6mabso7rfqhvrr2gma7n0pltm09@4ax.com> <11bao3i$267n$3@dont-email.me> <11vhdl9vgf2hdeqtf1af5a1rpcibqep0ji@4ax.com> <11bbvkn$gha2$1@dont-email.me> <um0jdlh56dmhsp79fkmf2li1qoqbqhnt1i@4ax.com> <11beakj$1bgju$1@dont-email.me> <hufldl9l3bnrahsadbq6p0ppiuo6hr965f@4ax.com> <11bfo5c$1r6ul$1@dont-email.me> <100ndlpov2v7uu9u1ofq8sh85f0a5a6g8s@4ax.com> <11bhd5s$2ds1e$1@dont-email.me> <u6ipdld6s36isi5ckm6ok6h5i22emst0k7@4ax.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Bill Sloman <bill.sloman@ieee.org> Newsgroups: sci.electronics.design Subject: Re: AI resistor picker Date: Sun, 25 Oct 2026 14:50:08 +1100 Organization: A noiseless patient Spider Lines: 134 Message-ID: <11bju9g$39erh$3@dont-email.me> References: <kjtcdlpa4b8dfqoqtoqdkul5naskmi18iu@4ax.com> <11b9vbr$3pd65$1@dont-email.me> <tolhdld6mabso7rfqhvrr2gma7n0pltm09@4ax.com> <11bao3i$267n$3@dont-email.me> <11vhdl9vgf2hdeqtf1af5a1rpcibqep0ji@4ax.com> <11bbvkn$gha2$1@dont-email.me> <um0jdlh56dmhsp79fkmf2li1qoqbqhnt1i@4ax.com> <11beakj$1bgju$1@dont-email.me> <hufldl9l3bnrahsadbq6p0ppiuo6hr965f@4ax.com> <11bfo5c$1r6ul$1@dont-email.me> <100ndlpov2v7uu9u1ofq8sh85f0a5a6g8s@4ax.com> <11bhd5s$2ds1e$1@dont-email.me> <u6ipdld6s36isi5ckm6ok6h5i22emst0k7@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 25 Oct 2026 03:50:17 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3455857"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HDjftfx6zrlIjnXcElWpKhj7oz5/vu1A="; posting-host="445d29ac03d7131ac8d10c9103de3332" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:1VtuFS6CIMvB1Qy8LDZsF9TpKVY= sha256:1zYlmTvWS8HoKsQtiFLJVsfJbkRFifhsnCU9CMI3MmU= sha1:g1zB2GJFkqB/APMbkww/ZFpkOpY= sha256:DlXaITTMYfugRLFgDXof5TShlkw/um9uf8cTu1Om/p8= X-Antivirus-Status: Clean Content-Language: en-US X-Antivirus: Norton (VPS 261024-6, 25/10/2026), Outbound message In-Reply-To: <u6ipdld6s36isi5ckm6ok6h5i22emst0k7@4ax.com>