Proportional fan control. I suck at math!


Results 1 to 12 of 12

Threaded View

  1. #4
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by polymer52 View Post
    I need the fan to come on at 90 deg and output a PWM signal of 50% at that temp. Then increase the duty cycle of that PWM signal as temperature (voltage) increases to a maximum of 100% at 120deg and above.
    So basically, assuming the PWM part has 255 steps, when temp = 90 the PW would = 0, and when its 120 the PW = 255 ?

    So that's a 30 degree range represented by a 255 step. 255 / 30 = 8.5

    That would mean that for every degree the PW is 8.5

    You would then need to write your code so that if temp < 90 PW=0 and if temp >120 then PW =255 to give you your range. I would then use a variable to give you the 30 degree steps you need, something like range value = temp - 90, and then use this for the steps, sorta PW= range value X 8.5

    This may not be the ideal way, and I'm sure it could be simplified, but it's the way I would approach the problem. You need to choose a PIC and set the resolution of the PWM you wish to use, the more steps the smoother the fan control will be

    EDIT:

    just re-read your post, you want the fan to run at 50% at 90 degrees, if so then wouldn't that be a simple case of a statement like
    If temp >90 and <120 then PW=127
    If temp > 120 then PW=255

    Hope this helps
    Last edited by malc-c; - 3rd January 2010 at 14:09.

Similar Threads

  1. How do I give a radio control car autonomous control
    By Kenjones1935 in forum General
    Replies: 190
    Last Post: - 17th January 2010, 15:40
  2. Transistor selection, PWM fan control
    By 124C41 in forum Schematics
    Replies: 5
    Last Post: - 22nd December 2008, 15:33
  3. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18
  4. Replies: 9
    Last Post: - 30th August 2005, 06:33

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts