Automatic Fan
Automatic Fan
LAB REPORT
Corse Name:Fundamental of Electronics and digital System
Course code:232
Submitted By:
MD.Easin-23103167
Tanzida Rahman-23103024
laxmi Sarkaer-23103189
Submitted To:
DR.Md. Hasibur RashidChayon
Associate Professor
Submission Date:24/04/2024
Table of Contents
1. Abstract………………………………………………2
2. Chapter 1: 1.1Introduction…………………………....3
1.2Objectives……………………………....3
1.3Scops and limitations…………..……….3
1.4Overview of Methodology……..………4
3. Chapter 2: Theoretical Background………..…..……4
2.1 physical components …………………..…..4
2.2Electrical components………………………5
4. Chapter 3: Project Development…………………………7
3.1Project description………………………..7
3.2Experiment………………………………..10
5. Chapter 4: Experiments &Results………………………..11
4.1Experiment…………………………………12
4.2Result……………………………………….12
6. Chapter 5:5.1 Conclusion………………………………..…13
5.2References……………………….……………13
List of Figure
1..Arduoino Uno…………………………………………………5
2.. Motor Driver …………………………………………………5
3. Temperature Sensor…………………….……………………….6
4..HC-05 Bluetooth Module ………………………….................... 6
5.Fan…………………………….…………………………………11
PAGE 1
Abstract
When it's hot outside, utilizing a fan is a less expensive option than
turning on an air conditioner, especially in certain places where high
temperatures are typical. However, certain issues have emerged, such as
students forgetting to switch off when they're not using it in the
classroom or they leave the class room , These lead to higher electricity
bills since the fan is left on when not in use, and they can also result in
calamities like fires when the motor overheats. A prototype of smart fan
was built in this project using aurdiunouno , LM35 temperature sensor ,dc
motor ,blutoothcheap,motordriver.These are used to measure temperature
for on and off the user .It helped to lower energy usage based on the
intended audience. This project uses the pulse width modulation
technology, an Arduino Uno microcontroller, and a temperature sensor
(the LM35) to simulate and construct a DC fan control system depending
on ambient temperature.The purpose of the fan is to lower a room's
temperature to a predetermined point. We use the LM35 heat sensor to
construct the fan. The temperature of the room will be continuously
measured by the sensor Until the temperature drops below the threshold,
the fan will continue to run. This project makes advantage of this broad
concept.
PAGE 2
Chapter 1
Introduction
As technology continues to evolve, the need for more intelligent, automated systems
in everyday life has grown significantly. The increasing demand for energy-efficient
devices that not only enhance comfort but also conserve resources has driven
innovation in various household appliances. One such device that is commonly used
for temperature control in both residential and commercial spaces is the electric fan.
Fans help to regulate temperature by creating airflow that cools the surrounding
environment, but they require constant manual operation. When left on unnecessarily,
they can waste significant amounts of energy.
The concept of automating fan control has gained popularity, especially with the
advancement of microcontroller-based systems. By integrating sensors and
microcontrollers like Arduino, it is possible to develop an intelligent fan control
system that can automatically adjust its operation based on the surrounding
temperature. This system aims to improve comfort while reducing energy
consumption, which is particularly important in a world focused on sustainability. The
importance of this project lies in its ability to create an energy-efficient, cost-effective
solution that is easy to implement and scalable to various environments.
Energy Efficiency: The system will automatically control the fan’s operation
based on the ambient temperature, ensuring it runs only when needed. This
reduces energy consumption, as the fan will be switched off when the
temperature is within the comfortable range or when the room is cool enough.
PAGE 3
Educational Value: The project serves as an excellent educational tool,
allowing individuals to gain practical experience with Arduino programming,
sensor integration, and the basics of electronic circuits. It also provides an
introduction to the principles of automation and control systems.
The motivation behind this project stems from the growing need for systems that
optimize the use of energy, especially in everyday appliances. In an era where
sustainability and energy conservation are more important than ever, creating an
intelligent system that can automatically adjust the operation of household devices
like fans provides both environmental and economic benefits. By incorporating
temperature-based control, the system ensures that the fan runs only when necessary,
reducing unnecessary power consumption.
In addition to energy savings, the project allows for hands-on learning and the
development of skills in electronics and programming. The use of Arduino as a
microcontroller platform makes this project accessible to both beginners and more
advanced users, providing an opportunity to explore the integration of hardware and
software in a practical context. The project is also motivated by the desire to
demonstrate how simple yet effective technology can be used to improve daily life,
providing comfort and convenience through automation.
At the core of this project lies the application of digital logic and control systems. The
fan control system is based on the concept of automated decision-making, where the
system continuously reads data from the temperature sensor and makes decisions
based on predefined thresholds. This process is similar to a basic logic circuit that
evaluates an input (in this case, the temperature) and produces an output (turning the
fan on or off).
The project uses an LM35 temperature sensor to measure the ambient temperature,
and the Arduino Uno microcontroller processes this data to determine if the fan
should be activated. When the temperature exceeds a predefined threshold, the
Arduino sends a signal to the motor driver, turning the fan on. When the temperature
drops below the threshold, the fan is automatically turned off. The implementation of
this system using digital logic ensures that the fan only operates when necessary,
making the entire process both efficient and automated.
The use of an Arduino microcontroller to handle the logic and control the fan is an
application of basic digital logic principles, where the fan is either in an "on" or "off"
state based on the sensor input. This project provides an opportunity to explore how
digital logic can be applied to everyday devices, making them smarter and more
efficient.
1.5Key Outcomes:
PAGE 4
Automated Fan Control: A fully functional system that automatically adjusts
the fan’s operation based on real-time temperature data. This ensures that the
fan runs only when needed, providing comfort and reducing energy
consumption.
User-Friendly System: The fan operates automatically without the need for
manual control, making it more convenient and efficient for users. This system
can be implemented in various settings, from homes to offices, improving the
user experience.
Chapter 2
Theoretical Background
This project is based on the principles of automation, control systems, and digital
logic. The key theory revolves around creating an automated decision-making system
using input data (temperature) to control an output device (fan). At its core, this
system employs a feedback control mechanism, where the temperature sensor
continuously monitors the environment and provides input to the Arduino
microcontroller. The microcontroller processes this data based on predefined
conditions (temperature thresholds) and sends control signals to the fan.
PAGE 5
only when the temperature surpasses a certain level, creating an energy-
efficient solution.
Sensor Technology:
The LM35 sensor is used to measure temperature. It provides an analog
voltage proportional to the ambient temperature, which is then converted into
a digital value using the Arduino’s ADC (Analog-to-Digital Converter).
Microcontroller Programming:
The Arduino Uno acts as the brain of the system. It processes the sensor data
using programmed logic and executes commands to control the fan.
Digital Logic:
Digital logic is employed to make binary decisions—turning the fan "on" or
"off" based on the temperature input. This decision-making process mimics
simple logic gates, where inputs (temperature values) determine the output
(fan state).
Arduino uno
Motor Driver and DC motor : it isused for controlling the speed .It also provides
direction control to the motor.The DC motor is responsible for driving the fan blades.
PAGE 6
Motor driver
The Android application and microcontroller are connected via a Bluetooth module.
Information from the user is received by Arduino Uno microcontroller.
Accuracy of ±0.5°C.
Operates from 4 to 30V.
Low self-heating and power consumption.
PAGE 7
temperature sensor
The logic for controlling the fan is based on simple conditional statements rather than
extensive Boolean algebra, but it can be represented as a basic Boolean function:
Let:
The Arduino simplifies this logic through programming, using if and else conditions
to check the temperature and control the fan.
PAGE 8
While Karnaugh maps are typically used for simplifying complex logic circuits, the
logic in this project is straightforward and does not require such tools. However, for
educational purposes, a truth table can represent the system's behaviour:
Fan State
Temperature (TTT)
(FFF)
Here:
Chapter 3
Project Development
3.1Project description
Using an Arduino Uno microcontroller, a LM35 temperature sensor, a DC motor, a
motor driver, and a Bluetooth module, we'll build an autonomous temperature-
controlled fan system in this project. In order to maintain a comfortable atmosphere,
the system will automatically modify the fan off or on based on ambient temperature
data collected from the sensor. it is possible to observe temperature by smartphone via
Bluetooth.
The ambient temperature is continuously monitored via the LM335 temperature
sensor.Temperature readings are used by the Arduino to decide whether to turn on the
fan.By the help of blutoothmodule,temperature is observed on smartphone.
Set up pin modes for motor control (IN1, IN2, ENA1, ENA2).
PAGE 9
Request temperature readings from the sensor and store them in the variable Celsius.
If the temperature (Celsius) is less than 26°C, run the forward() function.
stop(): Stops the motor by setting all motor control pins to low and turning .
Introduce a delay of 2 seconds (2000 milliseconds) before the next iteration of the
loop.
code:
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SoftwareSerial.h>
SoftwareSerialbluetooth(2, 3);
#define ONE_WIRE_BUS 9
#define ENA1 10
#define ENA2 11
#define IN1 5
#define IN2 6
OneWireoneWire(ONE_WIRE_BUS);
PAGE 10
DallasTemperaturesensors(&oneWire);
float Celsius = 0;
void setup() {
sensors.begin();
bluetooth.begin(9600);
Serial.begin(9600);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(ENA1, OUTPUT);
pinMode(ENA2, OUTPUT);
void loop() {
sensors.requestTemperatures();
Celsius = sensors.getTempCByIndex(0);
Serial.print(Celsius);
Serial.print(" C ");
bluetooth.println("Temperature: ");
bluetooth.println(Celsius);
bluetooth.println(" °C");
PAGE 11
if (bluetooth.available() > 0) { // Check if data is available from Bluetooth
char value = bluetooth.read(); // Read data from Bluetooth
Serial.print(value);
}
forward();
delay(2000);
}
void forward() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(ENA1, 200);
analogWrite(ENA2, 200);
PAGE 12
void stop() {
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
analogWrite(ENA1, 0);
analogWrite(ENA2, 0);
3.2Experiment
Allowing the fan moves according the increasing and decreasing of
temperature .when temperature will raise up to 26 it will moves on otherwise it
will be stop.keeping an eye on temperature .controlling the fan’s motion
andgetting temperature sensor data from a distance using Bluetooth
connectivity .
Chapter 4
Experiments and Results
4.1Experiment: We have to make sure that the Arduino Uno is correctly attached
to the components and turn it on and check if the temperature sensor is giving precise
readings.
Test the temperature threshold-based fan control. Make that the fan goes off when it is
under 26 degree temperature and on when it gets when it is over 26 .
By pairing the Bluetooth module with a smartphone and sending orders to manually
operate the fan
4.2 Result
The fan can move successfully without any kinds os obstacle .According to the
temperature it van aff or on automatically.
PAGE 13
Fan on
Chapter 5
5.1Conclusion
The project's goal was to create an Arduino Uno microcontroller-based automatic
on/off fan system that was monitored by a temperature sensor and a Bluetooth
module. We were successful in achieving the following goals with the experiment:
Future Improvements:
PAGE 14
To produce smoother and more accurate fan speed adjustments, use more advanced
fan speed control algorithmsExamining ways to reduce power use, such using more
energy-efficient fan motors or putting components in sleep mode when they're idle.
5.2 REFERENCE
PAGE 15