output devices
dispositius de sortida

assignment
add an output device to a microcontroller board and program it to do something

RGB Led output device
I have done the Neil board RGB Led.

1. Download files to mill and sold the board and the files to program the microcontroller (ATiny45).
http://academy.cba.mit.edu/classes/output_devices/index.html

2. Open the terminal and do the Hex file. This time you don't need to prgram the fuses because you don't have any external clock.
make -f hello.RGB.45.make

3. Program the microcontroller
make -f hello.RGB.45.make program-arvusb2

4. If you have some problems programming the ATiny45 check the conexions and re-sold all the components. I had some problems and after doing it the board works!

 

01. the board

02. the board working

 

I tried to understand the C code that controls the fade and the colors of the LED. I downloaded a free program to edit C code called Smultron
http://sourceforge.net/projects/smultron/

The first part there are definitions that simplify the code. The pins connected to the led are redefined as a red (1<<PB1), green (1<<PB0), blue (1<<PB2).
I also tried to modify the code but its to hard and I will need more time to reach some result...

This is the code: