Page 1 of 2

Another LED Project... help please.

Posted: Wed Mar 03, 2010 2:10 am
by Silent77
I found an article on instructables and it gave me an idea. is it possible to hook a rotary potentiometer up to this circuit without adding a micro controller and not over powering anything? Thanks.

Image

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 3:26 am
by leon_heller
What is the pot. supposed to do?

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 3:50 am
by Silent77
overall brightness of the LED's. one pot for all the LED's. I was thinking it would go between the power source and the transistor.

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 6:24 am
by leon_heller
Use PWM with an MCU.

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 12:45 pm
by Silent77
I was trying to avoid a microcontroller... they are beyond my skill level.

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 1:01 pm
by leon_heller
You won't get proper control with a pot.

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 1:37 pm
by Silent77
hmm any suggestion for an alternative other than a pot with a microcontroller? thanks for the quick replies!

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 5:17 pm
by Liencouer
There's always the variable PWM 555 circuit somewhere... this looks about right...

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 5:47 pm
by MichaelN
If it's only a low current, you could always have an adjustable constant-current circuit. If you've got enough voltage "overhead" you can use a 3-terminal voltage regulator as a constant current source. Otherwise, there are plently of other simple circuits that would do the trick.

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 6:27 pm
by Silent77
Liencouer wrote:There's always the variable PWM 555 circuit somewhere... this looks about right...
Perfect!... for now... lol.
MichaelN wrote:If it's only a low current, you could always have an adjustable constant-current circuit. If you've got enough voltage "overhead" you can use a 3-terminal voltage regulator as a constant current source. Otherwise, there are plently of other simple circuits that would do the trick.
Hmm interesting. seems this would be more for an RGB LED project... which is where this project will probably end up.

Thank you both!

Re: Another LED Project... help please.

Posted: Wed Mar 03, 2010 8:23 pm
by waltr
MichaelN's suggestion will work. Look up how to use an LM317 as an adjustable current source in the data sheet or in an app note.

Re: Another LED Project... help please.

Posted: Thu Mar 04, 2010 8:44 am
by lyndon
If you do this, use a logarithmic (audio) pot. Human vision is very nonlinear: our vision is very sensitive at low light levels. If you use a linear PWM or current control, you will find that very small current changes near the bottom will cause huge apparent brightness changes and vice versa near the top of range.

At least using a microcontroller allows you to tailor the PWM to any curve you like.

Re: Another LED Project... help please.

Posted: Fri Mar 05, 2010 4:09 pm
by Silent77
lyndon wrote:If you use a linear PWM or current control, you will find that very small current changes near the bottom will cause huge apparent brightness changes and vice versa near the top of range.
thanks I didn't know that.
waltr wrote:MichaelN's suggestion will work. Look up how to use an LM317 as an adjustable current source in the data sheet or in an app note.
Your right. It looks like it might work a little better. Not sure which setup im going to use yet but I ordered some parts to test the original circuit and ill go from there.

thanks for the replies, I'll post back later with some more questions/updates.

Re: Another LED Project... help please.

Posted: Thu Mar 18, 2010 11:58 pm
by Silent77
Silent77 wrote:Image
How would you modify the above to work with this... http://www.sparkfun.com/commerce/produc ... cts_id=678

I tried hooking it up but I ended up smoking a TIP... So with four left I figured I better ask.

Thanks.

Re: Another LED Project... help please.

Posted: Fri Mar 19, 2010 1:22 am
by angelsix
Its an NPN transistor so you did put the LED bar on the collector side not the emitter side yeah? And add a 10k resistor to the base to limit the base-emitter current to 1.2mA and the minimum 25 DC gain will give the circuit close to 30mA (even though it will be limited by the LED bar anyway but doesn't hurt).

Other than wiring it wrong I can't see how you would of smoked a TIP they are rated at amps not mA so it won't be from over-current surely.

What I think you may of done is wired the LED bar so that the + is connected to the collector, but the Gnd is to the battery directly, and then the collector to the battery Gnd also, effectively creating a dead short for the TIP. For example I think you may of done this:

Image

When really you want this:

Image

Luke