HotSystems:
Was der max. Strom eines Arduino Pins betrifft, gibt es leider unterschiedliche Aussagen.
Im Datenblatt des Atmega steht 40 mA pro Pin.
Im Datenblatt des Arduino steht 20 mA pro Pin.
Max. 200 mA für alle Pins zusammen.
Laut Datenblatt des ATmega328 http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf
Seite 313:
30.1 Absolute Maximum Ratings
DC Current per I/O Pin ............................................... 40.0 mA
DC Current VCC and GND Pins................................ 200.0 mA
Das ist der max Strom, den der Hersteller in allen Lebenslagen garantiert, bei dem die internen Transistoren/Verbindungen noch nicht kaputgehen.
30.2 DC Characteristics auf Seite 313 f
Ein anderer max-Strom ist jener, der einen internen Spannungsabfall produziert, sodaß die Spannungspegel für H und L bei Ausgängen innerhalb der Spezifikation sind:
VOL bei IOL = 20mA und VCC = 5V max 1V
VOH bei IOL = -20mA und VCC = 5V min 4,1V
In den Fußnoten steht:
Although each I/O port can sink more than the test conditions (20mA at VCC = 5V, 10mA at VCC = 3V) under steady state conditions (non-transient), the following must be observed:
1] The sum of all IOH, for ports C0 - C5, D0- D4, ADC7, RESET should not exceed 150mA.
2] The sum of all IOH, for ports B0 - B5, D5 - D7, ADC6, XTAL1, XTAL2 should not exceed 150mA.
If IOH exceeds the test condition, VOH may exceed the related specification. Pins are not guaranteed to source current greater than the listed test condition.
bzw:
Although each I/O port can sink more than the test conditions (20mA at VCC = 5V, 10mA at VCC = 3V) under steady state conditions (non-transient), the following must be observed:
1] The sum of all IOL, for ports C0 - C5, ADC7, ADC6 should not exceed 100mA.
2] The sum of all IOL, for ports B0 - B5, D5 - D7, XTAL1, XTAL2 should not exceed 100mA.
3] The sum of all IOL, for ports D0 - D4, RESET should not exceed 100mA.
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test condition.
Diese Ausgangspegel für Spannungsversorgung 5V sind etwas enger definiert (max1V für LOW bzw mindestens 4,1V für HIGH) und die Eingangs Pegel etwas weiter (LOW max 1,5V und HIGH min 3V) damit diese Pegel sicher erkannt werden.
Ich weiß nicht wieso hier 20mA gewählt wurden.
Grüße Uwe