MINI Project Fanny
MINI Project Fanny
THIRD YEAR
(2024 – 2025)
PROJECT GUIDE
Prof. G P Kadam
Dept. of E&CE, JCE, Belagavi
PROJECT MEMBER
Mr. Naveen Patil 2JI20EC071
Mr. Vardhman Patil 2JI21EC170
Mr. Vinayak Rayanaikar 2JI21EC174
Ms. Sneha Kumbar 2JI21EC148
Shri Bhagwan Mahaveer Jain Educational & Cultural Trust ®
JAIN COLLEGE OF ENGINEERING, BELAGAVI
T.S. NAGAR, MACHHE – 590014, KARNATAKA
CERTIFICATE
This is to certify that the Project Work entitled “Motion Based Smart Fan Operation
And Speed Control Using Arduino Uno” carried out by Mr. Naveen Patil
(2JI20EC071), Mr. Vardhman Patil (2JI21EC170), Mr. Vinayak Rayanaikar
(2JI21EC174), Ms. Sneha Kumbar (2JI21EC148) are bonafide students of Department
of Electronics and Communication Engineering, Jain College of Engineering,
Belagavi, in partial fulfilment for the award of Bachelor of Engineering of the
Visvesvaraya Technological University, Belagavi during the academic year 2023-2024.
It is certified that all corrections/suggestions indicated for project assessment have been
incorporated in the report. The project report has been approved as it satisfies the academic
requirements in respect of project work prescribed for the Bachelor of Engineering degree.
1. _________________________ __________________
2. __________________________ __________________
DECLARATION
We Mr. Naveen Patil (2JI20EC071), Mr. Vardhman Patil (2JI21EC170), Mr.
Engineering, Belagavi hereby declare that the dissertation entitled “Motion Based
Smart Fan Operation And Speed Control Using Arduino Uno” has been carried out
in a batch and submitted in the partial fulfilment of the requirement for the award of
Place : Belagavi
Date :
Jain College of Engineering, Belagavi
Dept. of Electronics and Communication Engineering
Vision of Institute
"To be a university as a resource of solution to diverse challenges of society by nurturing
innovation, research & entrepreneurship through value based education."
Mission of Institute
• To provide work culture that facilitates effective teaching-learning process and
lifelong learning skills.
Vision of Department
“To achieve excellence in education and research for developing globally
competent, ethically sound Electronics & Communication Engineers”.
Mission of Department
1. To provide conductive environment through structured student centric,
teaching learning process.
2. To nurture needs of society by infusing scientific temper in students and
to grow as a centre of excellence with efficient industry-institute
interaction.
3. To inculcate self learning skills, entrepreneurial ability and professional
ethics.
Program Educational Objectives (PEO’s)
1. Graduates will be able to contemplate real-time social problems and
deliver efficient solutions.
2. Graduates will be able to lead and succeed in professional careers.
3. Graduates will contribute through research and enterpreneurship.
Vision of Institute
"To be a university as a resource of solution to diverse challenges of society by nurturing
innovation, research & entrepreneurship through value based education."
Mission of Institute
• To provide work culture that facilitates effective teaching-learning process and
lifelong learning skills.
Vision of Department
“To achieve excellence in education and research for developing globally
competent, ethically sound Electronics & Communication Engineers”.
Mission of Department
4. To provide conductive environment through structured student centric,
teaching learning process.
5. To nurture needs of society by infusing scientific temper in students and
to grow as a centre of excellence with efficient industry-institute
interaction.
6. To inculcate self learning skills, entrepreneurial ability and professional
ethics.
Program Educational Objectives (PEO’s)
4. Graduates will be able to contemplate real-time social problems and
deliver efficient solutions.
5. Graduates will be able to lead and succeed in professional careers.
6. Graduates will contribute through research and enterpreneurship.
CO-PO/PSO Mapping:
L1: Remembering L2: Understanding L3: Applying L4: Analyzing L5: Evaluating L6: Creating
Bloom’s Cognitive
Course Outcomes Description
level
Understand the basic concepts and broad
21ECMP67.01 L3
principles of industrial projects.
Apply the theoretical concepts to solve industrial
21ECMP67.02 problems with team work and multidisciplinary L3
approach.
Get capable of self education and clearly
21ECMP67.03 understand the values of achieving perfection in L3
project implementation and completion.
Demonstrate professionalism with ethics; present
21ECMP67.04 effective communication skills relate engineering L3
issues to broader societal context.
Understand concepts of projects and production
21ECMP67.05 L3
management.
PSO1 PSO2
COs PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 3 3 3 1 1 1 3
CO2 3 3 3 1 3 3 3
CO3 3 3 3 1 1 2 3 3 2 2 3 3
CO4 2 3
CO5 3 3 2 2 3
Avg 3 3 3 1 1 1 1 2 3 3 2 2
3 3
CO-PO-PSO Justification
CO1 → PO1 (3) • Strongly mapped as students apply the electronics and communication
CO1 → PO2 (3) engineering skills to understand the principles of industrial projects.
• Strongly mapped as students identify, formulate, review research
CO1 → PO3 (3)
literature and analyse complex engineering problems.
CO1 → PO4 (1) • Strongly mapped as students design solutions for complex engineering
CO1 →PO6(1) problems with appropriate consideration for the public health and safety.
• Slightly mapped as students can use research-based knowledge and
CO1 →PO7(1)
methods including design of experiments, analysis and interpretation to
CO1 → PSO3(2) provide valid conclusions.
• Slightly mapped as students can able to understand the impact of
professional engineering project solutions in societal and environmental
contexts.
• Slightly mapped as students can be able to apply reasoning of contextual
project knowledge to assess societal, health and safety issues.
• Strongly mapped as apply knowledge in various domain of IoT, real time
systems, communication systems, VLSI and embedded systems, image
and signal processing using hardware and software tools.
CO2 → PO1 (3) • Strongly mapped as students apply the electronics and communication
CO2 → PO2 (3) engineering skills to understand the principles of industrial projects.
• Strongly mapped as students identify, formulate, review research
CO2 → PO3 (3)
literature and analyse complex engineering problems.
CO2 → PO4 (1) • Strongly mapped as students design solutions for complex engineering
CO2 → PO9 (3) problems with appropriate consideration for the public health and safety.
• Slightly mapped as students can use research-based knowledge and
CO2 → PSO1(3)
methods including design of experiments, analysis and interpretation to
CO2 → PSO2(3) provide valid conclusions.
• Strongly mapped as students can effectively act as an individual, and as
a member or leader and work in a team.
• Strongly mapped as students can design, verify and develop analog and
digital systems by using state of art technology to contribute to the
societal needs and solve industrial problem.
• Strongly mapped as students apply knowledge in various domain of IoT,
real time systems, communication systems, VLSI and embedded
systems, image and signal processing using hardware and software tools
and solve industrial problem.
CO3 → PO1 (3) • Strongly mapped as students apply the electronics and communication
CO3 → PO2 (3) engineering skills to understand the principles of industrial projects.
• Strongly mapped as students identify, formulate, review research
CO3 → PO3 (3)
literature and analyse complex engineering problems.
CO3 → PO4 (1) • Strongly mapped as students design solutions for complex engineering
CO3 →PO5(1) problems with appropriate consideration for the public health and safety.
CO3 → PO8(2) • Slightly mapped as students can use research-based knowledge and
CO3 → PO9 (3) methods including design of experiments, analysis and interpretation to
provide valid conclusions.
CO3→ PO10 (3)
• Slightly mapped as students can Create, select, and apply appropriate
CO3 → PO11 (2) techniques, resources, and modern engineering and IT tools including
CO3 → PO12 (2) prediction and modeling to complex engineering activities with an
understanding of the limitations.
• Moderately mapped as students can work ethically and professionally in
CO3 → PSO1(3) the industry.
• Strongly mapped as Students can effectively act as an individual, and as
CO3 → PSO2(3)
a member or leader and work in a team.
• Strongly mapped as Students can comprehend and write effective reports
and make documentation with effective presentation.
• Moderately mapped as students can learn to management and financial
skills required for the execution of project.
• Moderately mapped as students can be engaged in life long learning in
the broadest context of technological change through project
implementation and completion.
• Strongly mapped as students can design, verify and develop analog and
digital systems by using state of art technology to contribute to the
societal needs and solve industrial problem.
• Strongly mapped as students apply knowledge in various domain of IoT,
real time systems, communication systems, VLSI and embedded
systems, image and signal processing using hardware and software tools
and solve industrial problem.
CO4 → PO8 (3) • Moderately mapped as students can work ethically and professionally in
CO4→ PO10 (3) the industry.
• Strongly mapped as Students can comprehend and write effective reports
and make documentation with effective presentation.
CO5→ PO9 (3) • Strongly mapped as Students can effectively act as an individual, and as
CO5→ PO10 (3) a member or leader and work in a team.
• Strongly mapped as Students can comprehend and write effective reports
CO5 → PO11 (2)
and make documentation with effective presentation.
CO5 → PO12 (2) • Moderately mapped as students can learn to management and financial
skills required for the execution of project.
• Moderately mapped as students can be engaged in life long learning in
CO5 → PSO1(3) the broadest context of technological change through project
implementation and completion.
• Strongly mapped as students can design, verify and develop analog and
digital systems by using state of art technology to contribute to the
societal needs and solve industrial problem.
ACKNOWLEDGEMENTS
Although a single sentence hardly suffices, we would like to thank almighty God for
blessing us with his grace and taking our endeavour to a successful culmination.
We express our gratitude to our guide Prof. G P Kadam, Professor, Dept. of E&CE,
JCE, Belagavi, for his valuable guidance and continual encouragement and assistance
throughout the project work. We greatly appreciate the freedom and collegial respect. We
are grateful to him for discussions about the technical matters and suggestions concerned
to our topic.
We extend our sense of gratitude to Dr. Salma S S, Project Coordinator, Dept. of E&CE,
JCE, Belagavi, for extending support and cooperation which helped us in completion of
the project work.
We extend our sense of gratitude to Prof. V R Bagali, Assistant Professor & Head, Dept.
of E&CE, JCE, Belagavi, for extending support and cooperation which helped us in
completion of the project work.
We would like to express our sincere thanks to Dr. J Shivakumar., Principal, JCE
Belagavi, for extending support and cooperation which helped us in the completion of the
project work.
We would like to extend our gratitude to all staff of Department of Electronics and
Communication Engineering for the help and support rendered to us.
We would like to extend our gratitude to all our family members and friends especially for
their advice and moral support.
ABSTRACT
This project aims to develop a smart fan that can be automatically controlled by human
presence and temperature. The smart fan consists of an Arduino Uno microcontroller, a
PIR sensor, an DHT22 temperature sensor, a DC motor, N-Channel MOSFET and a power
supply. The PIR sensor is used to detect human presence, while the DHT temperature
sensor is used to measure the ambient temperature. The Arduino Uno microcontroller is
used to control the speed of the DC motor based on the input from the PIR sensor and the
DHT22 temperature sensor and OLED is used to display the output.
The smart fan follows the mode of operation: The fan speed is automatically controlled by
the Arduino Uno microcontroller based on the input from the PIR sensor and the DHT22
temperature sensor.
The smart fan is a low-cost, easy-to-build project that can be used to improve the comfort
and energy efficiency of a home. The project can be modified to include additional features,
such as a remote control or a web interface.
TABLE OF CONTENTS
CHAPTER 1 INTRODUCTION ...................................................................................... 1
1.1 MOTIVATION .................................................................................................... 1
1.2 PROBLEM STATEMENT .................................................................................. 1
1.3 OBJECTIVE OF PROJECT................................................................................. 1
1.4 LITERATURE SURVEY .................................................................................... 2
1.5 DESIGN APPROACH………………………………………………………….3
CHAPTER 2 HARDWARE DESIGN…………………………………………………..4
2.1 BLOCK DIAGRAM……………………………………………………………4
2.1.1 ARDUINO UNO……………………………………………….…..5
2.1.2 PIR SENSOR………………………………………………………6
2.1.3 MOSFET-IRF530N………………………………………………...7
2.1.4 DHT22 SENSOR…………………………………………………...8
2.1.5 OLED I2C DISPLAY………………………………….…………..9
2.1.6 DC FAN 9V……………………………………………………….10
2.1.7 BATTERY 9V………………………………………………...…...12
CHAPTER 3 SOFTWARE DESIGN………………………………………………….13
3.1 PROGRAMMING LANGUAGE…………………………………………..…13
3.2 ARDUINO IDE………………………………………………………………..13
3.3 CODE……………..…………………………………………………………...13
CHAPTER 4 APPLICATIONS……………………………………………….……….16
4.1 Applications…………………………………………………………………….15
4.2 Advantages……………………………………………………………………...15
CHAPTER 5 CONCLUSION AND FUTURE SCOPE……...……………….………17
CHAPTER 6 REFERENCES……………………………………………….…………18
LIST OF FIGURES
Figure 1 Connection diagram............................................................................................... 5
Figure 2 Pin Diagram ........................................................................................................... 5
Figure 3: Arduino Uno ......................................................................................................... 6
Figure 4: pir sensor .............................................................................................................. 7
Figure 5 IRF530N MOSFET ............................................................................................... 8
Figure 6 DHT22 Sensor ....................................................................................................... 9
Figure 7 I2C Oled Display ................................................................................................. 10
Figure 8 12V DC Fan ......................................................................................................... 11
Figure 9 9V Battery ........................................................................................................... 12
CHAPTER 1
INTRODUCTION
1.1 MOTIVATION
The motivation for creating a project on motion-based smart fan operation and speed
control using Arduino Uno stems from the desire to enhance energy efficiency and user
convenience. By utilizing motion sensors to detect occupancy, the fan can be
automatically activated and its speed adjusted based on real-time needs, significantly
reducing unnecessary energy consumption.
This project not only offers a practical solution to optimize comfort in residential and
commercial spaces but also promotes sustainability by minimizing energy waste.
Additionally, it provides an excellent opportunity to gain hands-on experience with
Arduino programming, sensor integration, and motor control, fostering technical skills
and innovation.
The cost-effective nature of using an Arduino Uno and affordable components makes this
project accessible, while its potential for customization allows for further enhancements
and integration with other smart home systems. Overall, this project aligns with modern
technological trends and environmental goals, making it a valuable and impactful
endeavour.
• Automated Fan Control: Develop a system that automatically turns the fan on or off
based on motion detection, ensuring the fan operates only when needed.
• Speed Regulation: Implement a mechanism to adjust the fan speed according to the
level of detected motion, optimizing cooling efficiency and user comfort.
FEATURES
• Power supply: 10~30V DC
• Power consumption: 0.4W
• Sensor type: dual-element pyro-infrared sensor
• Alarm delay: 30s, 10s, 5s output optional (alarm duration)
2.1.3 MOSFET-IRF530N
IRF530N is an N Channel Power MOSFET which is used to switch the power in power
supply circuits, It has designed by the International rectifier .
FEATURES
• Drain-to-Source Voltage (Vdss): 100V
• Continuous Drain Current (Id): 17A (at 25°C)
• Pulsed Drain Current (Id, pulse): 110A
• Gate Threshold Voltage (Vgs(th)): 2.0V to 4.0V
• Drain-Source On-Resistance (Rds(on)): 0.055Ω (at Vgs = 10V, Id = 8.6A)
• Gate Charge (Qg): 67nC (typical)
• Total Gate Charge (Qg): 67nC (typical)
The DHT22 sensor is a low-cost digital sensor used to measure both temperature and
humidity. It provides high accuracy and stability, making it suitable for a wide range of
applications including weather stations, environmental monitoring systems, and HVAC
controls. The DHT22 outputs a calibrated digital signal, which can be easily read by
microcontrollers such as the Arduino Uno.
FEATURES
• Supply Voltage: 3.3V to 6V
• Temperature Range: -40°C to 80°C
• Temperature Accuracy: ±0.5°C
• Humidity Range: 0% to 100% RH
• Humidity Accuracy: ±2% to ±5% RH (typically ±2% in the 20%-80% range)
• Resolution: Temperature: 0.1°C, Humidity: 0.1% RH
• Sampling Period: 2 seconds (measures data every 2 seconds)
• Dimensions: 15.1mm x 25mm x 7.7mmPower consumption: 0.4W
An OLED I2C display is a type of Organic Light Emitting Diode (OLED) screen that
uses the I2C (Inter-Integrated Circuit) protocol for communication with
microcontrollers and other devices.
FEATURES
• Display Technology: OLED (Organic Light Emitting Diode)
• Interface: I2C (requires only two data lines: SDA for data and SCL for the clock)
• Typical Sizes: Common sizes include 0.96 inches, 1.3 inches, and 1.5 inches
• Resolution: Common resolutions are 128x32 and 128x64 pixels
• Color: Usually monochrome (white, blue, or yellow), but full-color versions are also
available
• Operating Voltage: Typically 3.3V or 5V
• Viewing Angle: Wide, often around 160 degrees
• Power Consumption: Low, because only the lit pixels consume power
• Driver IC: Often uses the SSD1306 or SH1106Power consumption: 0.4W
A 12V DC fan is a small fan typically used in electronic projects and cooling
applications.
Features:
• Voltage: 12V DC (Direct Current) is the operating voltage for the fan.
• Current: Measured in amperes (A), this tells you how much current the fan draws.
Typical values range from 0.1A to 0.5A.
• Airflow: Measured in cubic feet per minute (CFM) or cubic meters per hour (m³/h).
This indicates how much air the fan moves. Values can range from 10 CFM to over 100
CFM for different types of fans.
• Speed: Usually measured in revolutions per minute (RPM). A typical 12V DC fan
might run between 1,000 and 3,000 RPM.
Figure 9 9V Battery
3.3 CODE
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DHT.h>
if (isnan(temp)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print(temp);
Serial.println(" °C"); // Just to check the current temperature
showTemp(temp);
// showDistance(distance);
delay(100);
if (temp > 20 && motionDetected==HIGH) {
digitalWrite(trans, HIGH);
analogWrite(trans, 100);
delay(10);
}
else if (temp > 30 && motionDetected == HIGH) {
digitalWrite(trans, HIGH);
analogWrite(trans, 150);
delay(10);
}
4.2 ADVANTAGES
❖ Can save energy by only turning on the fan when necessary.
❖ Can improve comfort by automatically adjusting the fan speed based on the
temperature of the room.
❖ Can be used to control multiple fans in a single room..