Home Blog  





8 May 2008

The circuit is very simple. The RGB LED is hooked up to the PWM outputs on PORTB1 , PORTB2 and PORTB3 of the ATMega8. There is also a resistor between the LED and the ATmega8 to limit the current to 20mA. There is also a link to the datasheet of the RGB LED that is used in this project.

The code for the fading LED is written in assembler with the AVR Studio 4. In this example the LEDs will fade in and out one by one. The PWM timers of the ATMega8 are used to let the LED’s fade in and out. To use the PWM timers you first need to initialize the timers at the begin of the program code. The speed of the fading in and out can be changed with changing the clock speed of the ATM8.You can copy and paste the textfile into the AVR Studio 4. [via]

Fading RGB LED with PWM Control - [Link]

One Response to “Fading RGB LED with PWM Control”

  1. saeidnajjary Says:

    please send me this project
    program code/schematic/details…..
    e-mail:
    saeidnajjary@yahoo.com

Leave a Reply

You must be logged in to post a comment.



 
 
 

 

 

 

Search Site | Advertising | Contact Us
Elektrotekno.com | Free Schematics Search Engine | Electronic Kits | Electronics Projects