My new official Mega 2560 r3 has a LDI 1117 regulator. From what I have seen there are 3 different regulators in use. I chose the one I am dealing with.
With higher Vin you have higher voltage drop across the regulator.
Pdiss = Voltdrop x Load Current.
The load current does not change because the output regulated voltage has not changed, just the volt drop which will increase, so power dissipation goes UP.
If a person were demanding a lot of current from the onboard 5v regulator, might it make sense to reduce Vin from 12v to 8v by using an external LM7808 thus transferring some heating away from the 1117 regulator.
One could argue that there was a difference in power dissipation for the GPIO pin based on whether or not it was sourcing or sinking.
e.g If the data sheet value for Voh minimum @5V Vcc is 4.2V @ 20mA then the power dissipated is 16mW. If the Vol max @ 5V Vcc is 0.9V @ 20mA then the power dissipated is 18mW.
I haven't seen any testing or documentation addressing that. One could say the difference is insignificant.
Or not.
Actual output voltage. This is important in relation to thresholds in connecting circuitry.
Heat production. Apparently 40mA on one pin (sink or source) is no problem. But there are groups of output transistors in close physical proximity, possibly creating a 'hot spot' in the chip (independent of sink or source). A trace in the chip will power such a group of outputs in close proximity, and now sink or source is important as it will cause current in a different trace.
Unless you operate the chip close to it's absolute ratings, I don't expect an effect on lifespan.
I am totally unfamiliar with PCB Trace parameters. Please forgive my ignorance.
Attached is what I believe are all the 5v & gnd connections on the 2560 board. What are the current limits for each pin? They are probably all different due to trace size and length. If they are all good for 1amp, then the question is moot.
Also the Mega2560 has a 500 mA poly fuse. Divide that by 54 IO pins and see that you won’t get 20 mA out of all of those pins at the same time.
Last time the Arduino site wasn’t a mess, board total current (source and sink) was easy to find. For the Uno it’s 200 mA.
Same goes with output shift registers. 8 pins with 40 mA max trying to drive 8 leds means transistors, resistors and more external power to drive those leds. And that’s where I went for WS28xx strings!
If you have your board powered from your PC and other circuitry powered from the 5V pin, the polyfuse will protect the USB port on your PC.
If you feed a lot of LEDs from the I/O pins the chip will smoke before the polyfuse reacts.
It seems I was not clear in my last question. I understand the I/O limits. I also see the polyfuse protecting the USB 5v. When powering the unit thru Vin, it appears that USBVCC is disabled by a MOSFET.
My question only concerns the 5v & GND pins max current capabilities.
All currents in PCB traces are limited by items other than their width.
Into barreljack: diode max 1A.
From VIN pin: same diode.
Into VIN pin: determined by 5V regulator.
From 5V pin: determined by 5V regulator or polyfuse.
Into 5V pin: determined by the chip.
From 3.3V pin: determined by 3.3V regulator.
Into 3.3V pin (not advisable!): current consumption of circuitry on the board.
Each I/O pin: determined by the chip.
Leaves the pathway from GND at the left to GND at the right. If you use that for any substantial current you violate the rules for good circuit design.
I can't say this loud enough. If you're planning on routing several hundred milliamps through the +5 power pins on a Mega, you're planning for failure. Change your thinking, do your power management off-board using a separate 5V supply. Leave the onboard supply for the onboard equipment.
And, if driving significant amounts of current (for example 50 x 15 ma LEDs on 50 digital outs), make sure the onboard regulator is optimally fed - 8V in, not 12V or more. Do a power analysis of your schematic, it's not hard, just tedious, and a good habit to develop.