R=(U−UF)/IF; red ≈2.0V, blue ≈3.2V; 5~10mA is plenty for indicators.
24V red at 8mA → 2.7kΩ; resistor power 0.17W, choose 0.5W for long-life derating.
Use constant-current drivers for lighting; each LED colour needs its own resistor value.
| Supply | LED | Calculated | Recommended |
|---|---|---|---|
| 5V | Red 2.0V/10mA | 300Ω | 330Ω 0.25W |
| 12V | Red 2.0V/10mA | 1kΩ | 1kΩ 0.25W |
| 24V | Red 2.0V/8mA | 2.75kΩ | 2.7kΩ 0.5W |
| 24V | Green 2.2V/8mA | 2.7kΩ | 2.7kΩ 0.5W |
| 24V | Blue 3.2V/8mA | 2.6kΩ | 2.7kΩ 0.5W |
| 220V rectified | Red 2.0V/2mA | ≈110kΩ | Cap-drop instead |
Apply the points above to LED current; the figures are typical engineering values, so confirm them against the device datasheet and the actual design before release.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Per GB/T 24826, GB/T 2471, IEC 60115 and the corresponding IEC documents. Ratings and derating follow the device datasheet and the product design file. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.