Skip to main content

PyResistorColorCode license PyResistorColorCode python version

PyResistorColorCode last version

Overview

PyResistorColorCode is a Python module that provides some tools to manage IEC 60062 marking codes for resistors.

The associated program resistor-decoder provides a graphical user interface to help user to decode a resistor colour-coding using an inference algorithm. This feature is an enhancement compared to a program like gresistor which is only a colour-coding calculator.

I started to develop this software a day where I had to sort a lot of unsorted resistors in a jumble. Resistors colour-coding using no more than 3 bands (2 digits and a multiplier) are no too difficult to decode when a person is experienced. But for more accurate resistors, it is more tricky. Another difficulty arises when it is difficult to recognise the colour of a band, due to an inappropriate colour contrast or tone. For strange colour-coding we can in last resort use an Ohmmeter to measure the resistance value. But it doesn’t respond to the question what is the specification of this resistor: tolerance, temperature coefficient, etc. For all theses reasons, I developed an inference algorithm coupled to an graphical user interface to help user to decode resistor colour-coding.

https://raw.github.com/FabriceSalvaire/PyResistorColorCode/master/doc/sphinx/source/images/resistor-decoder.png

Inference Algorithm

The inference algorithm works as follow:

  • code orientation (left-right or right-left) doesn’t matter,

  • unset bands are not take into account,

  • at least 3 colours must be provided: 2 digits and the multiplier,

  • colour band are interpreted by priority as:

  1. resistance value,

  2. resistance tolerance,

  3. temperature coefficient,

  • the resistance value must exists in a IEC 60063 series: E6, E12, E48, E96, E192,

  • the resistance tolerance must be defined if there is a colour band assigned to it.

When there is more than one hypothesis for the given input, the hypotheses are sorted by ascending precision (series).

Where is the Documentation ?

The documentation is available on the PyResistorColorCode Home Page.

How to install it ?

Look at the installation section in the documentation.

Credits

Authors: Fabrice Salvaire

Metadata

Release files for PyResistorColorCode 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for PyResistorColorCode 1.0.0
File Interpreter ABI Platform
PyResistorColorCode-1.0.0-py3.6.egg Legacy Egg format - - Details
PyResistorColorCode-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 65.2 kB

Release files / PyResistorColorCode-1.0.0-py3.6.egg

Download URL PyResistorColorCode-1.0.0-py3.6.egg
Size 40.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
28f7c4aeb006a9d157be0331b62f202eb57635cea13b97081492e4e7e6aa9dff
BLAKE2b-256 checksum
How to use checksums
2aedaabf5340860b42f852b252e7671b4333b4ca433a390ef736cabd9d535bb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyResistorColorCode-1.0.0-py2.py3-none-any.whl

Download URL PyResistorColorCode-1.0.0-py2.py3-none-any.whl
Size 24.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
27ea9352d1fb3b33d76ef1163d969d742c28de65f55cdd7f70ade4d354e24e37
BLAKE2b-256 checksum
How to use checksums
626b25e97b1d6af8142aab739efa8ced77ff3cab3f0c38ed0322c13f7b35a1a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page