8-Bit Sine Wave Table

This was what I needed for a rainbow RGB LED cycle…

Posted: May 10th, 2011 | Author: | Filed under: Code | Tags: , , , , , , , , | No Comments »

ATtiny software PWM to drive RGB LED

Based on Atmel’s AVR136: Low-Jitter Multi-Channel Software PWM Application note, here’s a 3 channel software-based pulse width modulator to drive a RGB LED. This is a proof of concept and currently there is some in-efficient color cycling code in there, but the goal is to drive these cheap chips using an I2C (two wire serial) bus. Disco dance floor anyone?…

Posted: May 4th, 2011 | Author: | Filed under: Code, Electronics | Tags: , , , , , , , , | No Comments »