Hello,
I made a ciclo-computer that measures the speed and distance you travel by bicycle (attiny microcontroller and 7 segments LED display). Currently it is running on one 9V battery which lasts for about 8 hours.
My plan is to use a dynamo to charge the battery. To do this I have to cut off the power to the pic while the battery is charging ? If yes I would like to use 2 batteries and switch between them while one is charging. How could I switch between batteries and not make the microcontroller to reset? Do I use a capacitor?
Thanks,
Bogdan
I made a ciclo-computer that measures the speed and distance you travel by bicycle (attiny microcontroller and 7 segments LED display). Currently it is running on one 9V battery which lasts for about 8 hours.
My plan is to use a dynamo to charge the battery. To do this I have to cut off the power to the pic while the battery is charging ? If yes I would like to use 2 batteries and switch between them while one is charging. How could I switch between batteries and not make the microcontroller to reset? Do I use a capacitor?
Thanks,
Bogdan