Calculate resistor values, LED current limiting resistors, voltage dividers, capacitor charging times, and PWM settings for Arduino projects.
Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.
Key Arduino Concepts:
| Color | Digit | Multiplier | Tolerance |
|---|---|---|---|
| Black | 0 | ×1 | — |
| Brown | 1 | ×10 | ±1% |
| Red | 2 | ×100 | ±2% |
| Orange | 3 | ×1k | — |
| Yellow | 4 | ×10k | — |
| Green | 5 | ×100k | ±0.5% |
| Blue | 6 | ×1M | ±0.25% |
| Violet | 7 | ×10M | ±0.1% |
| Gray | 8 | ×0.01 | ±0.05% |
| White | 9 | ×0.1 | — |
| Gold | — | ×0.1 | ±5% |
| Silver | — | ×0.01 | ±10% |
The forward voltage (Vf) of an LED depends on its color and semiconductor material. This is important for calculating the correct current limiting resistor.
Red LED: 1.8V - 2.2V forward voltage
Green/Yellow LED: 2.0V - 2.4V forward voltage
Blue/White LED: 3.0V - 3.6V forward voltage
Infrared LED: 1.2V - 1.6V forward voltage
Safety Note: Always double-check calculations before building circuits. Start with higher resistor values and test current with a multimeter. Never exceed maximum ratings for components.
TCCR1B = TCCR1B & 0b11111000 | 0x01; sets frequency to 31.25kHz. Different timers control different pins (Timer0: pins 5,6; Timer1: pins 9,10; Timer2: pins 3,11).
Common resistor values available in most electronics kits