[TriEmbed] Python code for resistor selection

Michael Monaghan mike at chipworks.net
Thu May 19 10:34:56 CDT 2016


Very welcome Pete.  I hadn't considered Octopart, but there's an API for
that: https://github.com/guyzmo/pyoctopart !!

If you keep the Hippies happy, they are highly harmless.  ;)

Mike



On Thu, May 19, 2016 at 11:16 AM, Pete Soper <pete at soper.us> wrote:

> On 05/19/2016 10:35 AM, Michael Monaghan wrote:
>
> Pete,
>
> If these don't answer your need, at least they provide the dataset for
> your target resistors:
>
> https://github.com/mogar/EE_tools
>
>
> https://techoverflow.net/blog/2015/05/19/finding-the-nearest-e96-resistor-value-in-python/
>
>
> Wow. This is just exactly what I was after! Complete with license that is
> what the hippies would call "truly righeous". Thanks very much. I don't
> intend to connect this to octopart or the like, just to be able to generate
> some resistor options to give immediate feedback about tradeoffs.
>
> -Pete
>
>
> I think the second one is a good starting point.  Just need a simple
> iterator to build a list of candidates.  I'm not aware of anyone with
> pricing information in a digestible format and as often as it changes, it
> would probably be better to build a web page scrape to get it.
>
> Mike
>
> On Thu, May 19, 2016 at 10:10 AM, Pete Soper via TriEmbed <
> <triembed at triembed.org>triembed at triembed.org> wrote:
>
>> I'm looking for existing Python code that knows about E24 and E96
>> resistor values. It would be a plus if it did the simple calculations to
>> select, for example, two 1% resistors in parallel that give a resistance
>> close to a target value. I've made a modeler for a circuit that requires
>> precision resistors and would like to make it less painful to map required
>> values into ones that happen to be for sale at affordable prices. But I
>> figured it would be silly to reinvent this wheel if it's already done in a
>> form that I can just slurp up with attribution.
>>
>> Thanks,
>> Pete
>>
>>
>> _______________________________________________
>> Triangle, NC Embedded Computing mailing list
>> TriEmbed at triembed.org
>> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
>> TriEmbed web site: http://TriEmbed.org
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20160519/b974ad67/attachment.htm>


More information about the TriEmbed mailing list