(Read 1 time)
May 25, 2012, 11:48 pm
I am trying to power my Attiny85 using a 9V battery. I have an LM317T regulator. Output wise I am wanting 5V. Can someone help me with this? I know the pins on the LM317 are Vout, Adj, and Vin. I am just confused as to how to wire it all up to end up with 5V for the Attiny85 and some LEDs.
May 25, 2012, 11:55 pm
Just calculate the values of the two voltage divider resistors as per the LM317 data sheet. Add any decoupling capacitors required. (Long time since I used an LM317.)
May 25, 2012, 11:58 pm
Hope this helps:
There are also calculators you can find if you google it.
CODE is a mass noun and should not be used in the plural or with an indefinite article.
May 26, 2012, 12:16 am
I like to use R1=240? and R2=390? for 3.3V.
downloaded 76 times
May 26, 2012, 12:48 am
I got it guys thanks. For those that care I used a 220 ohm and a 68 ohm for 5.29 volts. XD
May 26, 2012, 07:04 am
That is a good amount of power being wasted in you divider. It add almost another 20mA to your power drain. Couldin't you choose larger values for the resistors? What would happen if you used 680 and 2.2k? That should cut the wasted power by 90%
May 26, 2012, 07:32 pm
Good point. Thanks.
May 27, 2012, 07:56 am
If you are building a blinky (processor, LEDs, supporting components) running your project directly from a few AA batteries is a great choice. In my testing, despite violating the electrical specifications, the ATtiny85
has been reliable down to 1.6 volts (at which point the batteries fail). The ATtiny85 (no-V) should have no problem running directly from 3 AA alkaline batteries; even at 8 MHz.