Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
By
Biman Kr Pal (Roll No.11705515054 )
Sagar Ghosh (Roll No. 11705515058 )
Subhankar Paul (Roll No.11705515059 )
Avijit Dhibar (Roll No.11705514012 )
Guide Name
ACKNOWLEDGEMENT
It is a great privilege for us to express our profound gratitude to our respected teacher
Mr.Kalyan Biswas, Applied Electronics &Instrumentation Engineering, RCC Institute of
Information Technology, for his constant guidance, valuable suggestions, supervision and
inspiration throughout the course work without which it would have been difficult to complete
the work within scheduled time.
We would like to express our gratitude towards Mr.Arijit Ghosh,Ms.Naiwrita Dey,Mr.Srijan
Bhattacharya,Mr.Avishek Paul for his/her kind co-operation and encouragement which helped
me in completion of this project.
We are also indebted to the Head of the Department, Applied Electronics & Instrumentation
Engineering, RCC Institute of Information Technology for permitting us to pursue the project.
We would like to take this opportunity to thank all the respected teachers of this department for
being a perennial source of inspiration and showing the right path at the time of necessity.
Biman Kr Pal
----------------------------------
Sagar Ghosh
----------------------------------
Subhankar Paul
----------------------------------
Avijit Dhibar
----------------------------------
2
Temperature based fan speed controller
CERTIFICATE OF APPROVAL
3
Temperature based fan speed controller
RECOMMENDATION
I hereby recommend that the project report titled “TEMPERATURE BASED FAN
SPEED CONTROLLER ” prepared by Biman Kr Pal, Roll No: 11705515054, Sagar
Ghosh, Roll No: 11705515058, Subhankar Paul , Roll No: 11705515059, Avijit Dhibar , Roll
No: 11705514012 be accepted in partial fulfillment of the requirement for the Degree of
Bachelor of Technology in Applied Electronics & Instrumentation Engineering, RCC Institute of
Information Technology.
4
Temperature based fan speed controller
Table of content:
1. ABSTRACT 7
2. INTRODUCTION 8
3. PROPOSED SYSTEM 9
4. DESCRIPTION 10
5. BLOCK DIAGRAM 26
6. REFERENCES 30
7.DATASHEETS 31
5
Temperature based fan speed controller
List of Figures
6
Temperature based fan speed controller
ABSTRACT
7
Temperature based fan speed controller
INTRODUCTION
8
Temperature based fan speed controller
PROPOSED SYSTEM
9
Temperature based fan speed controller
DESCRIPTION
10
Temperature based fan speed controller
11
Temperature based fan speed controller
Temperature Sensor:
We are using LM 35 as temperature sensor. LM 35 is a precision
temperature sensor whose output is linearly proportional to
Celsius Temperature. The LM35 is rated to operate from -55°
Centigrade to 150° Centigrade with a linear scale factor of
+10mv/° C
12
Temperature based fan speed controller
Features:
13
Temperature based fan speed controller
14
Temperature based fan speed controller
Pin Description:
Pin
Function Name
No
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
Contrast adjustment; through a variable
3 VEE
resistor
Selects command register when low; and data Register
4
register when high Select
Low to write to the register; High to read
5 Read/write
from the register
Sends data to data pins when a high to low
6 Enable
pulse is given
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
15
Temperature based fan speed controller
its simple and accessible user experience, Arduino has been used
in thousands of different projects and applications. The Arduino
software is easy-to-use for beginners, yet flexible enough for
advanced users. It runs on Mac, Windows, and Linux. Teachers and
students use it to build low cost scientific instruments, to
prove chemistry and physics principles, or to get started with
programming and robotics. Designers and architects build
interactive prototypes, musicians and artists use it for
installations and to experiment with new musical instruments.
Makers, of course, use it to build many of the projects
exhibited at the Maker Faire, for example. Arduino is a key tool
to learn new things. Anyone - children, hobbyists, artists,
programmers - can start tinkering just following the step by
step instructions of a kit, or sharing ideas online with other
members of the Arduino community.
16
Temperature based fan speed controller
17
Temperature based fan speed controller
SPECIFICATIONS
Microcontroller : ATmega328
Operating Voltage : 5V
Input Voltage (recommended) : 7-12V
Input Voltage (limits) : 6-20V
Digital I/O Pins : 14 (of which 6 provide PWM
output)
Analog Input Pins :6
DC Current per I/O Pin :40 mA
DC Current for 3.3V Pin :50 mA
Flash Memory :32 KB of which 0.5 KB used by
: Bootloader
SRAM :2 KB
EEPROM :1 KB
Clock Speed :16 MHz
18
Temperature based fan speed controller
Each of the 14 digital pins and 6 Analog pins on the Uno can be
used as an input or output, using pinMode(),digitalWrite(), and
digitalRead() functions. They operate at 5 volts. Each pin can
provide or receive 20 mA as recommended operating condition and
has an internal pull-up resistor (disconnected by default) of
20-50k ohm. A maximum of 40mA is the value that must not be
exceeded on any I/O pin to avoid permanent damage to the
microcontroller.The Uno has 6 analog inputs, labeled A0 through
A5, each of which provide 10 bits of resolution (i.e. 1024
different values). By default they measure from ground to 5
volts, though is it possible to change the upper end of their
range using the AREF pin and the analogReference() function.
19
Temperature based fan speed controller
Communication:
20
Temperature based fan speed controller
21
Temperature based fan speed controller
Code:
#include <LiquidCrystal.h>
LiquidCrystallcd(7,6,5,4,3,2);
int temp;
intfanSpeed;
intfanLCD;
void setup() {
pinMode(fan, OUTPUT);
pinMode(led, OUTPUT);
pinMode(tempPin, INPUT);
lcd.begin(16,2);
void loop() {
digitalWrite(fan, LOW);
22
Temperature based fan speed controller
digitalWrite(led, LOW);
lcd.print("TEMP: ");
lcd.print("C ");
lcd.print("FANS: ");
lcd.print("%");
delay(200);
lcd.clear();
23
Temperature based fan speed controller
temp = analogRead(tempPin);
24
Temperature based fan speed controller
Circuit Diagram:
25
Temperature based fan speed controller
Block Diagram:
26
Temperature based fan speed controller
Description:
I used an LCD shield to display the current temperature and
speed of the fan, but you can use the circuit without the LCD
display. You also need to select the transistor by the type of
fan that you use. In my case I used the well-known BD139
transistor and a 9V battery to provide power to the fan and
transistor. The LM35 temperature sensor and red led are powered
with 5V from the Arduino board.
As you can see in the sketch on the first line I included the
LiquidCrystal library (header) that includes useful functions to
use when an LCD is connected to the Arduino board. Then I set
the pins for the sensor, led and fan.
The most important part is to set the variables temp Min and
temp Max with your desired values. Temp Min is the temperature
at which the fan starts to spin andtemp Max is the temperature
when the red led lights warning you that the maximum temp was
reached. For example if you set tempMin at 30 and tempMax at 35
then the fan will start spinning at 30°C and reach its maximum
speed at 35°C.
We store the temperature value in the temp variable and then use
some if() functions to check if temp is lower than tempMin and
if so let the fan OFF (LOW). The next if() is to check if
temperature is higher than the minTemp and lower than the
tempMax and if so then use the map() function to re-map the temp
value from one value to another. In our case fanSpeed will have
a value of 32 at tempMin and 255 at tempMax. These values are
27
Temperature based fan speed controller
used to control the speed of the fan using PWM and the analog
Write().
The fan LCD re-maps the temp to allow the display of fanSpeed in
a 0 to 100% range so you can say that the speed of the fan is
directly dependent of the LM35’s temperature. When the
temperature reaches the value set in tempMax the fan will be at
its maximum spinning velocity and the LCD will display FANS:
100% even though the temperature might increase above tempMax.
Application:
28
Temperature based fan speed controller
Advantages:
1. This project can be used in Home.
5. Prevents waste of energy when it’s not hot enough for a fan
to be needed.
Disadvantages:
Future Scope:
29
Temperature based fan speed controller
REFERENCES:
https://www.arduino.cc/en/Main/Software
www.ti.com/product/LM35
www.learningaboutelectronics.com
https://components101.com/lm35-temperature-sensor
https://circuitdigest.com/.../16x2-lcd-display-module
https://www.engineersgarage.com/.../16x2-lcd-module
https://www.build-electronic-circuits.com/how-transistor
30