FINAL
PROJECT
GROUP
MEMBERS
NAME
|
SAP ID
|
ASIF GULZAR
|
8632
|
WAILE NAEEM
|
8693
|
Introduction:
These days pretty much everything is getting programmed for giving a superior encounter of life. Here and there individuals are too lethargic to even consider doing something. For instance if an individual is sitting in a room getting a charge out of a film or watching something different on TV. In the event that the room temperature expands, at that point the individual should stop the film and turn on the fan. It will upset the individual. So as to conquer this obstacle and to give a superior encounter the fan can robotized.
In this project a fan will be mechanized utilizing a temperature sensor. The temperature sensor will flag the fan. The speed of fan will increment or lessening as indicated by the adjustment in the room temperature. The temperature-controlled fan will make the framework vitality effective. The temperature-controlled fan will likewise be time productive.
Background:
Already the fans were controlled physically. The fan was turned here and there by killing the switch ON and. The speed of fan was likewise balanced physically by a controller. All these procedure was power expending and tedious. A few times the manual control of fan gets chaotic .To improve ones experience there was a requirement for changing this framework. To spare time and make the framework vitality effective there was a need to make another framework.
Components Details :
1. Arduino
2. Breadboard
3. Temperature
Sensor
4. DC Motor
(as a fan).
5. LCD
Display.
6. Resistor.
Arduino:
Arduino Uno is a micro controller board based on the ATmega328P.It has 14 digital input/output pins (of which 6 can be used as PWM
outputs. 6 analog
inputs, a 16 MHz ceramic resonator (CSTCE16M0V53-R0), a USB connection, a power jack, an ICSP header and a reset button., It contains everything needed to support the micro controller; simply
connect it to a computer with a USB cable or power it with a AC-to-DC adapter
or battery to get started.
Circuit and Implementation of the Project:
Working of the Project:
• When the
simulation is started the LCD turn on and displays “Temperature
Controlled Fan”.
• Then the
temperature sensor starts reading the room temperature.
• The LCD
displays a message “Recording
Temperature”.
• The
temperature is measured in centigrade.
• The
baseline temperature is 18 degree.
• When the
temperature is below 18 degree the fan is off.
• When the
temperature increases then the fan turns on.
• If the
temperature is more than 18 degree, the speed of fan is 20 percent.
• If the
temperature is more than 21 degree, the speed of fan is 40 percent.
• If the
temperature is more than 24 degree, the speed of fan is 60 percent.
• If the
temperature is more than 27 degree, the speed of fan is 80 percent.
• If the
temperature is more than 31 degree, the speed of fan is 100 percent.
Code:
_____________________________________________________________
#include <LiquidCrystal.h>
#define fan 9
int baselineTemp=0;
int celsius=0;
LiquidCrystal lcd(12, 11, 5, 4,
3, 2);
void setup() {
pinMode(A0,
INPUT);
pinMode(fan,OUTPUT);
lcd.begin(16,
2);
lcd.setCursor(3,0);
lcd.print("Temperature");
lcd.setCursor(2,1);
lcd.print("Controlled
Fan");
delay(2000);
lcd.clear();
}
void loop() {
baselineTemp
= 18;
lcd.setCursor(3,
0);
lcd.print("Recording");
lcd.setCursor(0,
1);
lcd.print("Temperature....");
delay(3000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Temperature
= ");
lcd.setCursor(5,1);
lcd.print(celsius);
lcd.print("
C, ");
delay(3000);
lcd.clear();
if(celsius<baselineTemp)
{
analogWrite(fan,0);
lcd.print("
Fan OFF ");
delay(2000);
lcd.clear();
}
if(celsius>baselineTemp
&& celsius<=21)
{
analogWrite(fan,51);
lcd.println("Fan
speed 20%");
delay(3000);
lcd.clear();
}
if(celsius>21
&& celsius<=24)
{
lcd.println("Fan
speed 40%");
delay(3000);
lcd.clear();
}
if(celsius>24
&& celsius<=27)
{
analogWrite(fan,153);
lcd.println("Fan
speed 60%");
delay(3000);
lcd.clear();
}
if(celsius>27&&celsius<=30)
{
analogWrite(fan,204);
lcd.println("Fan
speed 80%");
delay(3000);
lcd.clear();
}
if(celsius>=31)
{
analogWrite(fan,255);
lcd.println("Fan
speed 100%");
delay(3000);
lcd.clear();
}
delay(10);
}
__________________________________________________________________
Results:
- Following targets are achieved
- A temperature-controlled fan
- This fan will save electricity.
- The fan will not have to be turn on and off manually.
- It will bring ease so that a person will not have to control it. The fan will adjust its speed according to the environment of the room.
Conclusion:
This temperature-controlled fan can be implemented
physically in a home. It will bring an ease in life. It will contribute in home
automation.This system can be improved further.A PIR Motion Sensor can be
implemented along with the system. The PIR Motion Sensor will detect a person
and then signal the system to work accordingly. It will make the system more
efficient and will also contribute in less power use.
Project tinker cad link :
https://www.tinkercad.com/things/1rVbrlmAG6i-mcp-project/editel?sharecode=yrpN7srJyLlPP-trqmW9b3RiIJ2h9bedYwFZEJxESJQ
Screenshots of the Project Working:
Post a Comment