I'm using 5 different LED to indicate water level. I used a 330ohm resistor to all LEDs. Some LEDs glow brighter some are less bright.
How can I calculate an exact resistor value to my LEDs to get equal brightness?
I'm using 5 different LED to indicate water level. I used a 330ohm resistor to all LEDs. Some LEDs glow brighter some are less bright.
How can I calculate an exact resistor value to my LEDs to get equal brightness?
The trick is not in matching resistors but in matching current, since even the same model of LED has differents Vf among parts and the resistors are computed over that.
This, of course, if you have the same model of LED. If these are different (like different colours) you need to look up the curves for the light emission. If you are lucky your leds come from a 'companion' family (i.e. red/yellow/green leds build to go together in a scale).
How to give them all the same current (or the right current)? Well that's depend on your circuit topology.
Using comparators there a neat trick involving all the leds in series and a single current source. Look for "THAT Corporation Design Note 112 LED Bar-Graph Compression Indicator", it's for audio but you can trivially adapt it to your water level.
If you are using some kind of digital control there are dedicated ICs to match the current of indicator leds. Some of these even have some programmable register to match different LEDs. Look in the catalogues, TI and NXP make a lot of these.
How can I calculate an exact resistor value to my LEDs to get equal brightness?
You can only calculate this if you have bought LEDs that have been 'binned' (selected, sorted) to particular brightness bands.
Randomly bought LEDs can cover such a wide range of brightness that all you can do is adjust the resistors until they look matched.