This repository has been archived on 2024-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
resistor-calculator/README.md

37 lines
987 B
Markdown

# Resistor Color Code Calculator
A simple web app for computing the the resistance of a resistor.
## Development
### Using PHP's built-in web server (PHP must be installed on your machine):
``` bash
php -t . -S localhost:4000
# or
make server-start
```
## Reference
### Color Values
From https://en.wikipedia.org/wiki/Electronic_color_code.
Color | Value | Multiplier | Tolerance | HEX Color | PPM
---|---|---|---|---|---|
None | - | - | ±20% | - | -
Pink | - | 0.001 | - | #e91e63 | -
Silver | - | 0.01 | ±10% | #b0bec5 | -
Gold | - | 0.1 | ±5% | #ffea00 | -
Black | 0 | 0 | - | #212121 | 250
Brown | 1 | 10 | ±1% | #795548 | 100
Red | 2 | 100 | ±2% | #f44336 | 50
Orange | 3 | 1 000 | - | #ff9800 | 15
Yellow | 4 | 10 000 | ±5% | #fdd835 | 25
Green | 5 | 100 000 | ±0.5% | #4caf50 | 20
Blue | 6 | 1 000 000 | ±0.25% | #2196f3 | 10
Violet | 7 | 10 000 000 | ±0.1% | #9c27b0 | 5
Gray | 8 | 100 000 000 | ±0.05% | #9e9e9e | 1
White | 9 | 1 000 000 000 | - | #fafafa | -