Documente Academic
Documente Profesional
Documente Cultură
RATING:
Course/Year: BSECE-IV
Page | 1
TABLE OF CONTENTS
Table of Contents………………………………………………………………………………2
Abstract………………………………………………………………………………………...3
Chapter I: Introduction……………………………………………………………………….4
4.1 Conclusion
4.2 Recommendations
Chapter V: Appendices……………………………………………………………………...12
5.1: Documentations
5.2: Data Sheet (Main Components)
Page | 2
ABSTRACT
The developed system provides an environment in which no user needed to control the fan speed.
Automatically control the fan speed by sensing the room temperature. These fascinating efforts to create
intelligent system are to provide human being a more convenient life. The circuit was designed using
electronic components available in local market to keep the cost at low level.
Hence, the students used the LM35 for the temperature sensor which produces analog output
voltage; the LM35 is connected with the microcontroller which then produces DC PWM. After
which, the DC output PWM is connected to solid state relay which send the signals or the ac fan to
be turned on. The microcontroller is also connected to LCD which displays the room temperature.
Based from the results, the objectives have been achieved. The variation of the room
temperature sensed also changes the speed of the fan. Therefore, the circuit designed and
constructed are accurately working. Hence, the students observed that the temperature variation
Since the students observed that the temperature variation range of LM35 is only limited, the
students recommend that the temperature sensor be used must be more accurate and have wide
temperature range.
Page | 3
INTRODUCTION
Since the weather changes rapidly in the world, the temperature changes frequently.
Temperature monitoring and control is important in industrial environments and also in the human
living room. Industrial temperature monitoring is important in many applications and systems as excessive
changes in the temperature can lead to detrimental effects and failure of operation. Many important
devices and chip components, such as integrated circuit, demand for stable temperature and voltage
without instantaneous breakdown and wide range fluctuation. Early detection of overheating and
proper handling of such situation is essential to avoid deterioration and faulty component.
In the electronics world we want to make the human life comfortable. Therefore, the home
automation system is very essential. Fan speed controller is one of the parts of the home automation system.
In the case of home automation system, room temperature monitoring is very important. Sensors are
widely used for measurement of temperature. Usually, a temperature sensor converts the temperature
into an equivalent voltage output. In this project, the researchers used LM35 which are precision-
integrated- circuit temperature sensors, whose output voltage is linearly proportional to the Celsius
temperature.
Page | 4
OBJECTIVES
The main objective of this project is to make a functional temperature controlled-fan. It
Page | 5
METHODOLOGY
3.1: Block Diagram
Page | 6
3D DESIGN
Page | 7
3.3: Parts and Components
COMPONENTS/MODULE DESCRIPTION
Page | 8
Is a connector that allows more than one circuit to
another circuit. It often contains too long aluminum or
TERMINAL BLOCKS
copper strips that are design to connect different
components.
Page | 9
#include <LiquidCrystal.h>
int Contrast=100;
LiquidCrystal lcd(12,10,5,4,3,2);
int tempPin = A1; // the output pin of LM35
int fan = 11; // the pin where fan is
int led = 8; // led pin
int temp;
int tempMin = 20; // the temperature to start the fan
int tempMax = 50; // the maximum temperature when fan is at 100%
int fanSpeed;
int fanLCD;
void setup() {
analogWrite(6,Contrast);
pinMode(fan, OUTPUT);
pinMode(led, OUTPUT);
pinMode(tempPin, INPUT);
lcd.begin(16,2);
}
void loop() {
temp = readTemp(); // get the temperature
if(temp < tempMin) { // if temp is lower than minimum temp
fanSpeed = 0; // fan is not spinning
digitalWrite(fan, LOW);
}
if((temp >= tempMin) && (temp <= tempMax)) { // if temperature is higher than minimum temp
fanSpeed = map(temp, tempMin, tempMax, 32, 255); // the actual speed of fan
fanLCD = map(temp, tempMin, tempMax, 0, 100); // speed of fan to display on LCD
analogWrite(fan, fanSpeed); // spin the fan at the fanSpeed speed
}
if(temp > tempMax) { // if temp is higher than tempMax
digitalWrite(led, HIGH); // turn on led
} else { // else turn of led
digitalWrite(led, LOW);
}
lcd.print("TEMP: ");
lcd.print(temp); // display the temperature
lcd.print("C ");
lcd.setCursor(0,1); // move cursor to next line
lcd.print("FAN SPEED: ");
lcd.print(fanLCD); // display the fan speed
lcd.print("%");
delay(200);
lcd.clear();
}
Page | 10
CONCLUSION AND RECOMMENDATION
4.1 CONCLUSION
Based from the results, the objectives have been achieved. The variation of the room
temperature sensed also changes the speed of the fan. Therefore, the circuit designed and
constructed are accurately working. Hence, the students observed that the temperature variation
4.2 RECOMMENDATIONS
Since the students observed that the temperature variation range of LM35 is only limited,
the students recommend that the temperature sensor be used must be more accurate and have
Page | 11
APPENDICES
5.1: DOCUMENTATIONS
Page | 12
Page | 13