Go Down

Topic: Sodding Blue LEDs... (Read 1 time) previous topic - next topic

Eight

Just needed to publicly express my frustration with these things.

It's my first time trying to use one; and it doesn't seem to matter how much resistance you put in, an eyeball-melting blue light comes out.

It's now "dimmed" - I know this because all of my spare resistors are plugged into the breadboard and it is now possible to look at the sodding thing without an accute pain tearing out from the retina. But you couldn't say it was "dim", oh no.

raalst

The woes of high efficiency  ;D

jackrae

It may not be the "brilliance" of the LED that's the problem but the sensitivity of your eyes.   We have a cooker with a blue LED display and the colour appears to cause excessive flourescence which I feel is possibly a spectral sensitivity peak of the human eye.  Yes I know it's supposed by somewhere in the orange range.  But have you noticed how a flashing blue light on top of certain motor vehicles also draws your eye.

Apart from that, dimming of LEDs is best achieved by PWM rather than simple current limiting resistors.

jack

Eight

#3
Aug 24, 2010, 11:38 pm Last Edit: Aug 24, 2010, 11:39 pm by Eight Reason: 1
You could be right about the blue thing.

But unfortunately I can't use PWM, this LED is destined for a circuit that the Arduino won't have control over. It won't need to be dimmed in the traditional variable sense - just preset to an intensity that doesn't cut through things. ;)

deSilva

Blue LEDs come mostly in transparent housings; of course other colors as well, but we are used to green,, red or yellow LEDs in scattering colored housings. This makes an enormous difference in luminous density.

jackrae

have you tried coating it with a blue magic marker

Eight

@Jack,
Hahahah, that's a proper DIY hack right there mate. Excellent.

@deSilva
I'm sure I asked for a diffused casing but they gave me clear. So it pumps out a huge amount of light in an upward direction (imagining the LED is plugged into a breadboard) and not that much in the other directions.

Unfortunately I was stupid enough to be leaning over the breadboard when I plugged the thing in with only 330r. I was quite shocked (read: blinded) at the power.

Definitely cool tech though.

thegeekway

Hey mate, try roughly sanding the top to give you a nice diffused effect, those bloody LEDs set out to blind us ;)

P18F4550

Blue is down the spectum so apear brighter, you could diffuse the led with some fine sandpaper

mowcius

I love bright blue LEDs but I do agree that you don't want to look directly at them. The SMD wide angle LEDs are even worse.

Mowcius

Eight

Got myself a new pack of resistors and managed to mock-up the circuit without further damaging my eyesight.

Rather than create a new thread, I was hoping someone reading this wouldn't mind confirming if this is safe for the Arduino.

Basically, I want

  • Arduino digi pin 12 to be "disconnected" (or whatever the term is for the not-high-not-low state); this means that 5v flows through the 100k resistor to the LED and it's a bit dim.
  • Then, when the Arduino decides, it can send pin 12 high and give the LED a boost by applying voltage through the 10k resistor to a bright state (although not corrective eye surgery bright). I worked out that 10k and 100k resistors in parallel end up giving me about 10k resistance in total.


The bit that concerns me is switching the pinMode of digi 12 so frequently. Is this likely to cause problems?

Here's the circuit and a bit of test code (it all works).



Code: [Select]

void loop()
{
 pinMode(_LEDBOOST, INPUT);
 delay(5000);
 pinMode(_LEDBOOST, OUTPUT);
 digitalWrite(_LEDBOOST, HIGH);
 delay(5000);
}

retrolefty

Instead of that 100k ohm path to keep the led on dim you might just want to see if turning on the digital pin's pull up resistor might work. That would save you a resistor and some wiring.

Code: [Select]
void loop()
{
 pinMode(_LEDBOOST, INPUT);
 digitalWrite(_LEDBOOST, HIGH);  // this will power the led with the
                           // internal pull-up resistor at around 40k-50k ohms
 delay(5000);
 pinMode(_LEDBOOST, OUTPUT);
 digitalWrite(_LEDBOOST, HIGH);
 delay(5000);
}


Lefty

Eight

Hi Lefty,

Unfortunately, the supply line running through the 100k resistor is kinda part of an existing circuit that needs to stay. (Although I think it currently only has about 120R in there so I'm ramping it up). Essentially, I'm changing a red LED in a power-on/reset circuit, to a high power blue one and wacking in an extra feed to boost the LED luminosity when the Arduino (which has been inserted into the box) is influencing things.

Obviously there's no way you could have known all that. :)

In this circuit, I was trying to simulate the existing part of the circuit and then add in the new part.

sciguy

There is no problem with changing the pinMode a lot.

Example of where it is done frequently:
To read a 4 wire touchscreen, you change the pinmode twice every time you want a reading.
Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

Eight

That's good to know - cheers Sci.

Go Up