RGB LED Fan Controller (custom electronics project) - Page 3 - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Hardware > Overclocking and Modding
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 02-15-2010, 12:49 PM   #21 (permalink)
Lord Techie
 
S0ULphIRE's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 8,668
Send a message via MSN to S0ULphIRE
Default Re: RGB LED Fan Controller (custom electronics project)

I was lucky I guess, the course I did was pretty hands on. We had one class dedicated to learning how to use Microchip (pretty much like Eagle CAD) and another class after that to design/build a custom project.

Good job teaching yourself though, impressive
You remind me of a mate of mine, you two would get along great. You wouldn't be into arcade stuff as well would you?
__________________

__________________
"As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a sour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American." -- Douglas Adams
S0ULphIRE is offline  
Old 02-16-2010, 12:41 PM   #22 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

Finally got at least a really basic GUI on the PC. I haven't got the connector to attach the LED's to the board so I decided to try making a computer interface for just the fan speed. I found that GTK+ is not too hard after reading tutorials for QT, Visual C++, GTK+, etc. Right now all I have is a slider that goes from 0 to 255 and sends out the value on the serial port when the value changes but it seems to work well.

__________________

__________________

CalcProgrammer1 is offline  
Old 02-16-2010, 04:13 PM   #23 (permalink)
Lord Techie
 
S0ULphIRE's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 8,668
Send a message via MSN to S0ULphIRE
Default Re: RGB LED Fan Controller (custom electronics project)

seriously dude, for simple programs like that use AutoHotkey. It's the bomb, saves a ton of time and effort.
It'd take like 3 mins to create that, and 10 mins to create something that looks professional and 'finished'

It's also easy to interface with other programming languages, so if you need to you can still use a bit of C, or whatever you'd like.
__________________
"As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a sour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American." -- Douglas Adams
S0ULphIRE is offline  
Old 02-17-2010, 12:20 AM   #24 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

I want to use C++ because it's the most common programming language out there, plus I'll probably have to learn it eventually in a programming class (our current class will cover basic QT later this semester) and GTK+ is common and cross-platform. It's actually quite easy to use if you know C++. For now I'm just going to try basic GUI's but after I finish the project I might come up with some app to check your e-mail or instant messaging, since the fan is essentially a big glowing light on the front of the PC it would make a great status indicator, have it slowly pulse red if you have unread e-mails or a certain pattern for IM's, not sure how to tie into web streams like that though, might have to finally learn something other than C++.

I would also like to make a web page that controls the colors since the fan is in my server, but tying web pages to the serial port is going to be hard.



Using a protocol that I drafted a few weeks ago I'm also starting to work on the actual code. I created an RgbFan class that has functions to connect, disconnect, set LED color, set fan speed, and read RPM's. It's going to use a ping for connection (whenever the PC tries to connect, it will ping the controller and wait for a reply, if it doesn't receive a reply then the PC will still say it is disconnected). This class will be easy to re-use in other applications and prevent from having to re-write connection and communication code.
__________________

CalcProgrammer1 is offline  
Old 02-17-2010, 01:48 AM   #25 (permalink)
Lord Techie
 
S0ULphIRE's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 8,668
Send a message via MSN to S0ULphIRE
Default Re: RGB LED Fan Controller (custom electronics project)

nice
It might be a good idea to have a drop-down list next to each of the rgb led # headings, with a few preset colour combinations in the list.
__________________
"As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a sour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American." -- Douglas Adams
S0ULphIRE is offline  
Old 02-17-2010, 10:10 AM   #26 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

That is a good idea, I have some preset colors on the microcontroller code but I stopped using them when I started doing serial communication. Need to figure out how to do drop down lists but it shouldn't be too hard, I think I'll put just the colors that you can make by turning on/off LED's, not by fading them, as those colors look the best, those are red, green, blue, yellow, cyan, magenta, white (just combinations of turning RGB on and off).
__________________

CalcProgrammer1 is offline  
Old 02-21-2010, 01:25 AM   #27 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

The hardware is FINISHED! I got my resistors and connector in today from Digi-Key and finally finished the board. It works! I also coded in a real serial port system with the ability to control each LED individually. Using the magic of copy and paste, I also got all the sliders in the GUI program functional. The only thing left to do now is finish the micro programming by getting the RPM counter finished and then program a Windows GUI (GTK+ is portable but I need to figure out how to do ports in Windows), I have to make a Molex cord to plug it into a PSU as well as connect my pin header for the internal COM port. I also want to make the color fade function that I found work, it is pretty cool, want it to slowly pulse into red when I have unread e-mails :P

Final hardware:
__________________

CalcProgrammer1 is offline  
Old 02-21-2010, 06:31 AM   #28 (permalink)
Lord Techie
 
S0ULphIRE's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 8,668
Send a message via MSN to S0ULphIRE
Default Re: RGB LED Fan Controller (custom electronics project)

It'd also be cool to have like a chaser routine, e.g. that 'spins' the colours on each fan slowly around. But meh yeah, nice job overall! Don't suppose you'll be posting up the code?
__________________
"As a result of all this hardship, dirt, thirst, and wombats, you would expect Australians to be a sour lot. Instead, they are genial, jolly, cheerful, and always willing to share a kind word with a stranger, unless they are an American." -- Douglas Adams
S0ULphIRE is offline  
Old 02-21-2010, 01:17 PM   #29 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

I will be! Once everything is entirely finished (the micro code, the hardware design, and a basic PC app/serial protocol specs) I'm going to post it all somewhere, probably on Instructables with steps on how to build it but I'll post the files as well. Since I made the PCB printout into a PDF you don't even need Eagle to print one.

And yeah, chaser would be awesome, just need to figure out how to write one.

EDIT:

Spent like 2 hours trying to get Windows to compile GTK+ apps, the pre-packaged dev libraries weren't set up properly and it took some searching to get the compiler (DevC++) to work with them. However, when it did work I just dumped in my Linux code, edited the serial port open and write parts, and it compiled perfectly and works.



All that's left is to add feedback commands to the microcontroller. This way when I close and re-open the GUI, it will read the current values of all LED's and adjust the sliders. I still need to find a place in the code to do RPM calculation as well and figure out how to send a 2-byte integer one byte at a time and rebuild it properly on the other end.
__________________

CalcProgrammer1 is offline  
Old 02-21-2010, 11:11 PM   #30 (permalink)
 
Join Date: Nov 2006
Location: Illinois, USA
Posts: 2,363
Default Re: RGB LED Fan Controller (custom electronics project)

It's installed now, still have to get RPM working and write feedback commands but I will do that later. I posted an Instructable on the project which I will update as final things are finalized. It was a great project, lots of fun to build something and see it work like this did.

Color Changing Digital PC Fan Controller
__________________

__________________

CalcProgrammer1 is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PROJECT : Kill Kitty (Now with nude pics) Harper Overclocking and Modding 57 12-16-2009 08:56 PM
Project Sestren Worklog - World's First Back/Outside Mounted Tri Loop Cube! pc1x1 Overclocking and Modding 102 12-06-2009 03:55 AM
Zalman Fan Controller Issue intent Hardware Repairs and Troubleshooting 1 01-14-2009 02:05 PM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.