Arduino Projects    |   Raspberry Pi  |     Electronic Circuits   |   Electronics Reference Design Library  |   AVR    |    PIC    |    8051    |    Electronic Projects

Temperature Dependent Fan


Table of Contents:

A M Bhatt
Obviously you might have seen so many temperature controller and indicator applications using different microcontrollers, micro-processors or other controlling devices. But this is the actual application of temperature controller that controls speed of DC fan as temperature varies. It is not a simple ON-OFF type controller that switches fan ON / OFF when temperature increases / decreases certain limit. But it is a type of controller that continuously varies speed of DC fan as temperature increases / decreases. That is a demo of actual industrial application.
In industry fan may be AC or DC (most probably AC) or it may be cooler. As the temperature increases the speed of fan also increases linearly to cool it down. And as temperature decreases the speed also decreases. For any constant temperature the speed also remains constant.

So here I present a demo of same kind of application. As the temperature increases from 25 oC to 55 oC the speed of DC fan increases from min to max. obviously the industrial temperature range will be in terms of 100 oC to 100 oC or even more but here for demo I have design it for very low range. At the end of article I have suggested some ideas some modifications with which the project can be used for actual industrial application.
Temperature Controlled Fan Block Diagram: -
The figure shows major building blocks of the system as temperature sensor, ADC (Analog to Digital Convertor), micro-controller (AT89C52), DC driver and 5-LED bar graph display. Let us see the function of each block in brief.
Temperature sensor: - it’s a transducer. It converts temperature into equivalent electrical signal. Its output voltage increases linearly with increase in temperature. So by measuring the output voltage we may observe increase or decrease in temperature.
ADC: - because the output of sensor is an analog form, it must be converted into equivalent digital form before it is given to micro-controller. So, 8-bit ADC converts analog signal from sensor into 8-bit digital signal that is given to micro-controller.
Micro-controller: - it performs following tasks
·                     Controls ADC and reads digital value at periodic interval
·                     Generates PWM and controls speed of DC fan through DC driver
·                     Indicates current speed on LED bar graph display.
LED bar graph: - its 5-step bar graph that displays min speed as one LED ON and max speed as all five LEDs ON
DC Driver: - the direct micro-controller output is not able to drive DC motor. So the DC driver will take input PWM signal from micro-controller and generates enough current to drive DC motor through this PWM.

Circuit Diagram

Source Code

This Code is only visible to Registered users. Please Login/Register


Comments (11)

hi  sir nice project i cant

hi  sir nice project


i cant get it in  coding op, eoc assigned for port 0 and 3 in macro expansion.

 plz send me the int1 function details. is it adc conversion process.if it what actually tells in if loop.

its not working plz help

its not working plz help

i work on this project.......

i work on this project.......

is it working or not?Please

is it working or not?

Please tell me,

I want to make it.

Nice project sir, please how

Nice project sir, please how can the power supply be connected to the circuit?

Temperature controller

Temperature controller assembly code

can give me assembly code?

can give me assembly code? thank you

my email is "eugene_liewyq"

(... continued)  ""

i need programming and

i need programming and circuit diagram of fan speed control using at89c51 and ds1620

cannot download the circuit &

cannot download the circuit & source code. Please help

thank you 

thank you


Thanks for sharing! I learnt

Thanks for sharing! I learnt a lot from it.


Learn about the latest applications and industry trends with tutorials and white paper design resources on vertical markets.

Energy Harvesting
MEMS Technology
OpenSource Hardware
RF Wireless
Wireless Charging


You are here