Go Down

### Topic: Attiny85 (Read 1 time)previous topic - next topic

#### FallenDemon

##### 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.

#### SatCure

#1
##### 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.)

#### JoeTac

#2
##### May 25, 2012, 11:58 pm
Hope this helps: http://www.youtube.com/watch?v=IjJWWGPjc-w

There are also calculators you can find if you google it.

#### JChristensen

#3
##### May 26, 2012, 12:16 am
I like to use R1=240? and R2=390? for 3.3V.

#### FallenDemon

#4
##### 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

#### RandallR

#5
##### 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%

#### FallenDemon

#6
##### May 26, 2012, 07:32 pm
Good point. Thanks.