I am experimenting with a simple circuit. I have an Arduino board, a proto-board and an IR sensor (that uses electricity from the Arduino board). I use a 9V battery to feed the Arduino.
My problem is that when the voltage in the battery drops to about 6V, the sensor and the Arduino board don't work anymore. I suspect that is because the voltage used for the logic (since the sensor is fed from the Arduino board (3.3V pin)), is not enough for both components.
I'd like to be able to use an electronic component to stabilize the voltage coming out from the battery while preserving the same voltage for the board and the sensor, 'till the battery dies. Would a capacitor do that for me? If not, what should I use instead?
Thanks.