element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino As PC Fan Controller
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 16 replies
  • Subscribers 394 subscribers
  • Views 3247 views
  • Users 0 members are here
Related

Arduino As PC Fan Controller

nicolaoscon96
nicolaoscon96 over 7 years ago

Hello there,

 

It's been a while to write here and I came back with a question. I want to build a fan controller for my desktop pc and I wanted to build it with an Arduino (Just add some modes like gaming for full speed, office use for lower rpm and less noise)>>Where I will be able to control by sending a  number for example 1 for gaming mode 2 for office<<. I found some online and they are really cheap but I wanted to experiment with that. So I wanted to ask is this possible? Can I control (4 fans) with an Arduino and get feedback from them about the RPM and the voltage if it possible(have it connected with USB on my computer and read the output in Arduino IDE)? The fans that am using are 3 pins (black-red-yellow).

 

Thanks

nicolaoscon96

  • Sign in to reply
  • Cancel

Top Replies

  • koudelad
    koudelad over 7 years ago +7
    Hello, Honestly, the 8-bit microcontroller in Arduino won't have enough resources to do that. It only has 2 8-bit counters and one 16 bit counters. If you want to monitor 4 fans independently, you need…
  • shabaz
    shabaz over 7 years ago +6
    Hi Nicolas, If you want to do it accurately, as David says, you'll need different hardware. According to the link here: How PC Fans Work the three-wire fan uses it's third wire to provide speed feedback…
  • shabaz
    shabaz over 7 years ago in reply to gdstew +4
    Getting RPM feedback actually isn't the end goal. Why not sometimes actually try to understand the requirement, and form a more complete answer that helps the user? Just an opinion I've formed over the…
Parents
  • koudelad
    koudelad over 7 years ago

    Hello,

     

    Honestly, the 8-bit microcontroller in Arduino won't have enough resources to do that. It only has 2 8-bit counters and one 16 bit counters. If you want to monitor 4 fans independently, you need at least 4 counters that are able to capture external triggers (count edges from the microcontroller's pins), however, you also need 4 counters (or 1 counter with 4 period comparations) to independently drive them.

     

    I would recommend using a PSoC for this (32-bit core, Cortex M0), here is an ultra cheap kit: http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kits

    It features a ready made component "FanController" with 4 channels, which allow you to independently control and monitor 4 fans (and I think there can be more of these components put into a design).

     

    Before you start, make sure you know your fans.

     

    Two wire fans: DC brush fans, can be driven at constant voltage and regulated using a PWM (pulsing the power pin). They provide no feedback, however, you can externally monitor the current going through the coil.

    Three wire fans: DC brushless fan, can be regulated using a variable DC voltage. The additional pin is for monitoring the revolutions (provides pulses that can be count). (They have some electronics circuitry inside.)

    Four wire fans: DC brushless fan, need constant voltage, but are provide one pin for driving using PWM (usually 25 kHz) and one pin for monitoring (the "same" as a three wire fan).

     

    If you want to build your own controller, then Arduino and one fan is OK.

    If you want to build something reliable (embedded PID regulation, error handling, etc), go for the PSoC (or similarly powerful MCU).

     

    David

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • koudelad
    koudelad over 7 years ago

    Hello,

     

    Honestly, the 8-bit microcontroller in Arduino won't have enough resources to do that. It only has 2 8-bit counters and one 16 bit counters. If you want to monitor 4 fans independently, you need at least 4 counters that are able to capture external triggers (count edges from the microcontroller's pins), however, you also need 4 counters (or 1 counter with 4 period comparations) to independently drive them.

     

    I would recommend using a PSoC for this (32-bit core, Cortex M0), here is an ultra cheap kit: http://www.cypress.com/documentation/development-kitsboards/psoc-4-cy8ckit-049-4xxx-prototyping-kits

    It features a ready made component "FanController" with 4 channels, which allow you to independently control and monitor 4 fans (and I think there can be more of these components put into a design).

     

    Before you start, make sure you know your fans.

     

    Two wire fans: DC brush fans, can be driven at constant voltage and regulated using a PWM (pulsing the power pin). They provide no feedback, however, you can externally monitor the current going through the coil.

    Three wire fans: DC brushless fan, can be regulated using a variable DC voltage. The additional pin is for monitoring the revolutions (provides pulses that can be count). (They have some electronics circuitry inside.)

    Four wire fans: DC brushless fan, need constant voltage, but are provide one pin for driving using PWM (usually 25 kHz) and one pin for monitoring (the "same" as a three wire fan).

     

    If you want to build your own controller, then Arduino and one fan is OK.

    If you want to build something reliable (embedded PID regulation, error handling, etc), go for the PSoC (or similarly powerful MCU).

     

    David

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube