Author Topic: Atmega and attiny power requirement to program with ISP mkii  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
Atmega and attiny power requirement to program with ISP mkii
« on: February 28, 2014, 03:50:51 am »
I want to make a target board for programming Atmel MPU's but don't know how much power I need to make available.  I'm assuming 500mA is way more than necessary.  I plan on powering the board with a 9v battery, so the less power I waste on heating the lab the better.  I'm guessing peak current draw will be in the 20 to 30mA neighborhood, but haven't been able to confirm that.  I went through the Atmega 328 datasheet, but my current aspirations to be a novice hardly qualifies me to know what half that stuff means.  :o
hello?.... <screech>.... is this thing on?
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: Atmega and attiny power requirement to program with ISP mkii
« Reply #1 on: February 28, 2014, 04:28:55 am »
I want to make a target board for programming Atmel MPU's but don't know how much power I need to make available.  I'm assuming 500mA is way more than necessary.  I plan on powering the board with a 9v battery, so the less power I waste on heating the lab the better.  I'm guessing peak current draw will be in the 20 to 30mA neighborhood, but haven't been able to confirm that.  I went through the Atmega 328 datasheet, but my current aspirations to be a novice hardly qualifies me to know what half that stuff means.  :o

Try, measure and add margin?
 

Offline FreddyVictor

  • Regular Contributor
  • *
  • Posts: 164
  • Country: gb
Re: Atmega and attiny power requirement to program with ISP mkii
« Reply #2 on: February 28, 2014, 08:48:29 am »
I'm guessing peak current draw will be in the 20 to 30mA neighborhood, but haven't been able to confirm that.

yep, thats in the right ballpark - I typically see less than 10mA just for mcu
don't forget that if you want to drive any LED's from your pins (low power ones only!) you'll need a fair bit more than this tho'
I would aim for a 100 or 200mA v-reg if this is a general purpose board
 

Offline poorchava

  • Super Contributor
  • ***
  • Posts: 1673
  • Country: pl
  • Troll Cave Electronics!
Re: Atmega and attiny power requirement to program with ISP mkii
« Reply #3 on: February 28, 2014, 09:43:44 am »
Use a switch-mode power supply. In most cases this is the most efficient way to power anything, that is not high-precision analo (it's just matter of more caraful design in the latter case).
I love the smell of FR4 in the morning!
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 10213
  • Country: nz
Re: Atmega and attiny power requirement to program with ISP mkii
« Reply #4 on: February 28, 2014, 01:19:36 pm »
A good size output cap on your powersupply should take care of any large spikes in current draw during programming.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline chipwitchTopic starter

  • Frequent Contributor
  • **
  • Posts: 316
  • Country: us
  • I barely know you!
Re: Atmega and attiny power requirement to program with ISP mkii
« Reply #5 on: February 28, 2014, 02:57:20 pm »
Thanks for all the replies.  I've measured the draw of my Mega 1280 board and it was down around 12mA, idle.  I didn't know if the act of programming might make that spike or not.

As I said, I'm using a 9v battery to power the target board.  I have some LM317 and some 5.1V Zeners to choose from for a voltage regulator.  I know they'll waste a little power, but if it only draws 20mA... a 150 ohm resister in series with the zener will keep the resistor under 1/8 watt.  An auto-shutoff circuit is probably in order.
hello?.... <screech>.... is this thing on?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf