0

A have Arduino Mega 2560. I found in the spec that the maximum output current for each I/O pin is 40 mA.

Can i use 40 IO in parallel? That's mean 40*40ma*5 volt = 8000 mw = 8 watt.

What about the heat?!

Gerben
11.3k3 gold badges22 silver badges34 bronze badges
asked Nov 16, 2015 at 13:51

2 Answers 2

4

There are also limits on the total power of groups of pins,

  1. The sum of all IOH, for ports J0-J7, G2, A0-A7 should not exceed 200mA.
  2. The sum of all IOH, for ports C0-C7, G0-G1, D0-D7, L0-L7 should not exceed 200mA.
  3. The sum of all IOH, for ports G3-G4, B0-B7, H0-H7 should not exceed 200mA.
  4. The sum of all IOH, for ports E0-E7, G5 should not exceed 100mA.
  5. The sum of all IOH, for ports F0-F7, K0-K7 should not exceed 100mA.

So you are already limited to 800mA.

Secondly, you have to be careful to change all the pins at exactly the same time. Otherwise some pins will be low, and others high creating effectively a dead short. Or if you make sure the pins are inputs before changing, some pins will be on sooner, and those pins will then for a short period, handle all the current, and thus exceeding their limit for a brief moment. Which isn't that bad, but still not ideal.

So definitely don't use digitalWrite to change all the pins, one after the other.

answered Nov 16, 2015 at 16:04
2

No, you can't. Read the rest of the specifications and you'll see why. Also the 40mA is wrong. That is the absolute maximum. 20mA is the guaranteed limit for steady-state IO.

answered Nov 16, 2015 at 14:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.