Documentation sections
Resistor Color Code Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug resistor-color-code. Decode resistor color bands to resistance value and tolerance. Supports 4-band and 5-band resistors; the 6th (temperature-coefficient) band of a 6-band resistor is not decoded. Instant color band to ohms conversion.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| numBandsnumber | none | 4 … 6 | 4 | Number of Bands |
| band1number | none | 0 … 9 | 1 | Band 1 (1st digit) |
| band2number | none | 0 … 9 | 0 | Band 2 (2nd digit) |
| band3number | none | 0 … 11 | 4 | The third digit of a 5- or 6-band resistor. Ignored for 4-band resistors, whose third band is the multiplier band. |
| multipliernumber | none | 0 … 11 | 2 | Multiplier Band |
| tolerancenumber | none | 1 … 11 | 10 | Tolerance Band |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| resistanceheadline | Ω | Resistance |
| tolerance | % | Tolerance |
| minResistance | Ω | Min Value |
| maxResistance | Ω | Max Value |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.