3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Color Changing Digital PC Fan Controller

Step 11Test and Install

Test and Install
«
  • IMG_2314.JPG
  • IMG_2310.JPG
  • IMG_2312.JPG
  • IMG_2316.JPG
  • IMG_2317.JPG
Now it's time to see how it works.  Plug the serial port into the PC, plug the power cord into your power supply (make sure you orient it right on both ends, +12V goes on the LEFT looking at the board from the top), plug the fan in (so that the tabs face towards the center of the board) and plug in the fan LED's (so that the ground pin goes on the RIGHT).  Turn on the power.

You'll need your AVR programmer now.  The first thing you want to do is change the frequency of the internal oscillator.  By default, ATMega168's come with the clock/8 internal prescaler enabled.  This causes the chip to run too slow for this application and the LED's will just flash without glowing solid (or at least  appearing to using PWM).  You need to reprogram the fuse bits to turn off the prescaler.

Using AVRdude, this is accomplished by the options:

-U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xf9:m


After applying these, the lights should fade smoothly and serial communication at 19200 baudrate should work using the supplied Windows or Linux GUI program (download at the end of this Instructable).  If so, the board works fine and you can install it.  This depends on your case, so just install the fan as usual and mount the controller board however you can (I used tape, it's basic but it works).  Also remember to insulate the board so it doesn't short out against the case frame.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
52
Followers
9
Author:CalcProgrammer1
I'm attending Missouri University of Science and Technology for Computer Engineering. I like working with electronics, and I'll post instructions on projects. I also like the Nintendo Wii and the Xb...
more »