Questions about battery power supply and voltage regulator
Look at this answer Reducing 12V to 5V. If you're using battery, the 22uF capacitor is not required for filtering.
The voltage drop across this IC is 2V according to the datasheet. This means it will work as long as the battery voltage is greater than 7V.