Skip to content

A temperature controlled PWM fan controller using an ultra-inexpensive (3 cent) Padauk microcontroller.

License

Notifications You must be signed in to change notification settings

serisman/pdk-temp-pwm-fan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdk-temp-pwm-fan

A temperature controlled PWM fan controller using an inexpensive (3 cent) 8-bit Padauk microcontroller.

Links

This fan controller drives a common 4-pin PC fan, by sending a 25 kHz PWM signal with a varying duty cycle. The duty cycle is adjusted up or down based on a high and low temperature set point.

  • If the temperature is below the low set point, the PWM duty is decreased by 1 every 1/3 second until it the fan is off (or as slow as it can go).
  • If the temperature is above the high set point, the PWM duty cycle is increased by 1 times the number increments above the high set point every 1/3 second until the fan is fully on.

The temperature is measured using a 10K NTC thermistor between VCC and a 1K resistor to GND forming a voltage divider.

  • The output of this voltage divider is fed into the Padauk microcontroller's Comparator + input.
  • The Comparator's - input is connected to an internally generated voltage source that can be set to 16 different voltage levels between GND and 1/2 VCC.
  • So, by changing the internal voltage source, the Comparator can be checked to see if the NTC's output is greater or less than a set point.

This temperature measurement isn't particularly precise, but should suffice for crude temperature control requirements, like cooling down a heatsink in a power supply or UPS, with minimal power loss and noise when cooling isn't required.

Schematic

Schematic

Compatibility

This project is currently intended to be run on the PMS150C Padauk microcontrollers, but it should be able to be run on pretty much any other Padauk microcontrollers that have a Comparator (most) and that are supported by SDCC and the Easy PDK Programmer.

Images

Front Back Finished!

Copyright and License:

About

A temperature controlled PWM fan controller using an ultra-inexpensive (3 cent) Padauk microcontroller.

Topics

Resources

License

Stars

Watchers

Forks