loading

Using an ATtiny to control LED brightness?

Hey guys, I was wondering if any of you know how to control LED brightness using an AVR microcontroller. I'm using the ATtiny 2313... I was guessing that there is some way to do it using PWM, but I have no clue how to do so. Any help at all is appreciated! Thanks, -Muffinator

Picture of Using an ATtiny to control LED brightness?
phenoptix3 years ago
Funny I should stumble across this post tonight. Hope you have a good time at the summit this year!
gmoon9 years ago
Indeed, PWM LED control is the avr-libc simple demo project.
T3h_Muffinator (author)  gmoon9 years ago
THANKS SO MUCH!!
You're welcome :) And like the page says, you don't really even need a crystal with the 2313 or any newer AVRs...so the schematic is even simpler.