I'm doing a small project for my Niece and Nephew that requires the project to be portable, ie batteries to power it.
I've decided to use an ATTiny85 and a 74HC595 shift register in the relatively simple circuit. However, the absolute max voltage for the ATTiny85 given in the datasheet is 5.5v, and 5v is recommended max. I can get away with using 4.5v via 3 x AA or 3 x AAA batteries but using a triple AAA or AA battery holder increases the size of the project box considerably.
I was thinking of using a 3v coin cell battery, but after doing the maths, rejected that idea. I also thought of using 2 x 3v coin cell batteries, until I read the datasheet for the ATTiny85 and saw the absolute max voltage of 5.5v.
I haven't had the restriction of portability before, usually settling quite happily with using batteries or a small, portable power bank. So I had to delve back quite some years to when I was trying to come to terms with discreet electronic components, and I thought about voltage dividers.
In essence, my question is this: Using the standard formula of
Vout = Vin * ( R2 / ( R1 + R2 ) )
and using Vin = 6v ( from the coin cells ), is it feasible to just add this relatively small voltage divider before the main circuit, so that Vout goes to a common Vin for the ATTiny85 and the 74HC595 ?
It's one of those, "..in theory it should work", moments but I'm just not sure, being way out of practice with discreet components and associated maths. I'd run a test myself, but I only have 1 ATTiny85 left until my order for more comes through, and I don't want to use the one I have on a theory that may blow the chip.
If not the voltage divider, then would a 5v series regulator with a 6v or 9v ( via 2 or 3 x 3v coin cells ) supply, work ? Or should I just 'bite the bullet' and work towards using 4.5v from 3 x AA batteries or hook up to a 5v portable USB power bank?
Any constructive criticism is very much welcomed.
Regards