I have a microcontroller clock project that would use 4 AA or AAA batteries as a backup in case the supply is removed.
I have an idea to use a LM317 with a constant current through the batteries, and connecting the AVR supply across the battery also. The batteries would act as a voltage regulator and obsorb the current not used by the uC. Would this approach work? Is there a better way to do this with the least amount of components?
Thanks in advance.
I have an idea to use a LM317 with a constant current through the batteries, and connecting the AVR supply across the battery also. The batteries would act as a voltage regulator and obsorb the current not used by the uC. Would this approach work? Is there a better way to do this with the least amount of components?
Thanks in advance.