05 Automatic Fan Control and Intensity Control by Using Microcontroller Project
05 Automatic Fan Control and Intensity Control by Using Microcontroller Project
Polytechnic College,
Visnagar
PREPARED BY:-
GUIDED BY:-
Dasrat. J. Maheshwari (Lecturer in E.E. dept. SSPC VIsnagar)
GROUP - J :
1. Patel Tirth A. (106500309052)
2. Raval Jayesh A. (106500309037)
3. Rami Jay R. (106500309061)
4. Sutariya Jitendra A. (106500309054)
5. Sathwara Hardik S. (106500309083)
1
A Project Report on
Automatic Fan Control And Intensity Control
By Using Microcontroller
DEVELOPED BY:-
PATEL TIRTH A.
(106500309052)
2
Swami Sachchidanand Polytechnic College, Visnagar
CERTIFICATE
TO WHOM SO EVER IT MAY CONSERN
This is to certify that project work embodied in this report entitled “Automatic
Fan Control And Intensity Control By Using Microcontroller” was carried out
by Group – J (Electrical Eng. Dept.) at Swami Sachchidanand Polytechnic
College Visnagar for partial fulfillment of Diploma Electrical Engineering
semester 6th to be awarded Gujarat Technological University. This project work
has been carried out under my supervision and is to my satisfaction.
3
Automatic Fan Control
& Intensity Control by
using Microcontroller
4
ABSTRACT
This project will present the design, construction,
development, control and evaluation of an automatic
switching electric fan and also control the intensity of
light. The microcontroller based automatic fan system and
light systems presented in this project are required to
fulfill the requirement of technologies “tomorrow will be
more advanced than today”. The electric fan
automatically switches according to the environment
temperature changes and lights are switch on one by one
according to the room intensity changes. This electric
systems are contains combination of sensor, LDR,
controller and relay with integration of embedded
controlled programming. Finally, this system performance
will be evaluated by comparing performance data to the
theoretical.
5
INDEX
1 INTRODUCTION 7 to 9
2 LITERATURE REVIEW 10 to 27
3 CIRCUIT DIAGRAM 28 to 35
4 ADVANTAGES 36 to 37
5 REFERENCE 38 to 39
6
CHAPTER 1
INTRODUCTION
7
1.1 Project Background
8
The objectives of this project are to:
i. Enable the electric fan to automatically switch
on-off according to temperature changes.
ii. Enable the light to automatically switch on-off
according to room intensity changes.
iii. Develop an automatic fan system and light
system that can preview the status of the
temperature and the intensity by using Liquid
Crystal Display (LCD).
9
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
10
This chapter reviews about previous system that
been developed and has similarities with the automatic
fan system and automatic light system plus the
components that will be used in developing this system.
Features
• High-performance, Low-power Atmel ®AVR® 8-bit
Microcontroller
• Advanced RISC Architecture
– 130 Powerful Instructions – Most Single-clock Cycle
Execution
– 32 × 8 General Purpose Working Registers
– Fully Static Operation
11
– Up to 16MIPS Throughput at 16MHz
– On-chip 2-cycle Multiplier
• High Endurance Non-volatile Memory segments
– 8Kbytes of In-System Self-programmable Flash
program memory
– 512Bytes EEPROM
– 1Kbyte Internal SRAM
– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
– Data retention: 20 years at 85°C/100 years at 25°C(1)
– Optional Boot Code Section with Independent Lock
Bits In-System Programming by On-chip Boot Program
True Read-While-Write Operation
– Programming Lock for Software Security
• Peripheral Features
– One 16-bit Timer/Counter with Separate Rescale,
Compare Mode, and Capture Mode
– Real Time Counter with Separate Oscillator
– Three PWM Channels
– 8-channel ADC in TQFP and QFN/MLF package
Eight Channels 10-bit Accuracy
– 6-channel ADC in PDIP package Six Channels 10-bit
Accuracy
– Byte-oriented Two-wire Serial Interface
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip
Oscillator
– On-chip Analog Comparator
12
• Special Microcontroller Features
– Power-on Reset and Programmable Brown-out
Detection
– Internal Calibrated RC Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, ADC Noise Reduction, Power-
save, Power-down, and Standby
• I/O and Packages
– 23 Programmable I/O Lines
– 28-lead PDIP, 32-lead TQFP, and 32-pad QFN/MLF
• Operating Voltages
– 2.7V - 5.5V (ATmega8L)
– 4.5V - 5.5V (ATmega8)
• Speed Grades
– 0 - 8MHz (ATmega8L)
– 0 - 16MHz (ATmega8)
• Power Consumption at 4Mhz, 3V, 25°C
– Active: 3.6mA
– Idle Mode: 1.0mA
– Power-down Mode: 0.5Μa
13
Fig.2.1:LCD
14
An LCD is a small low cost display. It is easy to interface
with a micro-controller because of an embedded
controller(the black blob on the back of the board). This
controller is standard across many displays (HD 44780)
which means many micro-controllers (including the
Arduino) have libraries that make displaying messages as
easy as a single line of code.
Fig.2.3
Testing
15
Testing your LCD with an Adriano is really simple. Wire
up your display using the schematic or breadboard layout
sheet. Then open the Adriano IDE and open the example
program.
16
(Centigrade) temperature. The LM35 thus has an
advantage over linear temperature sensors
calibrated in ° Kelvin, as the user is not required to
subtract a large constant voltage from its output to
obtain convenient Centigrade scaling. The LM35
does not require any external calibration or trimming
to provide typical accuracies of ±1⁄4°C at room
temperature and ±3⁄4°C over a full −55 to +150°C
Temperature range. Low cost is assured by trimming
and calibration at the wafer level. The LM35’s low
output impedance, linear output, and precise
inherent calibration make interfacing to readout or
control circuitry especially easy. It can be used with
single power supplies, or with plus and minus
supplies. As it draws only 60 μA from its supply, it
has very low self-heating, less than 0.1°C in still air.
The LM35 is rated to operate over a −55° to +150°C
temperature range, while the LM35C is rated for a
−40° to +110°C range (−10° with improved
accuracy). The LM35 series is available packaged in
hermetic TO-46 transistor packages, while the
LM35C, LM35CA, and LM35D are also available in
the plastic TO-92 transistor package. The LM35D is
also available in an 8-lead surface mount small
outline package and a plastic TO-220 package.
17
Features
Calibrated directly in ° Celsius (Centigrade)
Linear + 10.0 mV/°C scale factor
0.5°C accuracy guarantee able (at +25°C)
Rated for full −55° to +150°C range
Suitable for remote applications
Low cost due to wafer-level trimming
Operates from 4 to 30 volts
Less than 60 μA current drain
Low self-heating, 0.08°C in still air
Nonlinearity only ±1⁄4°C typical
Low impedance output, 0.1 for 1 mA load
18
DARLINGTON TRANSISTOR ARRAY
DESCRIPTION
FEATURES
19
Inputs compatible with various types of logic.
Relay driver application.
LOGIC DIAGRAM
20
2.5.1 LDR
(Light Dependent Resistor)
Applications
21
Photoconductive cells are used in many different
types of circuits and applications.
Analog Applications
Camera Exposure Control
Auto Slide Focus-dual cell
Photocopy Machines-density of toner
Colorimetric Test Equipment
Densitometer
Electronic Scales-dual cell
Automatic Gain Control-modulated light
source
Automated Rear View Mirror
Digital Applications
Automatic Headlight Dimmer
Night Light Control
Oil Burner Flame Out
Street Light Control
Absence/ Presence
Position Sensor
Sensitivity
The sensitivity of a photo detector is the
relationship between the light falling on the device
22
and the resulting output signal. In the case of a
photocell, one is dealing with the relationship
between the incident light and the corresponding
resistance of the cell.
Spectral Response
23
spectral response of the photocell versus wavelength
of light.
Introduction
24
Allows most of the light to escape from the elements and
protects the LED making it virtually indestructible.
Furthermore, a light-emitting diode does not have any
moving parts, which makes the device extremely resistant
to damage due to vibration and shocks. These
characteristics make it ideal for purposes that demand
reliability and strength. LEDs therefore can be deemed
invulnerable to catastrophic failure when operated within
design parameters.
25
Principle & Mechanism
26
further divided into two parts or regions which are
separated by a boundary called a junction. The p-region is
dominated by positive electric charges (holes) and the n-
region is dominated by negative electric charges
(electrons). The junction serves as a barrier to the flow of
the electrons between the p and the n-regions. This is
somewhat similar to the role of the band-gap because it
determines how much voltage is needed to be applied to
the semiconductor chip before the current can flow and
the electrons pass the junction into the p-region.
27
CHAPTER 3
CIRCUIT DIAGRAM
AND
WORKING
28
3.1 AT mega8 Microcontroller
29
3.2 Following is the full circuit diagram with
connection.
2 * 16 LCD
VCC
LED 1
LED 2 LD R
1 28
LED 3 2 PC6 PC5 27
3 PD0 PC4 26
PD1 PC3
ATM EG A 8
4 25
5 PD2 PC2 24
6 PD3 PC1 23 2 1
7 PD4 PC0 22 VOUT VS+
GND
8 VCC GND 21
GND AREF 20
AVCC LM 35
9 DEC
PB6
3
10 19
RESET 11 PB7 PB5 18
12 PD5 PB4 17
IN C 13 PD6 PB3 16
14 PD7 PB2 15
PB0 PB1
5
3 1 16
2 1B 1C 15
4
3 2B 2C 14
3B 3C
ULN 2003
R ELAY 4 13
5 4B 4C 12
6 5B 5C 11
7 6B 6C 10
7B 7C
8 9
GND COM
30
WORKING
31
This way, the room light intensity is controlled
by this project.
32
Fig.3.2: power supply circuit
33
1)Step-Down Transformer
2)4 Diode (for make bridge rectifier)
3)1 Capacitor (1000 microfarad)
4)1 Capacitor (47 microfarad)
5)7805 Voltage Regulated Circuit
34
Project Model
35
CHAPTER 4
Advantages
36
4.1 ADVANTAGES
Circuit is simpler in design.
We can use Solar panel as power supply.
The use of fan switch in fans can be avoided.
Power saving.
Temperature variations can be easily tracked down.
Less maintenance.
Easily repairable. Since there is no complex circuitry
setup involved.
Low installation cost.
37
CHAPTER 5
REFERENCE
38
Reference:-
www.google.co.in
1.
www.national.com
2.
www.electroniccircuit.net
3.
www.microcontroller.net
4.
39