Author Topic: LM317 voltage regulator breakout kit  (Read 15690 times)

0 Members and 1 Guest are viewing this topic.

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
LM317 voltage regulator breakout kit
« on: November 08, 2012, 05:49:52 pm »
I have a simple LM317 through-hole voltage regulator kit for sale on tindie. IT's for those cases when you get tired of building it once again on a perfboard and need a bit more permanent solution

https://tindie.com/kuzyatech/lm317-power-supply-kit/

Kit contents:


Assembled look
« Last Edit: November 08, 2012, 08:30:32 pm by reagle »
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #1 on: November 10, 2012, 12:13:36 am »
Three left !

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #2 on: November 10, 2012, 01:43:04 am »
Actually that was by design. I've seen too many variable things like that fry downstream circuits.
You could also just solder two single pin female headers in and make it a socket to change resistors in, I suppose

You could have used a pot for R2. Particularly if the intent is versatility and reuseability when breadboarding low power stuff.

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22254
  • Country: gb
  • 0999
Re: LM317 voltage regulator breakout kit
« Reply #3 on: November 11, 2012, 10:17:44 am »
How can you mount it? There are no holes on the PCB for screws.

Have you considered doing a pre-assembled version with SMT for everything except for the LM317 and LED? Both values for R2 could be fitted but optionally bypassed by jumpers giving the choice between 1.25V, 3.3V, 5V and 8.3V.
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #4 on: November 14, 2012, 12:10:00 am »
Added to the wish list for the next version - thanks :)

Offline ptricks

  • Frequent Contributor
  • **
  • Posts: 672
  • Country: us
Re: LM317 voltage regulator breakout kit
« Reply #5 on: November 22, 2012, 03:02:46 pm »
Next design I would use a design like this, covers all the bases.

http://www.ladyada.net/library/equipt/diypsupp.html
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 22254
  • Country: gb
  • 0999
Re: LM317 voltage regulator breakout kit
« Reply #6 on: November 23, 2012, 02:14:26 pm »
he didn't want to use a potentiometer because they're a pain to use.

Another option could be to use a DIP switch sorting out several resistors to give different voltages.
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #7 on: June 22, 2013, 02:41:54 am »
Well, it's only been like 8 months, but I finally got around to updating this design  ;D

Thanks for the suggestions, most of them made their way in:
http://kuzyatech.com/wp-content/uploads/2013/06/SCH_-201306_LM317ADJ_Reg.pdf

The kit is up on Tindie at
https://www.tindie.com/products/kuzyatech/new-version-adjustable-lm317-regulator-kit/

Changes:
1. Add mounting holes- a biggie! There are now three mounting holes sized for 4-40 screws (3.2mm diameter)
2. Move LM317 regulator to board edge, so it can be mounted on a heatsink
3. Add ability to adjust voltage: you now get a choice to either use an included 5K potentiometer for adjustable voltage or install a resistor instead to get fixed output. The values for 3.3V, 5V and 8V are still included
4. Add protection diode to handle shorts on the input.
5. Add cap to the feedback pin (together with a protection diode) to lower output ripple if desired as per appnotes.

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5304
  • Country: ro
  • .
Re: LM317 voltage regulator breakout kit
« Reply #8 on: June 22, 2013, 05:35:51 am »
I can't say that I like it. It looks too bulky and too... like you threw the components on the board, visually it doesn't look nice to me.

A cheap heatsink is maybe 20 cents, screw and washer is another 5-10 cents. I would add them to the package. See
http://uk.farnell.com/aavid-thermalloy/507302b00000g/heatsink-to-220-24-c-w/dp/1611415
http://uk.farnell.com/multicomp/mc33278/heatsink-to220-x-2-7-6-c-w/dp/1710623

I'd add some reverse voltage protection - you can't rely on people not connecting the input the wrong way... i'd consider using a p channel mosfet so that there won't be such a big drop at input. see    though p channel fets in through hole variety are a bit expensive

The output pins are in the center of the board - if I'd want to put it on a breadboard it would basically use up space both above the breadboard, and on the side of the breadboard... more clutter on the desk. Just picture it.

The green led is ugly as hell. Couldn't you find a rectangular or smaller led that would not take so much space? Is that led even lighting up when you set the output to 1.5-1.8v, considering it's a 2-2.2v forward voltage led (green usually is around that value) and you use a 3900 ohm resistor? That's what... 0.5 mA?
I'd use something like this http://uk.farnell.com/avago-technologies/hlmp-s201/led-rect-he-red/dp/1003236 .. 2.54mm pitch, small space on board, 1.9 forward voltage so would work even at low voltages..
It would be nice to have a USB jack on the board in a corner, jacks that have through hole pins are less than half a dollar, even less in quantity - a usb jack would allow people to power the board from a usb charger/pc etc so no extra investment in separate supply. Though since the Lm317 is used, there's little point in because of the voltage drop on it ... maybe if you use a lm1117 instead or something with even less voltage drop... I don't know.

 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #9 on: June 22, 2013, 02:23:10 pm »
Thanks for taking a look, I appreciate it, though I can't say I agree with you - it looks pretty to me ;)
Considering it took me this long to update the design, if I wait for perfection it will never ship.
Sure, there is a bunch of other things one can add, but you gotta stop at some point. If you make the thing un-killable for example, some kids will never learn to pay attention or what the magic smoke smells like

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM317 voltage regulator breakout kit
« Reply #10 on: June 22, 2013, 02:32:56 pm »
I agree, I don't think it needs reverse protection. Reverse protection is for entire devices, not components - it's the job of the guy assembling it to connect it right. What's next, electrolytic caps with embedded protection diodes?

Can I make one suggestion - one that should be an easy fix? Technically, the 240 ohm resistor they give in the datasheet is wrong - the LM317 theoretically has a minimum load of 10 mA, and 240 ohms across the 1.25V reference doesn't quite meet that. (240 is actually chosen for the LM117 with half the load requirement.) It's usually fine, but if you get a marginal batch of LM317s you may find some don't regulate very well if they're not otherwise loaded. (And they do the worst possible thing when that happens - the output goes high.) I'd halve both resistors if I were you.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #11 on: June 22, 2013, 02:53:23 pm »
Can I make one suggestion - one that should be an easy fix? Technically, the 240 ohm resistor they give in the datasheet is wrong - the LM317 theoretically has a minimum load of 10 mA, and 240 ohms across the 1.25V reference doesn't quite meet that. (240 is actually chosen for the LM117 with half the load requirement.) It's usually fine, but if you get a marginal batch of LM317s you may find some don't regulate very well if they're not otherwise loaded. (And they do the worst possible thing when that happens - the output goes high.) I'd halve both resistors if I were you.
Not a bad idea.  I could  also bump up LED current. Though the difficulty there is- without knowing what the end user will set output to, you don't know if the poor beast will be under or overdriven  ;D
« Last Edit: June 22, 2013, 02:56:21 pm by reagle »
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM317 voltage regulator breakout kit
« Reply #12 on: June 22, 2013, 03:00:19 pm »
With one extra transistor you can drive the LED with a constant current, regardless of output voltage. Hold on, I'll throw a schematic together.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM317 voltage regulator breakout kit
« Reply #13 on: June 22, 2013, 03:05:29 pm »
The trace is the LED current, and output voltage is on the horizontal axis. You can see that once the output hits around 4.5V, the LED current peaks at about 8mA and stays there no matter how high the output voltage goes. R3 sets the current - roughly (1.25V - 0.65V) / R3 = I(D1).

It's an emitter follower. It takes the 1.25V reference voltage of the LM317 and puts it across R3 (less the 0.65V threshold of the transistor). That makes (1.25V - 0.65V)/R3 flow through the resistor (Ohm's law), and the only place for it to go is through the LED. There will be a small brightness variation in real life, because as the output voltage rises the transistor will get warm and its characteristics will change, but this will be minimal.

By the way - in this example the LED current plummets to zero around 3V, but that's just because the LED model I chose in the simulator has a very high threshold voltage.
« Last Edit: June 22, 2013, 03:14:33 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5304
  • Country: ro
  • .
Re: LM317 voltage regulator breakout kit
« Reply #14 on: June 22, 2013, 03:10:28 pm »
There are led drivers like this one, which limits led to 10 mA no matter what voltage and don't take up as much space as a transistor (not to mention you won't have problems with hFe/beta and differences between transistors) but it's not through hole:

http://uk.farnell.com/on-semiconductor/nsi50010yt1g/ic-led-driver-50v-0-01a-sod123/dp/1794979RL
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: LM317 voltage regulator breakout kit
« Reply #15 on: June 22, 2013, 03:22:17 pm »
One obvious advantage of that is that the PCB layout doesn't have to be rearranged at all, it just directly replaces the resistor. I'm still a big fan of dirt-cheap jelly bean parts like transistors, though, and I don't think those problems really are going to matter when it's just driving an LED. But I do like it.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #16 on: June 22, 2013, 03:45:49 pm »
The other benefit, if we consider this to be a learning kit, is that we illustrate a few concepts like using transistor in this configuration.
If we use a CC chip, it just works,  but does not really teach much to a newbie

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3769
  • Country: us
Re: LM317 voltage regulator breakout kit
« Reply #17 on: June 24, 2013, 07:41:39 pm »
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: LM317 voltage regulator breakout kit
« Reply #18 on: June 24, 2013, 08:02:40 pm »
It has a built in DVM!

If I am not mistaken an autoranging DVM.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5304
  • Country: ro
  • .
Re: LM317 voltage regulator breakout kit
« Reply #19 on: June 24, 2013, 08:04:05 pm »
It's possible to do it in 4-5$, but in volume... the biggest cost reagle has is probably the 3-5$ pcb , probably made by laen at http://oshpark.com/.

If I can order  50 panels of double sided 300x250mm for 1350 euro at eurocircuits.. that ebay pcb is 70x55 so there's about 18 boards per panel, 900 pcbs in total.. so about 1.5 euro / 2$ per pcb (21% vat included, but as a company I wouldn't pay vat so take off about 250 euro and we're down to about 1.2 euro per pcb) ... and this is not cheap china pcb manufacturer.... they can probably get it down to less than $0.5

The seven segment display is some overstock/extra from a custom order (it's not regular seven segment with dots, it looks like it's from some type of clock display) so it was super cheap, i saw some of those on digikey from time to time for under 1-2$ ... the potentiometer is probably 0.5$ at 1000pcs or something like that... the ic is a plain microcontroller probably not even programmable (programmed in factory) that uses some voltage dividers to get the voltage... resistors and caps are a dime a dozen...
« Last Edit: June 24, 2013, 08:06:04 pm by mariush »
 

Offline reagleTopic starter

  • Supporter
  • ****
  • Posts: 564
  • Country: us
    • KuzyaTech
Re: LM317 voltage regulator breakout kit
« Reply #20 on: June 24, 2013, 08:24:41 pm »
Yep, these are very low volume, using oshpark made boards. There is no way I can compete with China. I could probably knock a few bucks off by going to itead, but I'd rather stay with US fab. Plus their quality is much nicer


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf