Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:29 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Driving Led bars.

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:26pm 06 Jun 2018
Copy link to clipboard 
Print this post

Hi all,

I have a few 8 & 10 DIL Led Bar graphs, or whatever they are called.

Just want to grab some bussed resistor arrays to make life easier.
Only using the for compact status indicators.

Question is what value resistors should I use.

Examples I see are all over the shop.

The manual shows 82Ohms
The E100 has a couple of Leds with 470Ohms,
Think I've also seen 190 elsewhere.

Also does the value vary depending on whether the pin driving it is configured as OC?

I am aware that different colours have slightly different requirements, and some of my bars are multi colour, but assume I can ignore that as long as I'm in the ball park.


Thanks

Phil.
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 10:17pm 06 Jun 2018
Copy link to clipboard 
Print this post

I don't think there is a standard approach - it all depends on how bright you want 'em and what colour they are. Generally, it seems that people tend to drive them at about 20mA but this is way too bright for simple indicators unless they are to work in bright sun. In normal circumstances I would play around at whatever voltage I am after so I get them bright enough coz I often think 5mA will do and they are still way too bright (esp red LEDs).

personally I think there is a trend for over-bright power LEDs... the devices I am building just lately use 1K on a red SMD LED, which gives about 1.5mA. Plenty bright enough to see the indicator but doesn't blind you. I have even taken to smudging over the surface with a black marker on some - the office is lit up like a flippin' Christmas tree otherwise!

I find you only need to "drive" an LED if you want them for lighting, otherwise keep the power low.

my personal opinions & choices.

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9751
Posted: 10:48pm 06 Jun 2018
Copy link to clipboard 
Print this post

I also tend to stick to 1k on all 3v3 output pins to LED's. Super-bright and SMD LED's usually need about four times that value to prevent opening a wormhole to another dimension.

With super-bright or SMD LED's, I use 4k7 on 3v3 outputs, and they are plenty bright enough. Blue LED's are the easiest for the Human eye to see so they can appear VERY bright, so I tend to use upwards of 10k on those on 3v3 outputs. This means you can still see the blue light easily, but it does not try to blind you.

Standard diffused LED's, I tend to use around 560R or so. I have used LED bar-graphs on things, and I used 1k resistors on those. I would setup on bar-graph on a prototyping board, and play with resistor values on a 3v3 supply. As a general-purpose indicator for something, you don't want them that bright as Captain says, but it does come down to personal preference, really.
Smoke makes things work. When the smoke gets out, it stops!
 
skyv
Newbie

Joined: 14/03/2015
Location: Australia
Posts: 14
Posted: 11:46pm 06 Jun 2018
Copy link to clipboard 
Print this post

Perhaps one should also consider how many leds are to be on at the same time and the maximum current available from the driving device.


 
erbp
Senior Member

Joined: 03/05/2016
Location: Australia
Posts: 195
Posted: 12:42am 07 Jun 2018
Copy link to clipboard 
Print this post

I am using some of these as status indicators also. I drive them from a 74HC04 inverter powered at 5v using a 1k5 resistor. Plenty bright enough. The 1k5 on a 5v source gives a roughly equivalent current to a 1k on a 3.3v source.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025