Académique Documents
Professionnel Documents
Culture Documents
(IJARET)
Volume 7, Issue 3, MayJune 2016, pp. 8795, Article ID: IJARET_07_03_008
Available online at
http://www.iaeme.com/IJARET/issues.asp?JType=IJARET&VType=7&IType=3
ISSN Print: 0976-6480 and ISSN Online: 0976-6499
IAEME Publication
IMPLEMENTATION OF FRACTIONAL
ORDER TRANSFER FUNCTION USING
LOW COST DSP
Sandip A. Mehta
Ph.D. Scholar, Dept. of Instrumentation & Control,
Nirma University, Ahmedabad, Gujarat, India
Dipak M. Adhyaru
Professor & Section Head, Dept. of Instrumentation & Control,
Nirma University, Ahmedabad, India
ABSTRACT
In this paper, different fractional order transfer functions are taken first
and discretized them using available methods and filters (i.e. Oustaloup or
modified Oustaloup). Coefficients of discretized transfer function are
calculated and scaled using Q15 number system to get the coefficients in the
range between -1 to 1, and converted into equivalent hexadecimal number.
These coefficients are entered into the Micro C code that is generated using
filter design tool of Micro C for dsPIC microcontroller. Also the simulation
results are validated using EasydsPIC4 development board.
Key words: Fractional order, IIR Filter, dsPIC, Q15, Oustaloup
Cite this article: Sandip A. Mehta and Dipak M. Adhyaru, Implementation of
Fractional Order Transfer Function Using Low Cost DSP. International
Journal of Advanced Research in Engineering and Technology, 7(3), 2016, pp
8795.
http://www.iaeme.com/IJARET/issues.asp?JType=IJARET&VType=7&IType=3
1. INTRODUCTION
Fractional calculus was first founded by Leibniz and LHopital probably in 1695.
Now days, fractional-order dynamics, which are defined based on fractional-order
differential equations plays a significant role in different control applications. For
example these dynamics have been extensively used in design and practical
implementation of controllers in modelling of real-world phenomena and in
identification of physical systems [1].
For the fractional order controller implementation part many a uthors have
implemented it using hardware in loop simulation methods [2][3][4] where the actual
control part is been done by the dedicated high cost software with the help of either a
http://www.iaeme.com/IJARET/index.asp
87
editor@iaeme.com
http://www.iaeme.com/IJARET/index.asp
88
editor@iaeme.com
integer order domain the stability of the integer order system has been verified. For
the stability of integer order system, a MATLAB command has been used.
http://www.iaeme.com/IJARET/index.asp
89
editor@iaeme.com
NO
YES
Is System is stable?
NO
YES
Is it between -1 to 1?
<
1
s
N
.I
-1
-1
-1
-1
1
=
0
http://www.iaeme.com/IJARET/index.asp
r
.
90
editor@iaeme.com
End
There is one problem known as a potential instability that is typical of IIR filters
only. FIR filters do not have such a problem as they do not have the feedback.
According to the location of poles in the z plane, it is easy to determine whether it
refers to FIR or IIR filter. The poles of the FIR filter transfer function are located at
the origin. For IIR filter it is always necessary to check after the design process
whether the resulting IIR filter is stable or not. The recursive part of the transfer
function is actually a discrete-time system feedback. Unlike the FIR filters, the IIR
filters have feedback which enables them to have greater selectivity as well as
nonlinearity of phase characteristic than FIR filters. With filter we are using bilinear
transformation because it always makes filter stable [10][11].
For the discretization of fractional order transfer function using z-transform of the
transfer function is of great importance for IIR filters. The location of poles in the z
plane is used for testing stability of designed IIR filter. The poles of the IIR filter
transfer function must be located within the unit circle in orde r that filter is stable.
Filter Designer Tool of Mikro C allows simple and very fast design of digital filters.
User need to define the different specifications like Filter order, Sampling frequency,
Pass band cut-off frequency, and Minimum stop band attenuation etc. in filter
designer tool and it will generate the C code of the same. In the C code we need to
enter the coefficients that we have calculated for our transfer function as described in
flowchart-I.
http://www.iaeme.com/IJARET/index.asp
91
editor@iaeme.com
Here using the Oustaloup approximation the simulation result is as shown in the
figure2. The simulation has been done using MATLAB software.
For the hardware implementation the Easy dsPIC development board has been
used. The Easy dsPIC board allows dsPIC microcontrollers to be interfaced with
external circuits and a broad range of peripheral devices. It comes with a
dsPIC30F4013, 40-pin microcontroller. It has its own on-board USB programmer so
user can load the program into the DSP microcontroller via the dsPICflash
programming software. The following schematic shows connection diagram of
dsPIC30F4013 to DAC MCP4921, Fig.4. The 12 bit DAC is connected to the SPI
module of dsPIC30F4013. The DAC is connected to the SPI module of
dsPIC30F401.3The C code for the IIR filter program is written and the step response
of the filter is as shown in the Figure .3
http://www.iaeme.com/IJARET/index.asp
92
editor@iaeme.com
This transfer function is simulated for the filter order of 5 with sampling time of
0.01 sec. and Tustins prewarp approximation.
http://www.iaeme.com/IJARET/index.asp
93
editor@iaeme.com
4. CONCLUSION
This paper proposed the methodology for the implementation of fractional order
transfer function on dsPIC microcontroller. The different fractional order transfer
functions and fractional PID controller are simulated first and then successfully
implemented using IIR filter approximation method. The fractional order operator
range is -1 to 1. The IIR filter order used in the implementation is up to 12. It has been
observed the higher the order of the filter more accurate the result. However when
filter order is greater than 12 it is difficult to calculate all the filter coefficient
accurately. Since the range of input signal is between 0 to 1 volt only, considerable
amount of noise output is observed. In future the fractional order PID can be
implemented to control the physical system
ACKNOWLEDGEMENT
The present work is a part of PhD research work carried out at Nirma University.
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
http://www.iaeme.com/IJARET/index.asp
94
editor@iaeme.com
[15]
[16]
[17]
http://www.iaeme.com/IJARET/index.asp
95
editor@iaeme.com