Hi Amplificar,
Welcome to our forum. ;D
You don't need to switch batteries, just stepup the voltage of two or three cells to any voltage you want, like the circuit does in an LED flashlight.
In Google, enter Silicon Chip Never Buy Another 9V Battery. Google will give you a link to Silicon Chip...