This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Driving multiple LEDs

Hi,

I am driving 8 RGB LEDs directly from 51822, meaning there are 24 individual LEDs sinking current into the chip. The LED are off or partially on most of the time, but sometimes all need to blink with full power for few seconds. There are limiting resistors on red channels, other channels are driven directly.

The power source for the setup is a CR2032 battery. As the max current rated for this type of battery is in the range of 10-15mA, I'd like to know if it is safe to assume that such setup would operate safely inside 15mA total sink limitation?

Best regards,

Borut

  • As long as you have configured the GPIO pins correctly it should be safe. By-default, you can sink/source up to 0.5 mA per GPIO. However; You can enable a high-drive mode in NRF_GPIO->PIN_CNF[pin_num], field "DRIVE". This enables you to sink or source up to 5 mA per GPIO that has "H0H1" set, but there is a restriction on 15 mA in total on pins that has this configuration.

Related