# Two or more different regulators connected to one battery

I want to make batteries provide power to both a micro controller (Raspberry Pi) and a 4x4 LED matrix. A simple circuit diagram is shown below. (only one LED is drawn in the fig. But regard it as LEDs in series and parallel.)

In reality, is it possible to connect 7805 and 7809/7812 to the batteries simultaneously? Current up to 16 mA will be required at the LED matrix.

Is there any important things I need to consider?

This adds another issue: The greater the difference between input and output, the greater the heat dissipation by the linear regulator, for any given load current. Thus, with a 14 Volt input on the 7805, with 100 mA of current to load, the regulator will need to waste (14 - 5) * 0.1 = 0.9 watts as heat. This is not a huge figure, no doubt, but will need a suitable heat sink.