2018-08-01 12:42 AM
Hai I have a simple design.I am using STM32F051R4T6TR.I just connected a led such that the led sinks the 20mA current when the led turns on.i happen to notice that each time i switch on my board the brightness of my led is getting reduced.this happened to me many times.The Led turns on with full brightness at first but later on after multiple turn on's the brightness is gradually decreasing and finally thebrightnessis too di, which would ultimately led to changing of the led.What would be the possible reason behind this? Can Anyone suggest me a reason behind this?Will this issue be cleared if i drive an led by sourcing from the pin rather than sinking?
2018-08-01 12:52 AM
I dont like to drive too hard from the processor pin, it does affect the A/Ds in some configurations,
however with super bright LEDs, you can get down to 2mA and still see the led easily...
@20mA I guess the LED is getting hot, it will die one day..
2018-08-01 12:53 AM
best to use a transistor like BC817 then you can drive 100mA..
2018-08-01 01:05 AM
How exactly do you have them wired? Do you have a series resistor to limit current?
2018-08-01 01:40 AM
yes i have placed a series resistance
2018-08-01 03:04 AM
1K ohm is 1mA per volt, less the LED forward voltage drop , 1-2mA... good enough for super brights