{"id":437,"date":"2013-10-14T13:03:59","date_gmt":"2013-10-14T20:03:59","guid":{"rendered":"http:\/\/coralux.net\/?p=437"},"modified":"2013-10-20T22:39:03","modified_gmt":"2013-10-21T05:39:03","slug":"437","status":"publish","type":"post","link":"http:\/\/coralux.net\/?p=437","title":{"rendered":"PWM Fan Control Feature"},"content":{"rendered":"<p><div class=\"page-header\"><h1>Introduction <small>Fan control for the masses<\/small><\/h1><\/div><p class=\"lead\" style=\"text-align:left;\">Fan control. The Storm and Storm X controllers have been in users\u2019 grubby little hands for a few months now, and one of the chief requests we\u2019ve heard is that you want the ability to control not only the LEDs but also the fans that cool them. Well fear not, because we\u2019ve listened and as of today we\u2019re proud to announce that both the Storm and Storm X will ship with on-board support for fan speed control. The implementation on each of the boards is slightly different, and we\u2019ll get into the technical nitty-gritty in just a few moments. Suffice it to say that you now have the capability to support speed control of widely-available PC fans.<br \/>\n<\/p><\/p>\n<p>PC fans generally come in three flavors as far as control is concerned: 2-Wire, 3-Wire, and 4-Wire. The 2-Wire version is dumb, and simply turns on when plugged in. The 3-Wire version is the same, except it will tell you the fan speed in rotations per minute (RPM). We\u2019ll not concern ourselves with these two as they provide limited to no control over speed. The 4-Wire versions are what we\u2019ll focus on because they accept a PWM signal on the 4th wire, and just like dimming your LEDs with PWM, they will adjust the fan speed via PWM.<\/p>\n<p>Here\u2019s where we get just slightly technical. According to the PC industry <a href=\"http:\/\/www.formfactors.org\/developer%5Cspecs%5C4_Wire_PWM_Spec.pdf\">specification document<\/a>, 4-Wire Fans are to accept a PWM signal at a frequency of 25 KHz. The reason why we can\u2019t (or shouldn\u2019t) directly tap off of the LED PWM signal is that that LED PWM signal is generally required to be in the 1 KHz range. Therefore we\u2019ve had to do a little bit of tweaking to the underlying clock to achieve the specification\u2019s 25 KHz signal. The new firmware imparts this capability to the Storm and Storm X, as well as integrating an easy menu system for you to select the fan speed.<\/p>\n<p>For now, the fan speed selection is \u201cset it and forget it.\u201d You can specify the fan speed for when the LEDs are powered up, and the fan speed for nighttime mode. No more buzzing fans to interrupt the silence of night, plus extended service life for your fans. Some users have asked for temperature-feedback control of the fan speed. While we\u2019ve considered this option as a gee-whiz addition, we felt it unfair to limit the fan control capability to those who opt to purchase a temperature sensor. Plus, the reality is that once you\u2019ve set your LED schedule, the fan requirements shouldn\u2019t vary much at all. Therefore once you\u2019ve manually selected the speed necessary to maintain your desired LED temperature, you can sit back, crack a cold one, and enjoy the view.<\/p>\n<p><a href=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-1024x698.png\" alt=\"connection_diagram_01\" width=\"640\" height=\"436\" class=\"alignnone size-large wp-image-446\" srcset=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-1024x698.png 1024w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-300x204.png 300w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-244x167.png 244w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-31x21.png 31w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-38x25.png 38w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01-315x215.png 315w, http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/connection_diagram_01.png 1200w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><B>Storm X:<\/b> The Storm X has a slightly different implementation of fan control. It allows you to set the fan minimum and maximum PWM duty cycles (speed), and will output these settings on pin D9. The output will be the minimum value at Night, and the maximum value from Sunrise-Day-Sunset. Pin D10 operates as a digital output, providing at 0V signal at Night\/Sunrise\/Sunset, and a 5V signal during the Day. This can be used to run devices (via a relay) that only need to be on during the Day.<\/p>\n<p><b>Storm:<\/b> You&#8217;ll see a menu that reads &#8220;CH4 CH5 Fan? [Y\/N]&#8221; which allows you to toggle between controlling fans or not. It is important to note that this setting specifically affects CH4 and CH5 on the controller and those are the pins that you should use to control your fans if enabled. Once [Y] is selected, the CH4 and CH5 channels will output 25 KHz PWM signals in accordance with the settings set in the &#8220;Set PWM Day\/Night&#8221; dialogue. Therefore the signal will ramp between the two values, and you&#8217;ll want to pay attention that the fan ramps up with your lights so that nothing overheats during sunrise\/sunset.<\/p>\n<div id=\"myCarousel\" class=\"carousel slide\"><div class=\"carousel-inner\"><div class=\"item active\"><a href=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/Storm-02-Fan.png\" rel=\"lightbox[carousel]\"><img decoding=\"async\" src=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/Storm-02-Fan.png\" alt=\"\"><div class=\"carousel-caption\"><h4>Storm 02 Fan<\/h4><p><\/p><\/div><\/a><\/div><div class=\"item\"><a href=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/Storm-X-02_Fan.png\" rel=\"lightbox[carousel]\"><img decoding=\"async\" src=\"http:\/\/coralux.net\/wp-content\/uploads\/2013\/10\/Storm-X-02_Fan.png\" alt=\"\"><div class=\"carousel-caption\"><h4>Storm X 02_Fan<\/h4><p><\/p><\/div><\/a><\/div><\/div><a class=\"left carousel-control\" href=\"#myCarousel\" data-slide=\"prev\">&lsaquo;<\/a><a class=\"right carousel-control\" href=\"#myCarousel\" data-slide=\"next\">&rsaquo;<\/a><\/div>\n<p><span class=\"label label-warning\">Notice<\/span><br \/>\nDifferent 4-Wire PC Fans can respond to an input PWM signal in different ways. Some fans never fully shut off, even when given a 0 signal &#8211; this is meant as a safety feature. Some fans will allow control down to zero RPM. All fans will have a stall speed, typically around 20%, below which they will attempt to &#8211; and fail &#8211; to spin. As a best practice you should have your minimum fan setting either above the stall speed, or at zero.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PC fans generally come in three flavors as far as control is concerned: 2-Wire, 3-Wire, and 4-Wire. The 2-Wire version is dumb, and simply turns on when plugged in. The 3-Wire version is the same, except it will tell you the fan speed in rotations per minute (RPM). We\u2019ll not concern ourselves with these two [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/coralux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":29,"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":482,"href":"http:\/\/coralux.net\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions\/482"}],"wp:attachment":[{"href":"http:\/\/coralux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/coralux.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/coralux.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}