0% found this document useful (0 votes)
95 views

Temperature Based Fan Speed Controller Using Arduino

Uploaded by

Issa Bakari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

Temperature Based Fan Speed Controller Using Arduino

Uploaded by

Issa Bakari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

International Journal of Scientific Research in Engineering and Management (IJSREM)

Volume: 06 Issue: 10 | October - 2022 Impact Factor: 7.185 ISSN: 2582-3930

Temperature Based Fan Speed Controller Using Arduino


1,
Raksha R Badigannavar, E&C Tontadarya college of Engineering Gadag.
2,
Amaresh M Kavadamatti E&C Tontadarya college of Engineering Gadag.
3,
Gururaj B Kulkarni E&C Tontadarya college of Engineering Gadag.
Corresponding Author: Dr. Shailaja M. E&C Tontadarya college of Engineering Gadag.

----------------------------------------------------***--------------------------------------------------------

ABSTRACT: We all know that we are moving towards We will be interfacing LCD display which will be used to
the automation. So basically in this project we will be display the set temperature as well as the fan speed in
controlling the speed of the fan according to the percentage.
temperature of the surrounding .The system will get the .
temperature from the temperature sensor and it will control
the speed according to the temperature set by the user. It II. BLOCK DIAGRAM: The below fig.1
shows the block diagram of the temperature
also uses the LCD display to display temperature from – 55
based fan speed controller,
to 125c and speed of the fan in percentage. The Arduino
device plays a major role as the processing part. If the
surrounding temperature is greater than set temperature fan
turns on else vice-versa.
By this project it is helpful to save the energy
where saving of energy is one of the most important thing
we are facing load shedding.

KEYWORDS: Arduino UNO, LM35, LCD display.

I. INTRODUCTION: Fig.1
In this project we will be using the concept of
firing angle to control fan speed. Basically the project is As shown in above block diagram ardunio uno acts as
based on controlling fan speed with respect to the the processing devise or controlling device,
temperature. temperature sensor and power supply are the input
The system will get the temperature from the devices to the arduino, fan and LCD display are the
temperature sensor via the ADC and it will control the output units.
speed according the set by the user. The temperature is set
in the source code are used to increment and decrement the III. CIRCUIT DIAGRAM:
temperature value according to the user requirement.
In this project, an ardunio Uno forms the The below fig.2 shows the circuit diagram of the
processing part, which firstly senses the temperature via the temperature based fan speed controller,
ADC the controller then compares the data with the set
temperature which the user can set via the keypad. If the
current temperature is greater than the set temperature the
controller turns ON the fan and the set speed will be
proportional to the difference between the set temperature
and the current temperature. If the current temperature is
less than the set temperature the fan will be turned OFF.
We will be using a transistor to provide the require firing
angle to the fan and the fan speed will change accordingly.

© 2022, IJSREM | www.ijsrem.com DOI: 10.55041/IJSREM16609 | Page 1


International Journal of Scientific Research in Engineering and Management (IJSREM)
Volume: 06 Issue: 10 | October - 2022 Impact Factor: 7.185 ISSN: 2582-3930

Specifications:

1. Microcontroller-ATmega328
2. Operating Voltage-5V Input Voltage
3. Input Voltage–6 to 20V
4. Digital I/O Pins-14 Analog Input Pins:6
5. DC Current for the 3.3V Pin-50 mA
6. Flash Memory-32KB SRAM :2KB
7. EEPROM-1 KB
8. Clock Speed-16MHz

LM35

Fig.2

Working: The LM35 temperature sensor sense the


souranding room temperature and analog signal is
given to the ardunio. Arduino converts the analog
singal into digital signal. It calculates the speed of the
fan rotation in percentage and display the fan speed
and temperature readings in LCD display.
Fig.4
The calculated fan speed is sent to the fan
through low frequency pulse width modulation Specifications:
signal. Which adjust the speed of the fan by varying
1. Measures directly in degree Celsius
the duty cycle. A 2n2222 transistor is used because it
2. Linear+10.0mV/degree Celsius
is good efficient and which act as switch and amplify 3. 0.5 degree Celsius accuracy (at+25degreeCelsius).
the signal. 4. Rated between -55 to +150 degree Celsius range.
5. Low cost due to wafer-level trimming
6. Operates from4 to30volts
7. Less than 60 Microampere current drains.
IV. MAJOR COMPONENTS USED: 8. Low self-heating, 0.08 degree Celsius and
Specification of the major components used in the Nonlinearity only +/-1/4 degree Celsius.
building of the circuit diagram is as shown in fig.3,
fig.4, fig.5. LCD Display

Arduino UNO:

Fig.5

Specifications:

1. Ground(0V)
2. Supply voltage; 5V(4.7V–5.3V)
3. Contrast adjustment;
Fig.3 4. When low command register is selected & when high
data register is selected.
5. Low to write to the register; High to read from the

© 2022, IJSREM | www.ijsrem.com DOI: 10.55041/IJSREM16609 | Page 2


International Journal of Scientific Research in Engineering and Management (IJSREM)
Volume: 06 Issue: 10 | October - 2022 Impact Factor: 7.185 ISSN: 2582-3930

register analogWrite(fan, fanSpeed);


6. Sends data to data pins when a high to low pulse is
given. fanLCD=0;
7. 8-bit data pins
8. Back light VCC(5V) digitalWrite(fan, LOW);
9. Back light Ground(0V)
}

V. SOURCE CODE: if((temp >= tempMin) && (temp <= tempMax))


//#include <LiquidCrystal.h> {
//LiquidCrystallcd(12, 11, 5, 4, 3, 2); fanSpeed = temp;//map(temp, tempMin, tempMax, 0, 100);
#include <LiquidCrystal_I2C.h> fanSpeed=1.5*fanSpeed;
LiquidCrystal_I2C lcd (0x3F, 16,2); fanLCD = map(temp, tempMin, tempMax, 0, 100); // speed
of fan to display on LCD100
inttempPin = A0
analogWrite(fan, fanSpeed);
int fan = 11;
}
int led = 8;

int temp;
if(temp >tempMax)
inttempMin = 30; inttempMax = 60; intfanSpeed;
{
intfanLCD;
digitalWrite(led, HIGH);
void setup() {
}
pinMode(fan, OUTPUT);
else
pinMode(led, OUTPUT);
{
pinMode(tempPin, INPUT);
digitalWrite(led, LOW);
lcd.begin(16,2);
}
Serial.begin(9600);
lcd.print("TEMP: ");
}
lcd.print(temp);
void loop()
lcd.print("C ");
{
lcd.setCursor(0,1);
temp = readTemp();
lcd.print("FANSPEED: ");
Serial.print( temp );
lcd.print(fanLCD);
if(temp <tempMin)
lcd.print("%");
{
delay(200);
fanSpeed = 0;

© 2022, IJSREM | www.ijsrem.com DOI: 10.55041/IJSREM16609 | Page 3


International Journal of Scientific Research in Engineering and Management (IJSREM)
Volume: 06 Issue: 10 | October - 2022 Impact Factor: 7.185 ISSN: 2582-3930

lcd.clear();

intreadTemp()

temp = analogRead(tempPin);

return temp * 0.48828125;

}
Table.2

VI. RESULT:

The below fig.6 shows the working module of the


temperature based fan speed controller,

Table.3

VII. CONCLUSION & FUTURESCOPE:

Conclusion: This project elaborates the design construction


of fan speed control system to control the room
Fig.6 temperature. Efficient temperature sensor was chosen to
take the room temperature. Hence the fan speed will
increase automatically if the room temperature is increased.
The following table.1 depicts the results obtained by
As conclusion, the system perform very well for any
operating the prototype model at various different temperature changes in the souranding and can be classified
temperatures. It defines the behavior of the embedded as automatic control device.
system about how it reacts to variation of temperature at
real time.

Future scope:
• The proposed model can be improvised further to
monitor humidity, light & at at a same time to control
them.
• The project will concentrate on electric fan rather than
other type of fan such as celling fan.
• We can also draw graphs of variation in the parameters
using computer.
• It is used to send the data to the remote location using
Table.1 internet

© 2022, IJSREM | www.ijsrem.com DOI: 10.55041/IJSREM16609 | Page 4


International Journal of Scientific Research in Engineering and Management (IJSREM)
Volume: 06 Issue: 10 | October - 2022 Impact Factor: 7.185 ISSN: 2582-3930

REFERENCES: 2. Surabhi1, Upendra Prasad2 , Vivek Kumar Jain3,Vol.


1. Liu, Y., Zeng, J. and Wang, C. (2009). Temperature 4, Issue 7, July 2015, Design and Fabrication of
Monitoring in Laser Assisted Polymer Bonding for Temperature based DC Fan Speed Control System
MEMS Packaging Using a thin Film Sensor Array , utilizing Microcontroller and Pulse Width Modulation
IEEE Sensors Applications Symposium, New Orleans, Technique.
LA , USA. 3. MehtaV.K & Metha R. (2007). Prinnciple of
electronics ,S. Chand & company Ltd. New Delhi,2015

© 2022, IJSREM | www.ijsrem.com DOI: 10.55041/IJSREM16609 | Page 5

You might also like