You also may not get 2.5V from the regulator if any appreciable current is drawn whilst running from the battery (especially as it discharges to around 2.8V, The 1117 requires about 1V of headroom from memory (yes, at 25C and 0 current, the dropout voltage is 1V -- at higher currents it rises...