Menu

ATtiny13 – controlling LED RGB | fancy light effects

This is a simple ATtiny13 project that controls LED RGB using Software PWM. In result It gives really nice and colourful light effect. In our circuit a LED cathodes are connected to PB0, PB1 and PB2 while common anode is connected to VCC. The code is on Github, click here.

7 thoughts on “ATtiny13 – controlling LED RGB | fancy light effects”

Hi! I really prefer to not share a hex files on a blog posts but I can send it via email if you want. Good hint. Next version of this project could handle two types of LED RBG (w/ common cathode and /w common anode). Thanks!

Hello. Thanks for the great tutorial. Tried replicating this and it works! However I’ve been out of my wits trying to modify the rate of change between colors. Tried changing osc. freq, putting delays on the loop, to no avail. Hope you can point me to the right direction…. Thanks again

Hi, thanks for your advise. Tried setting #define STEP (1) to 2 (or even 4), it made the rate of change faster. I wanted the rate of change to get slower. Sorry for not pointing it out in my original post. Setting #define STEP to 0.5 was not good either… (actually it was bad, no rate of change). Maybe there is another way…perhaps? Thanks again!