Close

Guesstimating LED drive current

A project log for Low power IR beacon

A battery powered, periodic infrared beacon for a geocaching puzzle

piotrb5e3piotrb5e3 12/30/2017 at 15:580 Comments

Let's see how much current can we put through the LED and still make the 1 year battery life goal.

From the last log we have around 31ms of MCU activity time and 1.5ms of LED-on time. We also have around 180mAh of battery capacity left for transmitting the data.

From the datasheet we get at most 2mA supply current in active mode using the internal 4.8MHz RC oscillator (divided by 4, all peripherals disabled). We'll try to calculate the maximum number of transmissions from a single battery depending on the LED drive current.

The formula is:

Where Ntr is the number of transmissions, Qbat is the battery capacity, Qtr is the capacity used by a single transmission, Iμ and tμ are MCU current and time and ID and tD are LED current and time. We divide the calculated value by 365*24 = 8760 hours in a year to get the maximum number of transmissions in an hour.

And the calculated values:

LED currentTransmissions countMax transmissions per hour
10mA8`415`584960
100mA3`056`603348
250mA1`482`837169
500mA798`02991
1A414`85247

We can safely aim for 500mA and 1 transmission per minute. Even with extra losses in the system we'll meet the 1 year battery life goal.

Discussions