I have conflicting information on the max output rating for the Arduino Mega. Some say 200 mA and others say 800 mA like the Uno board. I am running 8 model railroad signal devices that have (3) 3mm LEDs (Red, Yellow, and Green) in each signal. Of the 24 LEDs, only 8 are energized at any point in time. 8*.020 = 160 mA. I believe I am good, but confused as to why the Uno board with 13 digital output pins can handle 800 mA and the Mega board with 40 or so output pins (not including all the TX RX IO pins) can only handle 200 mA. Lots of forum discussion on this, but most go over my head without answering the question! LOL
Simply, how many mA can all of the digital pins combined provide?
Well theory (math) is nice, and a good starting point, but reality is better.
The signals I am talking about are (model) railroad trackside warning signal devices that have a red, yellow and green light, and depending on which light is lit, tells the train's Engineer if it is safe to continue down the track.
Each of these signals are 2.1/2" in height and the LEDs use 30 gauge wires and a 1K resistor.
I connected the red LED on all 8 signal devices to my variable power supply, turned it on and lit all 8 red LEDs with 5 volts, and wow, all 8 only used .023 amps total.
I then disconnected 7 of them and a single red LED only used .002 - .003 amps. I connected the rest of the signals one at a time, and 2 signals used .006 amps, 3 signals used .009 amps, 4 signals used .011 amps, 5 signals used .014 amps, 6 signals used .017 amps, 7 signals used .020 amps and all 8 signals again only used .023 amps.
If this is the case, that is less than the max output from a single pin.
So, my plan is to connect the signals to the Arduino Mega 2560 on at a time, monitor the total current the Arduino in using after connecting each signal, and see just how much these signals are using.