First try at an LM317

An attempt to replicate the reference example from the LM317 datasheet

This is a basic linear voltage regulator. Instructions will follow.

By pagrus
Created on July 29, 2011, 05:23

Category: Analog

Difficulty: kids

License:  Creative Commons Attribution-Share Alike 3.0 Unported License

Tags: lm317, power, regulator

Files

Fritzing Files

Links

Comments

  1. pagrus # July 29, 2011, 5:28 a.m.

    Any help would be much appreciated. Not even sure if I'm on the right track. TIA
  2. laserguy # July 30, 2011, 10:53 a.m.

    The LM317 is an nice beginner device to experiment with, and can be used for either voltage or current regulation, depending on the design. Just D/L'd new Fritzing, and took a quick look at your schematic... R1 & R2 are set-up as a voltage divider. Because they are both the same value, the voltage in between them (at ADJ) is 1/2 of the the output voltage. The key to working with this device is to realize that it wants to see 1.25V at the ADJ pin, and will vary the output voltage to achieve that. Because your voltage divider is set-up to produce 1/2 of the output voltage to ADJ, then this circuit will try to produce 2*1.25 = 2.5V output. Notice I said TRY - the problem with your circuit is the LM317 is not a very efficient device, and requires a certain minimum amount of voltage difference between the input voltage and the maximum output voltage it can produce in order to function correctly - this is called the "Drop-Out Voltage". This minimum voltage difference between the input & output varies by temp. & current, but for the LM317 typically you want at least a 2.25-2.5V difference to be safe. Your schematic shows only 3V in, and you are trying to get 2.5V out - this will not work right - you need more input voltage. But you don't want the input voltage to be too much higher than needed, either. This is because the LM317 is what is called a "linear regulator" - the excess input voltage just gets converted into waste heat! 5V input would be just about perfect for your circuit - it is also a very common voltage to find. It is one of the standard voltages a PC power supply produces, it is also the voltage many USB-based power devices produce. 6V battery would also work quite well - you just need to use four 1.5V batteries in series instead of two! ;) Another solution to this problem - they also make fancier "low drop-out" regulators (called this because they require a smaller drop-out voltage difference), such as the LM1117T-ADJ, these newer devices let you get away with a smaller minimum voltage difference than the older LM317 device.
  3. pagrus # Aug. 1, 2011, 7:17 a.m.

    Thanks for the notes laserguy. I forgot to change the resistor values, I was planning on using 5 or 6V in to get 3.15V out.
  4. pagrus # Aug. 1, 2011, 8:36 a.m.

    Oh I made some changes but can't seem to upload a new .fz
  5. Zyrus thc # Dec. 14, 2011, 6:11 p.m.

    http://www.electronics-lab.com/articles/LM317/

Login to post a comment...
  • Print this
© 2007 - 2011 University of Applied Sciences Potsdam