We've all seen LED fans that you can put in your computer to make it look cool.  They usually come in blue, sometimes red or green and consist of a basic PC fan with 4 bright LED's mounted in the 4 corners.  They source their voltage from the fan's power input, so if you're using a fan controller (either the one built into your motherboard or otherwise) to slow the fan, the LED's get dim.

Well, I got a new case for my server and it took 120mm fans, so I had to buy new fans for it.  I got a nice blue LED fan for the front but one of the LED's was burned out and it didn't look good, plus the fan was loud and I was out of controllable channels on my motherboard.  I got a free replacement for the bad LED, but I already had my mind set on converting the fan with the bad LED into something much better using what I'd learned about microcontrollers last Fall.  The plan?  A self-contained, digital, full control fan controller based around an AVR microcontroller that could have fine control over the fan's speed, read back the RPM, and control not just the brightness of the LEDs but also the color.  Having seen a lot of cool projects using RGB (red-green-blue) LED's online, I figured it would be a good project.

Step 1: Find a suitable fan for modification.

If you don't have an LED fan already, you can't just convert a plain fan.  The fan I am using cost $5 on NewEgg and they sent me a free replacement for one bad LED (yet they let me keep the "bad" one so I used it for this project).

Things you want:

Clear plastic.  Tinted plastic may give unwanted effects (but if you want to try, go ahead, it may produce a neat effect, I tried one RGB LED on a blue-tinted fan and it looked OK).  Black plastic won't give you the same effect, though I've seen LED fans that have black plastic and they do give the LED lines when spinning.

3rd wire (RPM sensor wire).  This wire (usually yellow or white) is what fan controllers use to count RPM.  It pulls low (connects to ground) twice per revolution of the fan, so you count falling edges per minute and divide by 2 (or count falling edges per second, divide by 2, and then multiply by 60).

3-pin connector.  The 3-pin connector is a PC fan standard, it's the connector that motherboards use and it's the connector I designed my controller to use.  Some newer fans that use 4 pin connectors won't work for this project.  It may have a 4-pin Molex (power supply) connector, I just cut it off and used that connector to connect the fan controller to my computer's power supply.

Good project, I opted for an easier option. I got two colour changing solar lamps (for the garden), dismantled them, took out the board with colour leds. Now because each was 1.5 volts I connected them in series and put the positive on the orange wire on the 24 pin motherboard connector and the negative to any 3 of the black wires. The I just mounted then into the fan and I all works perfect. P.S: I did this on the heat sink fan on my open server. <br> <br>Photos below vvvvvvvv <br> <br>http://www.instructables.com/files/deriv/FNZ/L202/HH2W0O0R/FNZL202HH2W0O0R.THUMB.jpg <br>http://www.instructables.com/files/deriv/FX1/FSHK/HH2W0O0N/FX1FSHKHH2W0O0N.THUMB.jpg <br>http://www.instructables.com/files/deriv/FIZ/Y68L/HH2W0O0L/FIZY68LHH2W0O0L.THUMB.jpg
I'm working on a new protocol for the &quot;FanBus&quot; RGB Fan Controller system. The &quot;FanBus&quot; design (see my more recent Instructable) is designed to have more than one fan on a serial port, but otherwise is identical hardware. I'm using the original design built here as a test bed for new software, this time running the serial line at 38400 baud (up from 19200) and implementing a new register-based protocol that should make communications more reliable (designed so that collisions should be impossible). <br> <br>The new framing is: <br> <br>0x00 0xFF <br> <br>This is a write operation, for a read, a value of 0x01 is used instead for the start byte. To prevent collisions or framing errors, the value may NOT be 0x00, 0x01, or 0xFF (as if these were allowed, a misaligned frame could be read incorrectly as valid). As for the internal register address, the new scheme sets up a virtual register bank which consists of pointers to code variables, allowing quicker, simpler reads and writes of values without a long chain of if/else or switch/case statements. In tests it is performing well, and I got my Processing audio script up and running with it which looks epic. I need to clean up the code and revise the initialization sequence to get the save-to-EEPROM and fade-in operations fixed, then push the code to my 3 FanBus controllers in my desktop to do a multi-unit test. Just goes to show that hardware isn't the only thing, a nice software/firmware update can make a HUGE difference!
Edit to the above: <br> <br>The new framing is: <br> <br>0x00 (device internal address) (device hardware address) (value to write) 0xFF <br> <br>I used less-than/greater-thans which were not shown for some reason.
Does anyone have a circuit diagram for this? I would really appreciate having it, it would be for a class. Thank you.
nice might try it a lot of work thow<br>
http://www.youtube.com/watch?v=kQJaOcYtfAg<br> For some reason the embedding didn't work, but here's a video of my new RGB fan system in my new computer.&nbsp; The Processing script processes the audio output and uses the fan LED's for audio visualization.<br> <br>
AWESOME! if i had the parts i would do this. it looks totally awesome. i wish my case fan had leds, too bad its flat black. but thats where chrome spray paint comes in! (then i'll add my own,&nbsp;no matter what anyone says)<br /> <br /> and dont feel bad about your case, look at mine:<br /> -Intel celeron 400mhz processor<br /> -256mb SDRAM, hoping to bump up to 512<br /> -2 10GB hard drives (IDE)<br /> -350W power supply<br /> -64MB PCI graphics card<br /> Its a shame, i know :(<br />
Lol, wow!&nbsp; I'm going to build a new gaming desktop in the next few weeks, looks like I'll have to build another one of these.&nbsp; I'm going to use an Antec 900 case which has two front fans, each with 3 LED's instead of 4, so I&nbsp;may modify the design for 6 LED's.<br /> <br /> What's the circuit board hanging out the side of your PC&nbsp;for?<br />
I'm using an Antec 902 Case (Essentially the same but for a few minor details), and I have to say, it's great. Are you going to light up the &quot;Big-Boy&quot; fan on the top, because I personally think that would be awesome. You'd need more than four LEDs though, I'd think.
I finished installing the RGB fan in my 900 case (I just used the one I already built, though my new design is in progress). It looks really nice in the side panel. My new design is what I'm calling &quot;FanBus&quot;, a modified i2c bus interface where each fan has a small surface-mount PCB attached that has a microcontroller for the LED's and fan speed/RPM feedback. The fans will connect in a chain to a master device (probably a front panel with 2x16 LCD) which will interface it all to the PC via USB or serial. I'm working on a self-addressing i2c using a chain (addresses each chip down the chain until it gets to the end). This should allow me to light up the two front fans (which I'm going to replace with clear fans) and the side fan, maybe the top &quot;Big Boy&quot; fan if I can figure out how to put LED's in it and read RPM from it. The rear fans (I have two rear 120mm's sandwiching a Corsair H50 radiator) will probably be the TriCool fans pulled from the front since lighting the back isn't as important. I'll also build an LED light bar with a microcontroller and 5 or so RGB LED's to just light up the inside of the case. Combined with a Processing script to process audio from the stereo mix input it will look awesome with music.
I finally designed the new boards. I am using a half-duplex serial bus at 5V levels to communicate with multiple boards. The &quot;master&quot; is simply a MAX232 board with molex connector and RS-232 connector. It then connects using a 4 pin connector to each fan controller board (Ground, Data, +5, +12). The serial line is pulled up by a resistor and the transmit pins pull down using diodes to create the signals. The hardest part will be fitting the fans into my Antec 900 case's front fan mounts which are cramped and have no room for running wires.
hey, i got a new mobo for my &quot;GPC&quot;. along with a new case. Specs: -intel pentium D 3.2ghz processor -2 Gigs ddr2 ram -So far no hard drive -Dell 250W PSU (i really need to get a better one) -ATI Radeon 9250 256mb pci-e video card (the best ive got) and thats the specs of my upcoming &quot;GPC&quot;
sorry for the late reply. that cicuit board was used because my 64mb video cards fan dies, and i installed a new one. i didn't feel like cutting off the plug, so i soldered together a board so i plugged the fan in, and a floppy molex connector in. (pointless, i know) but you may/may not be happy to hear that i have migrated the internals into a new case. this case has a plastic (but i call it acrylic) sheet on the front which is edge lit by the power led and the hdd led. very nice, i have to say. i would have uploaded photos but i cant find my camera... unfortunately, the wires arent very much more organized. im building a gaming pc soon too. 1gb ddr RAM in 4 of the available 8 slots,a pentium 4, and possibly a 256mb agp card. (so its not very much of a gaming pc... but it would be the most top of the line pc ive ever owned.) im doing a led fan mod contraption maker recently posted, and it works.
AWESOME! A1 Job, I Really Like this project and It is definately On My to do List now, I am just trying to learn some things here and even Bought Me a Arduino Duemilanove to mess around with, But still am trying to do Code, and of Coarse Not very good at making Boards yet either, so If you happen to have a Board or Two available I surely could use. Please!! :) But anyhow Great Job!! 5 Stars all the way! and a Fav... Respect, WarLockStar
I only ever made one board, the one in the pictures. Making boards is pretty easy and cheap if you have access to a laser printer, you just print out the board design and iron it on to a blank copper clad PCB (buy on Digi-Key, Mouser, or other electronics store). Then you etch it with etching solution (you can make this using household chemicals, there are Instructables on it, or you can buy ferric chloride etchant).<br><br>I would recommend learning to code first before trying to make boards. Start by learning the Arduino and then try working with a bare AVR chip alone (the Arduino uses a different programming environment than AVR C).<br><br>Also, if you don't have one yet, buy a breadboard. They are incredibly useful tools for wiring up projects.
lol ok thank you, and yes I have several breadboards already and some other AVR programmers and misc mess of lots of chips and things I bought a Crap-load from a few Places in Hong Kong a while Back, started by Making a 3x3x3 LED Cube, and after Made a 4x4x4 but got stuck on trying to make code for it to work, the 3x3x3 was easier I had pretty much someone Gave me the outline for doing that one, and then I Bought RGB LEDs to Make another One But that was just before I got Ill and Had to take a break from it all... But yeah i was Hoping you Had any of the boards layin around.. :) it would Have Made things easier for me to do this Mod lol thank you for your Fast reply! Respect, WarlockStar
I&nbsp;finally got a music visualizer working for the fan.&nbsp; I&nbsp;wrote the code a while ago and never posted about it, but I've been tweaking it to make it better. &nbsp;Right now it's just written in Processing but it looks awesome.&nbsp; I'll post a video soon.<br />
Awesome project!<br />
&nbsp;Wow, i have never, ever seen a PDIP max232...
Awesome hack! Now write control software in php (a program that listens for incoming socket connections, and php-script that connects and sends commands) and let us control it, eh?&nbsp;^^ Perhaps even a camfeed of that delicious crossfading?&nbsp;;)
Great job :D<br /> <br /> +2 Internets for etching your own board, +5 for using an oscilloscope during prototyping ;)<br /> <br /> You also made it on Hack-a-day, <a href="http://hackaday.com/2010/03/03/led-and-fan-controller/" rel="nofollow">http://hackaday.com/2010/03/03/led-and-fan-controller/</a><br />
You can fix breaks in the toner transfer by using a sharpie. The sharpie marks won't dissolve in the acid, and can be removed later with isopropyl alcohol. :)<br />
<object height="364" width="445"> <param name="movie" value="http://www.youtube.com/v/4J4vlAMgQDQ&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;border=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /><embed allowfullscreen="true" allowscriptaccess="always" height="364" src="http://www.youtube.com/v/4J4vlAMgQDQ&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;border=1" type="application/x-shockwave-flash" width="445" /></object><br /> I&nbsp;filmed a video of the fan controller in action with a new &quot;color wheel&quot;&nbsp;program I&nbsp;wrote.&nbsp; It isn't perfect yet but it works nicely (the program randomly stops after several hours though, don't know why as it's in a while(1)&nbsp;loop).<br />
Wow. This is one of the few instructables that gets a 5.0 star rating from me. When I got my HAF932, I didn't like the red LEDs in the front fan, so I replaced them with green LEDs. I've always thought it would be cool to try an RGB LED fan + controller, but this is over-the-top; you even wrote a GUI program to control it.<br /> <br /> Awesome! (FYI, I found this instructable via Zedomax: &quot;http://zedomax.com/blog/2010/02/25/pc-fan-diy-how-to-make-a-nexus-one-pc-fan/&quot;)<br />
Thanks!<br />
I&nbsp;just got the RPM&nbsp;monitoring to work!&nbsp; Needed a 1 Hz loop to compute it (basically take the counts per second times 60)&nbsp;and ended up using the Watchdog timer since it was available.&nbsp; Also implemented feedback for all LED values and fan speed.&nbsp; I still want to get crossfade working in hardware and then the micro code is done.&nbsp; The GUI still needs some work (it is a sloppy mess of source code but it works enough for testing).<br />
Very cool. I might have do do this if one of my blue LED 80mm fans dies.<br /> <br /> A video would be nice.
I&nbsp;haven't filmed any more videos because I&nbsp;don't have the color fading working yet (want to write a &quot;color wheel&quot;&nbsp;app that rotates colors slowly around the fan).&nbsp; However, here's a concept video from when I&nbsp;was still designing it on the breadboard, I&nbsp;didn't have a working serial port code so I&nbsp;just used color fading to test the fan speed and color fading.&nbsp; While all 4 LED's are individually addressable, I&nbsp;was linking them all together to make it easy.<br /> <br /> http://www.youtube.com/watch?v=TJ_oJXBIyJ4<br />
Even just the fading is really cool. Nice Job!
Very awesome, and totally feature-worthy, congrats!<br /> <br /> Can't wait to see the final version of the program!<br />

About This Instructable


60 favorites


Bio: I finally graduated from Missouri University of Science and Technology (Missouri S&T, formerly University of Missouri Rolla) with a computer engineering degree. Originally from ... More »
More by CalcProgrammer1: Cheap and Easy Tachometer (RPM Sensor) for Brushed DC Motors Cheap Home Automation using Wireless Outlet Modules ATTiny USI I2C Introduction - A powerful, fast, and convenient communication interface for your ATTiny projects!
Add instructable to: