Building Even Backlighting with Piranha RGB LEDs: Spacing, Diffusion and Colour
A translucent label or model window can look excellent when evenly illuminated and disappointing when every LED shows through as a bright spot. Adding more current often makes those spots brighter without solving the unevenness. The arrangement of the light sources and diffuser deserves as much attention as the circuit.
Piranha LEDs, also called Superflux-style LEDs, are useful through-hole components for small custom lighting boards. This guide focuses on ordinary RGB versions for low-voltage backlighting, where all colours are controlled electrically rather than through an addressable data protocol.
Identify the LED behind the package name
Piranha describes a package style, not a universal electrical specification. Four leads do not necessarily mean four independent connections or an addressable pixel. A single-colour part can use additional leads differently from a three-colour RGB part.
PMD Way's Piranha LED collection includes RGB options. The clear common-anode RGB Piranha LEDs provide three colour channels sharing an anode connection. Confirm the exact pin diagram for the supplied parts; do not transfer a corner-mark convention from another manufacturer.
Kingbright's Superflux product family demonstrates how viewing angles and optical characteristics vary within this general package style. A package name alone cannot establish how much light reaches the edges of your panel.
Build an optical mock-up before the final PCB
Make a simple test panel with the intended translucent material, aperture and approximate enclosure depth. Mount a few LEDs temporarily at adjustable positions. Use a low-voltage, current-limited test circuit and keep conductive mounting materials clear of exposed leads.
Evaluate several LED-to-diffuser distances. Too little separation often makes individual sources obvious; additional space can allow more overlap, but a deeper enclosure may be unacceptable. There is no universally correct distance because the LED pattern, diffuser and illuminated area interact.
Test the actual front material, including printed labels, paint or tinted covers. A material that looks neutral when unlit can transmit red, green and blue differently. Moving from a clear prototype lid to a frosted production cover may change both brightness and perceived colour.
Use diffusion to solve the right problem
A diffuser redistributes light, but it also affects useful output. More diffusion is not automatically better. It may hide individual LEDs while making the panel too dim or illuminating areas you wanted to keep separate.
Cree LED's tunable-light reference design compares optical arrangements and shows the trade-off between colour mixing and light loss. Its particular measurements apply to that design; the transferable lesson is to evaluate optical parts as a complete combination.
For a small panel, try a light-coloured interior and a diffuser with adjustable spacing. Add opaque partitions when separate labels must remain visually independent. Check the corners and edges as carefully as the centre: a convincing central patch can hide poor coverage elsewhere.
Control each colour's current
In a common-anode RGB circuit, current enters the shared anode and returns through the selected colour cathodes. Each colour needs its own current control. With a resistor-based design, use a resistor in each colour branch rather than one shared resistor in the common lead.
For multiple LEDs in parallel, each LED's colour branch should have its own resistor unless an appropriate driver regulates that branch individually. Otherwise differences in forward voltage can produce uneven current sharing. ROHM's LED circuit explanation describes this behaviour.
Calculate each resistor from the available supply voltage, that colour's forward voltage, the driver drop and your chosen current. The red branch may need a different value from the green and blue branches. Use the actual component specifications and check the worst-case supply and temperature conditions.
As an example of budgeting, six RGB packages with all three channels operating at an assumed 5 mA each require 90 mA for the LEDs. That is a calculation example, not a rating for the listed parts. Include controller and driver consumption when choosing the supply.
Choose drivers for the whole panel
A microcontroller pin should not be expected to carry the total current of several parallel colour branches. Use suitable transistor stages or a compatible LED driver when the load exceeds the controller's guaranteed capability. Check individual output ratings, combined package limits and heat dissipation.
If every LED changes colour together, three controlled colour groups may be sufficient, with individual branch resistors. If each illuminated window needs a different colour, provide separate control groups for those windows. Establish this requirement before routing the PCB; it determines how many driver channels are needed.
Include a defined off state during startup. A briefly floating transistor gate or an active output during reset can create a flash even when the application normally starts with the panel dark.
Balance colour at the finished front surface
Equal numerical red, green and blue settings do not guarantee a neutral-looking white. The LEDs have different optical output and the enclosure affects what reaches the observer. Begin with moderate brightness and adjust channels while viewing the assembled panel.
Pulse-width modulation can vary average brightness while retaining the selected on-state current. Confirm that your controller and driver support the required control polarity and timing. Arduino's PWM guidance explains that available pins and behaviour depend on the board.
RGB-mixed white is also not equivalent to a dedicated white LED for lighting coloured objects. Cree LED's colour-mixing discussion explains why adding a suitable white channel can improve the spectrum. For a label backlight, assess legibility; for illuminating artwork, assess the actual colours you need to see.
Run repeatable acceptance tests
| Test | What it reveals |
|---|---|
| Each colour separately | Missing channels, uneven source spacing and tinted materials |
| Mixed colour at low brightness | Visible colour patches and poor dimming resolution |
| Maximum intended setting | Supply drop, driver heating and uncomfortable hotspots |
| Normal viewing angles | Light leakage, edge darkness and enclosure obstruction |
Record LED positions, diffuser distance and current settings once the result works. Keep mechanical supports from stressing the leads, and repeat the test with the enclosure closed. A successful backlight is defined by the illuminated surface the user sees, not by how bright the bare LEDs appear on the bench.