Sooo... having a lot of LM317 chips lying around, I've decided to use them for fun. I have found this website that describes the LM317.
http://www.reuk.co.uk/Using-The-LM317T-With-LED-Lighting.htm
Read from the photo of the chip onwards. Anything above it is not important.
From what I've gathered, the LM317 can be used as a constant current regulator. All I have to do is connect the 'out' pin with the 'adj' pin using the proper resistor. Well, I did it per the instructions. I wanted to use a 2ohm resistor to approach 600-700mA, but I couldn't find one so I used a 5ohm resistor. According to the calculation provided on the site, the thing looks like this R=volts/amperes. So R=1,25/0.25 R=5. A 5ohm resistor should give me 250mA of current. Read on...
As far as I understand all the LM317 datasheets, the pinout is the following (assuming the chip lies on it's back, like in the pic):
- left pin is adjustment
- middle pin is out (as well as metal backing)
- right pin is input
So according to the diagram I should short the adj and out pins with my 5ohm resistor and I did it. Then I connected the LED to the LM317 and connected everything to 12V. The LED burned out within 0.1 of a second. Why? It normally operates at 750mA and here I was supposed to have only 250mA. What did I connect wrong?
Afterwards I measured the voltage and the source has 11.9V, while the LM317 output has 11.2V. What's going on?
http://www.reuk.co.uk/Using-The-LM317T-With-LED-Lighting.htm
Read from the photo of the chip onwards. Anything above it is not important.
From what I've gathered, the LM317 can be used as a constant current regulator. All I have to do is connect the 'out' pin with the 'adj' pin using the proper resistor. Well, I did it per the instructions. I wanted to use a 2ohm resistor to approach 600-700mA, but I couldn't find one so I used a 5ohm resistor. According to the calculation provided on the site, the thing looks like this R=volts/amperes. So R=1,25/0.25 R=5. A 5ohm resistor should give me 250mA of current. Read on...
As far as I understand all the LM317 datasheets, the pinout is the following (assuming the chip lies on it's back, like in the pic):
- left pin is adjustment
- middle pin is out (as well as metal backing)
- right pin is input
So according to the diagram I should short the adj and out pins with my 5ohm resistor and I did it. Then I connected the LED to the LM317 and connected everything to 12V. The LED burned out within 0.1 of a second. Why? It normally operates at 750mA and here I was supposed to have only 250mA. What did I connect wrong?
Afterwards I measured the voltage and the source has 11.9V, while the LM317 output has 11.2V. What's going on?