- use sorted lut and bisect to optimize lut resolver - add circuit decuper - add signed diff for response item
LCR Connector (Legacy)
Get the resistor, capacitor, or inductor circuit which has the closest value for your given value within at most 3 devices.
This is the legacy version of LCR Connector, although this is also refactored from true legacy version in modern Python.
Usage
- Execute
uv syncto configure the environment. - Execute
uv run lcr-connector --helpfor the usage of LCR Connector. - After launch LCR Connector, you can see the help message in interactive console, or type
helpto see the help message.
Additionaly, for using LCR Connector, you need 3 list files holding all possible device standard values which are available in your laboratory. Each of them represents a type of device respectively, resistor, capacitor, or inductor. These list files are basically like this:
100
220
270
390
470
680
1k
1.2k
1.5k
2.2k
3.3k
4.7k
6.8k
10k
47k
100k
1M
Supported units are:
- n: Nano
- p: Pico
- u: Micro
- m: Milli
- k: Kilo
- M: Mega
- G: Giga
There is no physical unit for the values in the list files.
Unit is optional. If you don't specify a unit, the value is considered as a plain floating value.
Unit is case sensitive to distinguish between milli and mega (e.g. 1m is milli, 1M is mega).