Hi there. I'm an absolute electronics newbie and I've just recently started designing some toys using the arduino IC atmega328p-pu. It's the great new hobby I was looking for. But I've run into a little problem:
As I understand it, the IC needs a constant voltage of 5V to operate properly, anything lower than that will trigger the internal brownout detectors and the device resets.
Since I want my little toy to be portable, I decided to power it using two CR2450 cells, giving me an initial voltage of 6V. So initially, I have to lower this voltage to 5V to operate the IC. But as the battery voltage drops, my output voltage needs to stay the same. So, in essence, I need a magic circuit which takes whatever input voltage from 6V to 1.5V or however far the cells discharge and outputs a constant and relatively stable 5V to power the IC.
What would be the proper way of doing this? I understand some things about buck converters to raise the voltage and some things about the 7805 voltage regulator to lower the voltage but I need a device or circuit that does both. Thanks for your help!
As I understand it, the IC needs a constant voltage of 5V to operate properly, anything lower than that will trigger the internal brownout detectors and the device resets.
Since I want my little toy to be portable, I decided to power it using two CR2450 cells, giving me an initial voltage of 6V. So initially, I have to lower this voltage to 5V to operate the IC. But as the battery voltage drops, my output voltage needs to stay the same. So, in essence, I need a magic circuit which takes whatever input voltage from 6V to 1.5V or however far the cells discharge and outputs a constant and relatively stable 5V to power the IC.
What would be the proper way of doing this? I understand some things about buck converters to raise the voltage and some things about the 7805 voltage regulator to lower the voltage but I need a device or circuit that does both. Thanks for your help!