Hi Leute!
Ich habe vor mit meinem Arduino Mega drei LED-Leisten zu betreiben, jeweils 8 LEDs. Also insgesamt 24 Stück. Ich plane so ca. 20mA pro LED. Es kann durchaus sein, dass alle gleichzeitig leuchten.
Schafft das der Arduino, oder ist sowas wie ein Transitor-Array als Treiber sinnvoller?
Ich meine mich erinnern zu können, dass die Digitalen PINs max. 20 mA führen. Sind das 8er LED-Leisten, die sich jeweils einzeln ansteuern lassen - oder so eine 8er LED-Reihenschaltung?
Egal wie sie beschaltet sind, direkt kann man sie nicht anschließen. Sollte es eine Reihenschaltung sein und 20 mA benötigt werden, so bräuchte man mehr Spannung als der Arduino hergibt. Sind die LEDs parallel geschaltet, so brauchen wir eine höhere Stromstärke.
Demnach wird man wohl Transistoren (bipolar oder Feldeffekttransistoren) nutzen müssen.
oder Transistorarrays wie den ULN2803.
Grüße Uwe
Hi,
laut Beschreibung
verträgt jeder Ausgang maximal 40mA. Es hängt nun von deiner Schaltung ab (inkl. Dimensionierung der Vorwiderstände der LED) wie du die LED ansteuern willst. Wenn jede LED an seinem eigenen Ausgang hängt dürfte das prinzipiell funktionieren.
Der Betrieb am USB Anschluß (wenn Du diesen benutzt) kommt dann aber schon an seine Grenzen wenn alle LED's leuchten. Diese benötigen dann schon 480mA + was der Arduino und der Rest noch so braucht.
Grüße
harding
OK, Danke.
ULN2803 ist bestellt!
harding:
Hi,laut Beschreibung
http://arduino.cc/en/Main/ArduinoBoardADK
verträgt jeder Ausgang maximal 40mA. Es hängt nun von deiner Schaltung ab (inkl. Dimensionierung der Vorwiderstände der LED) wie du die LED ansteuern willst. Wenn jede LED an seinem eigenen Ausgang hängt dürfte das prinzipiell funktionieren.
Der Betrieb am USB Anschluß (wenn Du diesen benutzt) kommt dann aber schon an seine Grenzen wenn alle LED's leuchten. Diese benötigen dann schon 480mA + was der Arduino und der Rest noch so braucht.
Grüße
harding
Da gibt es mehrere Pferdefüße:
- der Gesamstrom über Masse bzw Versorgungsspannung ist 200mA (dabei weiß ich nicht ob bei mehreren Massen bzw VersorgungspannungsPins dieser wert sich erhöht oder gelich bleibt)
- der Strom gewisser Pingruppen ist begrenzt, sodaß nicht alle Pin mit 40mA belastet werden können. siehe http://www.atmel.com/Images/doc2549.pdf Seite 368 Fußnote 3 und 4.
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:
ATmega1281/2561:
1.)The sum of all IOL, for ports A0-A7, G2, C4-C7 should not exceed 100mA.
2.)The sum of all IOL, for ports C0-C3, G0-G1, D0-D7 should not exceed 100mA.
3.)The sum of all IOL, for ports G3-G5, B0-B7, E0-E7 should not exceed 100mA.
4.)The sum of all IOL, for ports F0-F7 should not exceed 100mA.
ATmega640/1280/2560:
1.)The sum of all IOL, for ports J0-J7, A0-A7, G2 should not exceed 200mA.
2.)The sum of all IOL, for ports C0-C7, G0-G1, D0-D7, L0-L7 should not exceed 200mA.
3.)The sum of all IOL, for ports G3-G4, B0-B7, H0-B7 should not exceed 200mA.
4.)The sum of all IOL, for ports E0-E7, G5 should not exceed 100mA.
5.)The sum of all IOL, for ports F0-F7, K0-K7 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.Although each I/O port can source more than the test conditions (20mA at VCC = 5V, 10mA at VCC = 3V) under steady state conditions (non-transient), the following must be observed:
ATmega1281/2561:
1)The sum of all IOH, for ports A0-A7, G2, C4-C7 should not exceed 100mA.
2)The sum of all IOH, for ports C0-C3, G0-G1, D0-D7 should not exceed 100mA.
3)The sum of all IOH, for ports G3-G5, B0-B7, E0-E7 should not exceed 100mA.
4)The sum of all IOH, for ports F0-F7 should not exceed 100mA.
ATmega640/1280/2560:
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.
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.
Grüße Uwe
OK, dann sind die Treiber doch die bessere Wahl bevor Rauchzeichen sich bemerkbar machen.
Grüße
harding