Design and Implementation of Motor Speed Control and Temperature Sensing Unit Using PIC Controller

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882

Volume 3 Issue 2, May 2014

167

Design and Implementation of Motor Speed control and Temperature sensing


unit using PIC Controller
Ms. Ei Ei Thaw *, Mr. Zaw Min Min Htun**
*Department of Electronic Engineering, Mandalay Technological University, Mandalay, Myanmar (Burma)
** Department of Electronic Engineering, Mandalay Technological University, Mandalay, Myanmar (Burma)

ABSTRACT
This paper aims to design and implementation of DC
motor speed, temperature sensing of material. This
project is mainly concerned on DC motor speed control
system by using microcontroller PIC 16F877A. Motor
speed can be control with variable resistor. So, this
programming device can be used any motor to control
their speed.
Temperature sensing device display the temperature of
any place. At the heart of the circuit is the LM35 and
microcontroller which controls all its functions. LM35 is
a precision temperature sensor with its output
proportional to the temperature (in C). A temperature
sensor LM35 is used for sensing the temperature of the
environment and the system displays the temperature on
an LCD. In this paper, microcontroller PIC 16F877A can
control motor speed at desired speed with variable
resistor and temperature sensing unit display the
temperature of its take place.
Keywords - DC motor; temperature sensing unit; LCD
display.

I.

pumps, robotic arm controls, gyroscope controls and so


on.
Temperature is one of the main parameter to control in
most of the manufacturing industries like chemical, food
processing, pharmaceutical etc. In these kinds of
industries some product need the required temperature to
be maintained at highest priority the product will fail. So
the temperature controller is most widely used in almost
all the industries.
It is basically a close loop control system. There are two
types: ON-OFF type or continuous type system. ONOFF type- Temperature is sensed displayed and it is
compared with set value. If it is greater, then it switches
off the heating element.
In this project ON-OFF type controller has been
implemented. Here the set value for temperature can be
externally set by the user. The actual temperature is
sensed by the temperature sensor. It is displayed on LCD
with the set value. If it exceeds the set value the heater is
turned off. After then when temperature falls below the
specified limit again heater is turned on. not and if it is
less, then switches on the heating element.

INTRODUCTION
II.

PIC is useful for electronic engineering department. It


can be used such motor testing, temperature sensing for
electronics devices. Direct current (DC) motors have
variable characteristics and are used extensively in
variable-speed drives. DC motor can provide a high
starting torque and it is also possible to obtain speed
control over wide range. DC motor plays a significant
role in modern industrial. These are several types of
applications where the load on the DC motor varies over
a speed range. These applications may demand highspeed control accuracy and good dynamic responses.
In home appliances, washers, dryers and compressors are
good examples. In automotive, fuel pump control,
electronic steering control, engine control and electric
vehicle control are good examples of these. In aerospace,
there are a number of applications, like centrifuges,

SYSTEM BLOCK DIAGRAM

The following figure was adopted to develop the system.

www.ijsret.org

Fig. 1. Overall block diagram Units

International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 3 Issue 2, May 2014

2.1. DC Motor Speed Controller

III.

For precise speed control of servo system, closed-loop


control is normally used. Basically, the block diagram
and the flow chart of the speed control are shown in
Figure 2 and Figure 3 respectively. The speed, which is
sensed by analog sensing devices (e.g., tachometer), is
compared with the reference speed to generate the error
signal and to vary the armature voltage of the motor.

168

SYSTEM DESIGN

DC motor speed control and temperature sensing unit is


designed with PIC programming and another necessary
components for this project.
This research paper mainly approach to dc motor control
and temperature sensing unit system.
3.1.

DC Motor Speed Controller

The following figures are DC motor speed control circuit


diagram. This control system based to PIC and its
programming.

Fig. 2. Basic block diagram for DC Motor speed control


2.2. Temperature Sensing Unit
Figure 3 is the temperature sensing block diagram for
PIC trainer.

Fig. 4. Diagram for DC motor speed control circuit

Fig. 3. Block diagram for temperature sensing unit


The output pin of LM35 temperature sensor was
connected to one of the ADC input pin of ATmega32
microcontroller. LCD was connected to Port C of the
microcontroller. ADC was activated for interfacing the
temperature sensor and a program wais written so that
whatever temperature the sensor senses it can be
displayed on LCD screen. A normally closed relay was
interfaced to Port B of the ATmega32 with the help of
transistor to turn off the heater when temperature is
above the set point. Transistor was acting as a switch to
turn ON/OFF the relay. An AC bulb was interfaced with
the microcontroller with the help of relay. Reset
switches were connected to PORT D so that user can set
the temperature of the device accordingly. Finally, code
was written such that the microcontroller can switch
ON/OFF bulb with respect to set temperature.

Fig. 5. Basic flow chart of DC motor speed control

3.2. Circuit Diagram for Temperature Sensing Unit


The figure 6 is temperature sensing control circuit
diagram. This control system based to PIC and its
programming.

www.ijsret.org

International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 3 Issue 2, May 2014

169

Fig. 9. Practical result of DC motor speed control


Fig. 6. Circuit diagram for temperature sensing unit
control

IV.

RESULTS OF RESEARCH

The following results are shown for dc motor.


A
B
C
D

X1
RV1

CRYSTAL

25%

U1
13
14
2
3
4
5
6
7

5k

8
9
10

C1
100n

OSC1/CLKIN
OSC2/CLKOUT

RB0/INT
RB1
RB2
RA0/AN0
RB3/PGM
RA1/AN1
RB4
RA2/AN2/VREF-/CVREF
RB5
RA3/AN3/VREF+
RB6/PGC
RA4/T0CKI/C1OUT
RB7/PGD
RA5/AN4/SS/C2OUT
RC0/T1OSO/T1CKI
RE0/AN5/RD
RC1/T1OSI/CCP2
RE1/AN6/WR
RC2/CCP1
RE2/AN7/CS
RC3/SCK/SCL
RC4/SDI/SDA
MCLR/Vpp/THV
RC5/SDO
RC6/TX/CK
RC7/RX/DT

R1

RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RD4/PSP4
RD5/PSP5
RD6/PSP6
RD7/PSP7

10k
+88.8
Volts

33
34
35
36
37
38
39
40

D1
DIODE

15
16
17
18
23
24
25
26

The following figures are shown for temperature sensing


unit with practical results.

Q1

19
20
21
22
27
28
29
30

The speed of DC motor is directly proportional to the


supply voltage. Pulse duration is directly proportional to
the value of input voltage. When the value of voltage is
slow, pulse will generate narrow and the value of voltage
is high, pulse will generate wide. PWM controls adjusts
the duty ratio of the DC motor. DC voltage is converted
to a square-wave signal. When the voltage of motor
decrease, the speed must decrease. When the voltage of
motor increase, the speed must increase. The average
DC value of the signal can be varied by varying the duty
cycle.

IRFZ44N

PIC16F877A

R2
4.7k

Fig. 7. Diagram for DC motor speed control circuit with


proteus software

Fig. 10. Simulation result of temperature sensing unit

Fig. 8. Simulation result for DC motor speed control

Fig. 12. Practical result of temperature sensing unit


www.ijsret.org

International Journal of Scientific Research Engineering & Technology (IJSRET), ISSN 2278 0882
Volume 3 Issue 2, May 2014

LM35 is a precision temperature sensor with its output


proportional to the temperature (in C). Processed to
display the corresponding temperature value on the
LCD. The output voltage varies by 10 mV in response
to every C rise/fall in temperature; i.e. its scale factor is
0.01V/ C. If temperature sensor read 25 C , output
voltage is 250 mV. If temperature sensor read 27 C,
output voltage is 270 mV.

V.

DISCUSSIONS FOR RESEARCH

5.1. DC Motor Speed Control


The speed of motor shaft can be measured by using
tachometer and oscilloscope. There are many types of
motor which can test such as stepper motor, servo motor,
H bridge motor etc. This system used 5V DC motor
because small size and inexpensive.

5.2. Temperature Sensing Unit


Microcontroller based temperature controller is a simple
and useful circuit which can be used to control the
temperature above a set value using LM35 temperature
sensor. Then, In system programming hardware and
software are many advantages for users. Input-Output
can be changed for many applications but software also
need to be change. On training board, other circuits such
as pressure sensor, humidity sensor, LDR sensor, etc.
can also be tested.

VI.

170

it was found at room temperature and wealther


temperature.

VII.

REFERENCES

[1] Muhammad H. Rashid. Power Electronics Circuits,


Devices and Applications. 3rd edition. United States of
America: Prentice Hall. 2004
[2]Christopher A. Adkins and Michael A. Marra,
Modeling of a Phase-Locked Loop Servo Controller
with Encoder Feedback. IEEE Spectrum, August 1999.
51-56.
[3]P. C. Sen and M. L. MacDonald. Thyristorized DC
Drives with Regenerative Braking and Speed Reversal.
IEEE Transactions on Energy Conversion, 1978, Vol.
IECI-25, No. 4: 347-354.
[4]Norman S. Nise. Control Systems Engineering. 2nd
Edition.
Redwood
City,
California:
The
Benjamin/Cummings Publishing Company, Inc. 1995.
[5] Temperature control using ATmega16-IIT
KHARAGPUR Virtual Lab, http://iitkgp.vlab.co.in.
[6] ATmega32 Datasheet,http://www.atmel.com.
[7] Avinash, Interfacing LM35 Temperature Sensor with
PIC Microcontroller, http://extremeelectronics.co.in.

CONCLUSION

Recent developments in science and technology provide


a wide range scope of applications of high performance
DC motor drives in area such as rolling mills, chemical
process, electric trains, robotic manipulators and the
home electric appliances require speed controllers to
perform tasks. DC motors have speed control
capabilities, which means that speed, torque and even
direction of rotation can be changed at anytime to meet
new condition.
The goal of this project is to design a DC motor speed
control system by using microcontroller PIC16F877A. It
is a closed-loop real time control system. The controller
will maintain the speed at desired speed when there is a
variation of load. By varying the PWM signal from
microcontroller to the motor driver, motor speed can be
controlled back to desired value easily.
The actual temperature and set value of temperature
were getting displayed on the LCD screen. Output was
verified by setting the temperature at different places and
www.ijsret.org

You might also like