Which voltage regulatore should i use?

I just bought a ATtiny85.
I would drive it with 2 AAA = 3.2V when full charged and 2.0 when discharged.
The attinty accept from 2.7 to 5V

I was wondering wich voltage regulatur can i use. A fixed voltage output of about 3V would be nice.

I'm looking for something tiny and if possible not too energy drainer.

You would be best connecting the battery directly to the ATtiny. The ATtiny might work slightly below 2.7v, it may even make it to the 2V you mentioned (but unlikely). This configuration will have the lowest losses of any other option and without having actual numbers to justify this statement I believe it will be the best for you.

Note:

A practical description of a regulator is a device that outputs a constant voltage that is lower than the lowest input.

There are circuits that will boost a voltage but I suspect their energy loss would draw more from the battery than you would get if you connected the battery directly to the ATtiny with no regulator.

John

No need for regulator as John said.

Maybe consider a power supply supervision chip to cutoff supply to ATtiny when battery is too discharged?
Maybe then again its an overkill...

Or if operating voltage is critical, there's this regulator from Pololu. It's got cutoff as well.

why none suggested me to solve the issue by using an ATtiny85V (1.7-5.5V @4mhz) instead of ATtiny85???

squizzy91:
why none suggested me to solve the issue by using an ATtiny85V (1.7-5.5V @4mhz) instead of ATtiny85???

Because you said that you had an ATTiny85, not a V. In fact you were specific about the voltage. If you had a V, you should have said so.