header
Back to Tutorials Page
  

 
 
MULTIPLE LEDS ON ONE OUTPUT PIN::

Each digital pin on the Arduino has an internal pull up resistor that can be turned on and off using the digitalWrite() command when it is configured as an output. When it is HIGH, 5V sent to the pin and can deliver 40mA of current. This is adequate to power an LED, but most devices that you will want to power will require more current. A device that is trying to draw more current than this can cause the Arduino to shutdown and could easily damage the chip. There are many methods to increase the current that can be sources on an output pin. When a relatively small amount of additional current is needed, a 2N3904 NPN Transistor (or any similar type) can be used to accomplish this. In this example, we connect four LEDs to one output pin using this simple transistor circuit. For powering higher current devices, see the higher current transistor or relay tutorials.

 

 

MULTIPLE LEDS ON ONE OUTPUT PIN WITH 2N3904 TRANSISTOR

multiple LEDs on one output with 2n3904 transistor

MULTIPLE LEDS ON ONE PIN WITH 2N3904 TRANSISTOR

multiple LEDS on one pin with 2N3904 transistor

2N3904 TRANSISTOR PIN LAYOUT

2N3904 PIN LAYOUT