Hardware of the LED Fader 360
The LED Fader 360 is built arround the ATtiny15L mcu. It then connects to the existing signals on the RF-board on the XBOX 360, very few components are required.
Schematic and parts:
And here is the part list.
|C1||0.1uF Ceramic Capacitor||-|
|Q1||MMBT3906 smd PNP transistor||Or the 2n3906 holemount one|
|-||8-pin dip socket||Socket if you want to be able to
to remove the ATtiny15.
ATtiny15/25/45/85 ISP programmer connection:
Connect your ISP programming cable to this one if you don't want to do it in circuit.
Source code and precompiled firmwares
The source code and hex files can be found here. I just uploaded it without commenting it much or removing unused stuff (like individual led control and twirling). Hopefully I'll clean it up at a later time, don't have time right now.
The source code is a bit fragmented at the moment. This is due to a idiotic misstake by me when designing the PCB. I simply connected FP to the wrong pin and thus lost the external interrupt capabilities. No biggie, it was an easy fix. There for you can uncomment the "#define BAD_PCB" line in the source if you build it your self. The misstake on the PCB is that FP is connected to PB1 and VGND to PB2, instead of the other way arround.
I have also made it possible to burn the RSTDIS fuse and use PB5 to control a PNP transistor if you want to have the possibility to fade a few adidtional leds in synch with the ROL. This is nothing neccessary so if you are not interested in that, then just ignore it and the reset pin will work as usual.
Editing/compiling the code
There are many different editors and compilers for assembler code for the atmels. I used Atmels AVR studio that is free.
AVR studio 4
AVR Studio 4 is an easy to use editor and compiler. It has most of the functions that you could want and an excellent simulator that will come in handy when simulating your additions to the programs. To compile (and edit) your code you do like this:
- Extract the sourcecode to a empty directory
- Open AVR Tools 4 and create a new project with no entry file
- Add (by right clicking on the "Assmbler" folder on the left hand side and choosing "Add existing file") the entry file to the project (as this is the first file you add it will be set as the entry file, if its not, then right click that file and press "set as entry file")
- Now you can edit the code and then build (compile) it by pressing "F7"
- Press F7 the first thing you do to get all the included files easily accessible on the left hand side
AVR tools can be downloaded here.
Programming the MCU
After you have compiled/downloaded a hex file you need to program the mcu with it. To do that you'll need a programmer and some programming software.
There are a ton of different AVR programmers out there. I'm just link you to some easy and cheap ones I have found and if you want more info you can always visit avrfreaks.
- STKxxx Compatible ICSP - The one I use
- An easy to build/cheap serial programmer
- A simple USB programmer - I haven't tried it
There is also a hoard of programming software for AVRs, but not that many that are free and up to date. The best open source free programming software out there is without a doubt avrdude.
© 2007—2018 SICKmods