Author Topic: AVR ISP MK2 + LM317 Regulator Tutorial  (Read 8130 times)

0 Members and 1 Guest are viewing this topic.

Offline thakingTopic starter

  • Contributor
  • Posts: 18
AVR ISP MK2 + LM317 Regulator Tutorial
« on: April 01, 2011, 04:52:35 pm »
Hello all

I tried to make this modification on my ISP mkII, but have problem's

I use
-lm317
-2 x 0.1uF
-360 ohm
-220 ohm

I connected everything like dave in his video tutorial.

When I connected to USB, I get voltages:

5.1V and 2.83V  (switch on/off and 5/3.3 work OK )

I also try to read this voltages in AVR Studio 5(target voltages), which are the same.

But then I want to connect on chip, so I tried on xmega16a4. Before I connect I first try to connect via power supply to ensure that all work OK.    And it was, I can read xmega, set fuses....


Then I turn off power supply and try to connect ISP, with this modification. After I connect to chip and try to read, voltage drop to 1.5V. This also show in avr studio as target voltage(which we all know that it's too low)->1.5V

Any ideas how to solve my problem?
« Last Edit: April 01, 2011, 05:59:50 pm by thaking »
 

Offline thakingTopic starter

  • Contributor
  • Posts: 18
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #1 on: April 01, 2011, 04:57:41 pm »
pictures...
 

Offline thakingTopic starter

  • Contributor
  • Posts: 18
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #2 on: April 01, 2011, 07:56:44 pm »
Anyone?  ???

thanks
 

Offline ziq8tsi

  • Regular Contributor
  • *
  • Posts: 80
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #3 on: April 01, 2011, 10:11:31 pm »

Slightly off topic, but related to Dave's earlier tips about using PCBs as front panels: I like how Atmel have used the high-contrast silkscreen on the underside of the board to show the logo through the transparent blue case.
 

Offline neoone

  • Regular Contributor
  • *
  • Posts: 70
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #4 on: April 02, 2011, 12:05:31 am »
First thing - you should take Dave's advice and use some fixed 3V3 LDO instead of LM317. But any way - did you completely disconnected any other power source from your uC ? Try to put some resistor like 100 ohms at the LM317 output (without uC) and check if the voltage drops. If it does then there's something wrong with your mod and if it doesn't change the resistor to smaller value like 33 ohms or even 10 (watch out for the power, if the resistor is only 1/4W do it quickly) and if it still does not drop significantly then the problem is on the uC side. for example current flows to the power supply circuit which is still connected but not powered from mains. Of course that's only one possibility. Also the voltage in "idle" is a bit strange - even in worst case with 10% tolerance resistors it should be greater than 2.9V.
« Last Edit: April 02, 2011, 12:19:20 am by neoone »
 

Online oPossum

  • Super Contributor
  • ***
  • Posts: 1443
  • Country: us
  • Very dangerous - may attack at any time
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #5 on: April 02, 2011, 12:16:50 am »
Looks like it is wired wrong.

 

Offline thakingTopic starter

  • Contributor
  • Posts: 18
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #6 on: April 02, 2011, 06:12:23 am »
Looks like it is wired wrong.



Yes first problem was that, I see that dave has turn around lm317, but I have in my mind lm7805  ;D

Now worked fine on protoboard(I must change for LDO...as was said before)


Ok I will not include lm317 in my project, which 3V3 LDO do you recommend most for this
« Last Edit: April 02, 2011, 06:37:26 am by thaking »
 

Offline jahonen

  • Super Contributor
  • ***
  • Posts: 1055
  • Country: fi
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #7 on: April 02, 2011, 09:24:27 am »
Something like LM1117 might do the job, but it does not have very low dropout. It has the same pinout than LM317 that Dave used.

Regards,
Janne
« Last Edit: April 02, 2011, 09:27:18 am by jahonen »
 

Offline neoone

  • Regular Contributor
  • *
  • Posts: 70
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #8 on: April 02, 2011, 09:32:42 am »
whichever you can get cheaply just check first the data sheet for the capacitors since it's quite important thing for LDOs - when the caps are chosen wrong LDO can for example start to oscillate. As jahonen suggests LM1117 would do the job, it has 1.2V drop which should be OK.
« Last Edit: April 02, 2011, 09:35:47 am by neoone »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19834
  • Country: gb
  • 0999
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #9 on: April 02, 2011, 09:41:47 am »
How much current is being drawn?

The LM317 is only guaranteed to regulate properly when the output is 3V less than the input but that's worst case at 1.5A and over the entire temperature range so you will be able to get away with less than that at lower output currents, still 1.7V is clearly not enough.
 

Offline thakingTopic starter

  • Contributor
  • Posts: 18
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #10 on: April 02, 2011, 09:59:19 am »
I will buy:


REG104-33
http://focus.ti.com/docs/prod/folders/print/reg104-33.html

Single Output LDO, 1.0A, Fixed(3.3V), Low Noise, Fast Transient Respons
Output Capacitor Type:   Capacitor Free      ;D


I hope it will be ok, what you think?
 

Offline neoone

  • Regular Contributor
  • *
  • Posts: 70
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #11 on: April 02, 2011, 10:21:30 am »
well it is very good chip but did you check the price? I think it's over 10$ !! For one time thing you can go for it but it would hurt me if I where you ;)
 

Online oPossum

  • Super Contributor
  • ***
  • Posts: 1443
  • Country: us
  • Very dangerous - may attack at any time
Re: AVR ISP MK2 + LM317 Regulator Tutorial
« Reply #12 on: April 02, 2011, 11:27:41 am »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf