Professional Documents
Culture Documents
Keywords Fan speed, microcontroller, LM35DZ, BLDC motor The microcontroller PIC16F877A, is the heart of the
and circuit design. system. It accepts inputs from the temperature sensor, LM35
which allows for the measurement of the current room
I. INTRODUCTION temperature, then the controller will give the action to
maintain the required fan speed. LCD is used to display the
E LECTRIC fan is one of the most popular electrical
devices due to its cost effectiveness and low power
consumption advantages. It is a common circuit and
fan speed and room temperature. All of these can be
summarized in a diagram as shown in Fig. 1.
widely used in many applications. It is also one of the most
sensible solutions to offer a comfortable and energy efficient.
In fact, the fan has been long used and still available in the
market.
Nowadays, the demand for accurate temperature control and
air freshening control has conquered many of industrial
domains such as process heat, automotive, industrial places or
office buildings where the air is cooled in order to maintain a
comfortable environment for its occupants. One of the most Fig. 1 Block diagram of fan speed control system
important concerns involved in heat area consist in the desired A. PIC16F877A Microcontroller
5B
86
6th Int'l Conference on Electrical, Electronics & Civil Engineering (ICEECE'2014) Nov. 27-28, 2014 Cape Town (South Africa)
87
6th Int'l Conference on Electrical, Electronics & Civil Engineering (ICEECE'2014) Nov. 27-28, 2014 Cape Town (South Africa)
with microcontrollers, which means that it cannot be activated microcontroller has analog to digital converter which converts
by standard IC circuits. It is used for displaying different analog signals to digital ones.
messages on a miniature liquid crystal display. it can display The LM35 gives 10mv for each 1c change in the
messages in two lines with 16 characters each. Also it can temperature; this value is analog value and should be
display all the letters of alphabet, Greek letters, punctuation converted to digital. Any change in the temperature will be
marks, mathematical symbols etc. Fig. 7 illustrates LCD (2 x send to the microcontroller via PORTA pin 2, which have
16 characters) and its connection [11]. been specified by us in the program using TRISA.
The microcontroller used in this system has inbuilt PWM
module which is used to control speed of the fan by varying
the duty cycle. According to the readings from the temperature
sensor, duty cycle is varied automatically thus controlling fan
speed. The microcontroller will send the PWM signal via pin
RC2 in port C to the transistor which working as switch to the
fan.
Crystal oscillator is connected in between pin 13 (osc1) and
pin 14 (osc2) of PIC16F877A, those are pins if we want to
provide external clock to the microcontroller. 0.1 F bypass
capacitor used on the output pin +5 V of the voltage regulator
to smooth out the supply voltage to microcontroller and LCD.
Fig. 7 LCD Vout pin of temperature sensor LM35 is connected on pin RA2
which is ADC0 of all ADC input pins. Pin 3 of LCD is
III. FAN SPEED CONTROL SYSTEM CIRCUIT DESIGN connected to ground via 1Kohm resistor to set the contrast of
the LCD to display temperature on LCD. Pins from RB2 to
This section describes how the speed of fan is controlled by
RB7 are connected to remaining LCD pins used for data and
PWM output from microcontroller, with the change in room
control signals between LCD and microcontroller
temperature. The schematic circuit diagram of fan speed
PWM output is given to gate terminal of Transistor NPN
control system shown in Fig. 8.
KSP2222A from microcontroller. Transistor NPN KSP2222A
is high switching speed power switch. This switches on and
off at PWM frequency and controls the voltage across motor.
When KSP2222A is on, the motor starts to gain speed and off
then motor looses speed. The hardware circuits that have been
designed for the controlled fan speed system in this research,
which consists of the LM35, PIC microcontroller, BLDC
motor and LCD as shown in Fig. 9, which also include the
crystal circuit.
88
6th Int'l Conference on Electrical, Electronics & Civil Engineering (ICEECE'2014) Nov. 27-28, 2014 Cape Town (South Africa)
V. CONCLUSION
This paper elaborates the design and construction of fan
speed control system to control the room temperature. The
temperature sensor was carefully chosen to gauge the room
temperature. Besides, the PIC microcontroller had been used
to control the fan speed using the PWM, the fan speed in rpm
and the room temperature was successfully programmed using
C Language and their values displayed on LCD. As
calibration process, two methods were used, where the results
of the calibration showed that the temperatures of the room
were close to each other using the LCD, the thermometer and
the voltmeter in each test time. Moreover, the fan speed will
increase automatically if the temperature room is increased.
As conclusion, the system which designed in this work was
perform very well, for any temperature change and can be
classified as automatic control.
89