-
EEVblog #158 – AVR ISP MK2 + LM317 Regulator Tutorial
Posted on March 25th, 2011 31 commentsWho else but Dave can turn what was supposed to be a simple 2 minute AVR ISP hack video into a 30 minute episode on designing and measuring the performance of an LM317 voltage regulator circuit, with a bonus shootout between the Fluke 87V and the Gossen Metrahit XTRA multimeters?
EEVblog - Official Releases, EEVblog - Podcast datasheet, design, hack, multimeter, power supply, tips, tutorial30 responses to “EEVblog #158 – AVR ISP MK2 + LM317 Regulator Tutorial”

-
So, what does the little board is for?
Is there any chance that MK-II has already a 3.3 volt pin for it own use?
-
Mio Taalas March 25th, 2011 at 11:48
That’s great stuff you made there Dave. I really like how you take something as trivial as LM317 and shwt what when incorporating it into a design there’s much more to it than just putting it there and be done with it. A great lesson for beginners and more involved designers alike.
Hopefully you continue making a great contents like this from all the topics you run across
-
George Graves March 25th, 2011 at 14:39
Love it – I’m glad you went over board. Great video.
And the next time you find yourself prefacing things with “well, it’s only for a dev tool, and it’s not going to get cold, and…”, just look into the camera and say “This is what I had on hand, so suck it!” – then smile.
-
I don’t think the USB spec allows for pulling the 500ma @ 5v (?). Maybe it’s allowed in practise (after all the simple gadgets doing that) but I believe there was something supposed to be done first. Atleast this is how it’s with Firewire.
-
sinuscosinus March 25th, 2011 at 19:50
Great video, thank you!
Very informative. Would like to see more such “getting carried away” videos -> best stuff without being too much tutorial like
Greetings from Germany!
-
Napalm March 25th, 2011 at 21:27
Great video Dave thanks for the info and tips on the LM317.
I wanted to mention this as its not in the video. USB will only support 100mA per root port. To get higher the USB device needs to software negotiate with the USB host to get up to the maximum 500mA.
I am unsure if the AVR ISP MK2 does this. Perhaps you could monitor the current on the USB port when using the AVR normally.
Either way, I think its best to note this as you don’t want people to be damaging their devices.
For more info check out http://en.wikipedia.org/wiki/Universal_Serial_Bus#Power
Napalm
-
Strube09 March 25th, 2011 at 23:47
I can tell you for sure that in the battery industry almost all devices that can charge on the USB line (Phones, GPS, other small devices) do not negotiate current with a host. They are usually dumb devices designed to work at 5V in and just draw what they need up to the 500mA.
-
Shure, it’s a general consensus, and it’s out of spec. And it makes problems like, solved by “try a powered usb hub between”.
manufacturers don’t care such consumer grade equipment failure…
-
-
Richard March 26th, 2011 at 04:24
One subtlety — The output current as specified on the data sheet dropout voltage graph is, I believe, the total current sent out through the output terminal, including both the current for the resistors and the current for the load. But I believe the current you were measuring (or setting) via the constant current load did not include the current through the resistors. The difference should be 1.25V/220ohm, or a bit less than 6mA. Not significant at all for the higher load currents, but perhaps worth mentioning at the lowest load current. Then again, the effect of 20mA vs 26mA current difference on the dropout voltage is small, no doubt.
Another related point: The data sheet says the minimum load current can be as high as 10mA, though the typical value is 3.5mA. Your 220 ohm resistor is only pulling 6mA, which is well above the typical requirement, but not up to the max value on the data sheet. I’m guessing the higher minimum output current is probably only required for high values of (Vin – Vout) (It’s only specified for 40V), so it’s almost certainly not an issue when you’re pushing up against the dropout margin as in this case. It’ll probably work fine, but if you were doing a production design with a higher value of (Vout – Vin), and if you wanted really robust regulation all the way down to 0mA drawn by your output load, you might need to use a 125 ohm resistor for R1, and of course recalculate an appropriate R2. Something to consider for other designs.
-
VanLarry March 26th, 2011 at 05:14
I sure appreciate Dave’s honesty. Shows us the goof, eh shift the switch over and put a label over it. No problems. FIXED.
heh
-
Dave, I’ve been told that it’s possible to run the lm317 in a constant current mode too. Would you blog about this?
-
I’m glad you got carried away and boosted 3 into 30 min
Thanks!
I’m sure people noticed that in your post-it note schematic the input cap should be marked .1u instead of 1u.Até breve (from Portugal)
-
Hi,
That stuff is certainly useful, but I’d like to see a blog about wireless embedded applications. For example what is the best way to communicate with GPS, GSM/GPRS or any short range radio (for ISM frequencies). That would be a BLAST!
Hey Dave, what do you think do I really need to get the manufacturers dev board to get started. Also I’d like to learn something about Integrated Development Enviromets (such as AVR studio). And if I want to start from scratch with the radios I mentioned, wich is the best way to go on?
-Kodon
-
Karl (not that Karl, the other Karl) March 27th, 2011 at 19:52
Another armchair engineer, not knowing what he is talking about. Just randomly mentioning acronyms doesn’t mean you have a clue.
-
-
danfishman44 March 27th, 2011 at 13:00
of course this is my 1st time watching your videos so Im probably ten years too late, story of me life mate.
-
Ovidiu M March 28th, 2011 at 01:15
Excelent tip,
Sometimes I find it usefull to scrape some LDO’s from old PC video cards, specially the 1117 series. Excelent tip once againRegards from RO
-
Thanks Dave, I was about to write why not a 3.3 low dropout dedicated regulator or a zener + bjt solution, then I watched the video and got enlightened: the voyage matters more than the destination.
-
PedroV March 29th, 2011 at 18:52
Why do most chips put output voltage or Vcc or -Vee on the metal on it’s back? I understand when one wants to use several regulators or chips and bolt them to a Aluminum dissipator or to chassis they need to have a mica isolation. But my question is why is this like this??
Thanks!
-
Joker April 2nd, 2011 at 05:58
I have problem with it:
http://www.eevblog.com/forum/index.php?topic=2992.0
-
Dave,
Loved it! For a noob to electronics, datasheets can be exceedingly confusing.Between this video and your battery video I learned a ton of information about volt, batt, and especially datasheets.
I bow to the master!
Greetings from New Jersey!
-
MidnighToker April 11th, 2011 at 12:47
Another great video, but a quick clarification if you don’t mind.
You measured the idle of the programmer at about 100ma and are therefore assuming we have approx 400ma to power our circuit with.
Isn’t the programmer liable to draw way more current when its actually programming rather than idling?
eg. if our circuit is drawing 350ma and the programmer spikes to (say 200ma) when actually programming, isn’t this going to push you over the limit?
-I should probably point out that I’m a total electronics noob (except for a tonne of your videos, so I’m learning) and have almost certainly missed the point.
-
I just made your suggested modification to my own AVRISP MKII – to connect the 5V USB pin directly to pin 2 of the ribbon cable. For my simple hobby projects this is a really useful and neat hack which saves a lot of fussing around with batteries.
Nice one
-
Your posting, “EEVblog #158 – AVR ISP MK2 + LM317 Regulator Tutorial | EEVblog – The Electronics Engineering Video Blog” ended up being worthy of commenting on!
Basically desired to mention you did a tremendous job.Thanks for your time ,Kendall
1 Trackbacks / Pingbacks
-
[...] Jones at the EEVBlog has a video about adding power to the ISP cable, using an LM317 to provide both 5V and 3.3V. The issue with this, as he stated, was that the 5V source was very [...]
Leave a reply
-




firewalker March 25th, 2011 at 11:00