Temperature Controlled Fan Using Arduino (LM35 + Fan Automation)

 Temperature controlled fan using Arduino 



The Temperature Controlled Fan using Arduino is an automation project designed to regulate the operation of a fan based on ambient temperature. This project utilizes a temperature sensor (LM35) to continuously monitor the surrounding temperature.

 The Arduino processes this data and automatically turns the fan ON or adjusts its speed when the temperature crosses a certain threshold. This not only enhances user comfort but also conserves energy by operating the fan only when needed.

The LM35 temperature sensor outputs a voltage that is linearly proportional to the ambient temperature (10 mV per °C). The Arduino reads this analog voltage using its ADC (Analog to Digital Converter), converts it into temperature, and then makes decisions.


Components Used:

  • Arduino UNO

  • LM35 Temperature Sensor

  • DC Fan

  • Transistor 

  • Diode (e.g., 1N4007)Resistor (10kΩ)

  • Power Supply


If the temperature is below a certain level (e.g., 30°C), the fan remains OFF.If the temperature increases, the fan turns ON or runs at a higher speed.PWM (Pulse Width Modulation) is used to vary the speed of the fan if desired.

A transistor acts as a switch or driver to control the fan, since the Arduino cannot supply enough current directly.


Code:



Try this in tinker cad:

Temperature controlled fan


Comments