1,3
Centre for Development of Advanced Computing (CDAC), Mohali, India
(A scientific Society of Ministry of Comm. &Information Technology, Govt.of India)
balwinder@cdacmohali.in
2
Electronics and Communication Department,
Jagannath Gupta Institute of Engg. & Technology, Jaipur, India
2
Electronics and Communication Department,
Sri Sai institute of Engineering and technology, Pathankot India
Determine a
simplified controller
1. Introduction from control timer Design the controller Using
Fuzzy Rules
MIN-MAX Operator
method tests the magnitudes of each rule and selects the 4. Fuzzy Logic Controller For Stepper Motor
highest one. A rule usually takes the form of IF-THEN
statement as follow:
Many applications related to positioning systems are being
IF x is A AND y is B THEN z is C implemented with stepper motors. It has some applications
in Robotics, Computer peripherals, Industrial servo quality
“AND” is a fuzzy operator, which is the minimum operation drivers and so on. One of the main advantages of stepper
between the two antecedents. There is also an implied “OR” motors is the strong relation between electrical pulses and
operation between successive rules when more than one rule rotation discrete angle steps. The application area for fuzzy
is involved with the same output. The linguistic rule, IF (x1 control is really wide, there are many possible controller
is A1 AND y1 is B1) OR (x2 is A2 AND y2 is B2) THEN z structures, some differing significantly from each other by
is C, can be implemented by taking the maximum value of the number of inputs and outputs, or less significantly by the
all the results with the same consequent block.[2] number of input and output fuzzy sets and their membership
functions forms, or by the form of control rules, the type of
inference engine, and the method of defuzzification
weighted average. This is done by multiplying fuzzy output Figure 7. RTL view of FLC
obtained from the rules evaluation with its corresponding
singleton value, then sum of this value is divided by the sum Table 3: Comparison output between PID [4] and Fuzzy
of all fuzzy output obtained from the rules evaluation. The Logic Controller
result from this calculation is the final single output, which
can be used to control the motor movements.
Parameter PID Fuzzy
Controller Logic
5. Simulation and Synthesis Result Controller
Rise Time(Tr) 415.38ms 400.00ms
The design of fuzzy logic controller is implemented using Settling Time 538.46ms 100ms
VHDL. Synthesis process has performed using Xilinx tools (Ts)
[14] for synthesizing the compiled VHDL design codes into %Overshoot 0% 16.0%
gate level schematics. The VHDL codes are synthesized for
converting into RTL view of the FLC architecture as shown
in figure 7. The Technology mapping has chosen in this
project from Spartan 3E(xc3s1600) with FG484 package
and a speed grade of -4. The synthesized schematic is also
simulated to ensure the synthesized design functions. The
simulation results for the fuzzy controlled stepper motor are
shown in Figure 8.
1610 out of
Number of Slices 83%
1920
Number of Slice Flip 1416 out of
36%
Flops 3840
Number of 4 input 1826 out of
47%
LUTs 3840
Number of bonded 81 out of
46%
IOBs 173
Number of 6 out of
50%
MULT18X18s 12
1 out of
Number of GCLKs 12%
8
Minimum period: 16.476ns Figure 8. Simulation results of Fuzzy Logic Controller
Maximum Frequency: 60.694MHz
Total memory usage is 516524 kilobytes
(IJCNS) International Journal of Computer and Network Security, 81
Vol. 1, No. 3, December 2009
References