Go Down

Topic: Why arduino can fry? (Read 2353 times) previous topic - next topic

pedroply

Hi,

Today a read that my arduino uno can fry by conecting a DC motor direcly into one of the i/o pins.
Anyway my question is why can it fry my arduino?

This may look a ridiculous question but I hope you can answer to it.

thanks.

AWOL

Becasue the DC motor will have a very low resistance, and the AVR will exceed its 40mA maximum rating trying to drive it.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

pedroply

Thanks for the reply and for moving my topic.

What is the AVR?

Sorry for being so anoying.

AWOL

It's the microcontroller on your Arduino.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

dhenry

Quote
why can it fry my arduino?


Low (dc) resistance isn't the issue: you can actually short your avr's pins without damaging them.

Motors are inductors who will try the best to sustain its status quote. If the current going through it is cut off, it will create a significant voltage trying to sustain that current. That voltage is higher if the cut-off is quicker.

So w hen your io pins turn off fast, that huge voltage is applied to the pin -> causing it to go to the avr heaven.

AWOL

Quote
Low (dc) resistance isn't the issue: you can actually short your avr's pins without damaging them

You've done this?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

pedroply

Thanks for the reply's and the support.

you guy's answered my question very fast.

Thanks.

kg4wsv

Quote
Quote
Low (dc) resistance isn't the issue: you can actually short your avr's pins without damaging them.


You've done this?


I guess Atmel doesn't know what they're talking about when they give the current limits, both per-output and per-device, in the datasheet.


The simple fact is, you kill the arduino (actually the ATmega) by trying to draw more current than the chip is designed to handle.

-j

jrmcferren


Quote
Quote
Low (dc) resistance isn't the issue: you can actually short your avr's pins without damaging them.


You've done this?


I guess Atmel doesn't know what they're talking about when they give the current limits, both per-output and per-device, in the datasheet.


The simple fact is, you kill the arduino (actually the ATmega) by trying to draw more current than the chip is designed to handle.

-j



A short will either shut the regulator down for the DC input or open the PTC (fuse) for the USB. An overload could easily destroy the outputs. This is one of the reasons I cringe when I see people recommend that an LED being directly connected instead of through a resistor as an LED (or any other diode) is a short that just opens up below a certain voltage.

kg4wsv

Quote
A short will either shut the regulator down for the DC input or open the PTC (fuse) for the USB.


Yes, but that happens well after you hit the per-pin limit of 20mA.

It protects the regulator, or the device on the other end of the USB cable, but it won't do all that much to protect an overloaded output pin.

-j

PeterH


you can actually short your avr's pins without damaging them.


Yes, if you leave the Arduino powered off, or have the pin configured as an input or as an output set to the same level as the thing you 'shorted' it to.

Otherwise, I can't imagine what gave you the idea this was true.
I only provide help via the forum - please do not contact me for private consultancy.

dhenry

Quote
I can't imagine what gave you the idea this was true.


To design a robust product?

jrmcferren


Quote
A short will either shut the regulator down for the DC input or open the PTC (fuse) for the USB.


Yes, but that happens well after you hit the per-pin limit of 20mA.

It protects the regulator, or the device on the other end of the USB cable, but it won't do all that much to protect an overloaded output pin.

-j



That's why I specifically said "short" and not overload as you would have to overload all of the pins at the same time. Still a bad idea to do. BTW, don't the UNO specs say 40 mA?

Krupski


Quote
Low (dc) resistance isn't the issue: you can actually short your avr's pins without damaging them

You've done this?


FWIW... I've accidentally shorted outputs and even inserted the 328P backwards... never hurt the chip (yet).

Of course, in reality the datasheet specs MUST be adhered to or else the chip WILL get ruined sooner or later.
Gentlemen may prefer Blondes, but Real Men prefer Redheads!

kg4wsv

Quote
BTW, don't the UNO specs say 40 mA?


Yep, the ATmega datasheet says 40mA absolute max per I/O pin, 200mA max for the device.  I mis-remembered when posting earlier.

-j

Go Up