SlideShare a Scribd company logo
1 of 4
Download to read offline
IJSRD - International Journal for Scientific Research & Development| Vol. 1, Issue 2, 2013 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 126
To Perform SIL And PIL Testing on Fast Dynamic System using
Economical AVR Controller
Ashish V. Patel1
Prof. Keerti Vashishtha2
1
Student, Dept. of Instrumentation And Control, L. D. College of Engg., Ahmedabad, Gujarat, India
2
Prof. Dept. of Instrumentation And Control, L. D. College of Engg., Ahmedabad, Gujarat, India
Abstract— Embedded Systems is indubitable the core of the
current electronic era. From simple calculators to high-end
control of the spacecraft it plays the key role. With
development in embedded system, it’s also used extensively
in control domain. Applying Rapid Control Prototyping
(RCP) methodology in controller development in model
based design shorten the development period and provide
higher accuracy compared to normal flow. Here we provide
the economical way to perform the SIL (software in the
loop) and PIL (processor in the loop) testing with low cost
AVR controller compare to high-end expensive modules
available in market. This paper focuses on performing SIL
and PIL testing of DC motor with Arduino having
Atmega328 microcontroller.
I. INTRODUCTION
With the development of semiconductor industries and with
Moore’s law, the hardware in embedded system becomes
more complex with time. Now to extract every capability
from controller or processor require the detailed
understanding of architecture and with numbers of vendors
this varies and learning for all controllers it an impossible
task. But with hardware the Computer Aided Control
System Design (CACSD) like MATLAB, LABVIEW
develop into great extent.
Traditional controller development method has separated
processes such as controller design, implementation, test
and verification [1]. The whole process has to be started
over again when an error or deviation occurs, as all
processes are separated its sometime not possible to find the
origin of the problem, making the controller development
process costly and time consuming.
With RCP methodology, which include MIL, SIL and PIL,
all the process development integrated with each other
allowing engineers to quickly test and iterate their control
strategies with real hardware (controller). RCP methodology
is highly used in Model based design as it eliminates
potential bottlenecks, accelerate the development, and save
cost and time [2]. It has been widely used in application like
anti-lock braking, flight control, servo-control, vehicle
stability and medical device development [2].
The Dynamic system chosen for the test is PMDC motor.
DC Motor Speed Control is one of the benchmark problem
and used here for implementing RCP methodology. DC
motors are widely used in industry because of its low cost,
less complex control structure and wide range of speed and
torque. The application includes battery powered device like
wheelchairs and power tools and door openers [6]. But
tuning the controller directly on plant or on its proto-type
may cause damage because it may lead to unsafe operating
point. So with plant parameter we can design controller and
simulate it to verify its behavior to all possible point without
any risk.
The major advantage of RCP over the traditional method is
that once the controller is designed and verified in
simulation environment, we need not to develop
software/code for controller in C/C++ or any other language
with Auto code generation facility code for control strategy
are generated automatically [3]. It saves a lot of time and
useful to industries because it reduces the time-to-market
which is one of the most important factors considering the
high competition in this era.
We have used ARDUINO UNO, containing AVR At mega
328, which is an open source hardware developed by
Massimo Banzi and David Cuartielles, Italy [5].
II. RCP METHODOLOGY
Fig.1: RCP Methodology
As RCP methodology applies to many fields of applications
its structure gets modified accordingly but typical rapid
control prototyping system is comprised of a math modeling
program, a host computer, and a target hardware (controller)
[4]. Here we have used MATLAB for modeling of the
system. Below is the flow of RCP methodology,
Because of multiple feedbacks the error propagation from
one stage to another is eliminated. From the valid data the
To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller
(IJSRD/Vol. 1/Issue 2/2013/0019)
All rights reserved by www.ijsrd.com 127
model of the system is developed in the model modeling
environment i.e. software like MATLAB/SIMULINK. The
controller is then designed depending on control strategy to
be implemented. The controller is then tested in a simulation
environment and this process is called MIL (Model in the
Loop). After verified output and satisfactory behavior the C
equivalent code for the controller is generated through
Auto-code generation facility.
Software in the Loop (SIL)A.
C code generated are need to be verified with a real
controller design to verify the behavior of the generated
code with real controller, thus eliminating error propagation
to next stages. Below is a block diagram of SIL testing?
Fig.2: SIL Testing Block Diagram
The SIL testing is done by S-function generation from the
controller in simulation environment. The S function
represents the Generic C code generated; when we perform
the SIL testing the S function block is executed by the local
C compiler of the MATLAB [7]. Thus in SIL testing us
basically works in two domains one C and other Simulink.
The output of the simulation is compared with that of the
MIL output and controller is redesign if both do not
converge to predetermine tolerance. This allows the
controller modification at an early stage of development and
it also eliminates fix-point and floating point application
error for algorithm implementation.
Processor in the Loop (PIL)B.
SIL verification is done with generic C code only, but
ultimate application required running on the
microcontroller. So the C codes are then compiled with the
IDE compiler for this we need to integrate the IDE with
MATLAB. Thus PIL provides a good verification of
compiled object code on the target platform to ensure
functional equivalence of code running on the target
processor.
Fig.3: PIL Testing Block Diagram
As seen from block diagram, PIL testing is similar to SIL.
The key difference is that, during PIL, code executes on the
target processor. The communication between model and µ-
Controller is achieved through serial or TCP/IP
communication [7]. The advantages of the PIL testing that
we can completely know the behavior of the code in an
embedded environment. MIL, SIL testing is done by the
processor of the computer which is either 32 or 64 bit but
ultimate application is to be run in 8 bit µ-controller so
provide a better idea about the controller behavior and take
necessary step before connecting it to real system.
III. MODEL DEVELOPMENT AND CONTROLLER
DESIGN
DC motor is mechanically commutated electric motors
powered from direct current [6]. System Model of a
Permanent Magnet DC Motor with Speed Controlled by
Armature Voltage can be obtained through Mathematical
Model using Parameters given by Manufacturer Data-sheet.
Here Typical Motor Data of standard Port-Escape motor is
used.
Fig.4: DC Motor Diagram [6]
From above figure based on Kirchhoff’s voltage and
Newton’s law we get:
̈ ̇ (1)
̇ (2)
Where, R= resistance, L=inductance, i= current,
̇ =angular velocity, b= back EMF. K=motor constant
These methods require a high understanding of mathematics
and time consuming. We can also derive the model of DC
motor with the help of MATLAB’s SIMSCAPE where we
need to place the component values of DC motor from data-
sheet and thus provide high model fidelity and better
understanding [7]. The model of motor is developed is
shown below:
Fig.5: Sims cape Model of DC Motor
Output depends on component value we have selected. As
we can see model is developed only by joining components
together, No Mathematical equation is required for
modeling.
To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller
(IJSRD/Vol. 1/Issue 2/2013/0019)
All rights reserved by www.ijsrd.com 128
Controller DevelopmentA.
After the Sims cape model has been developed, the PI
control for speed control is developed through relay-
feedback method. The Simulink model developed for relay-
feedback method.
Fig.6: Sims cape Model for Relay Feedback Method
From the output obtain we can find Critical period Tu Output
of relay feedback is shown below.
Fig.7: Relay Feedback output
Upper window in scope is relay output while lower window
shows system output. From equation:
(3)
From Ku and The value of PI found from Ziegler-Nichols
table [8].
IV. TESTING AND VERIFICATION
MIL TestingA.
The Simulink block diagram for MIL testing is shown in
figure.
Fig.8: Simulink Model for MIL Testing
The controller output obtained after multiple iterations as PI
obtain directly from Ziegler Nichols are not much accurate
and require modification in gain values. For given set-point
for 1000 RPM obtain shown.
Fig. 9 Simulation of MIL testing
SIL TestingB.
As in RCP flow after MIL, SIL testing is done the Simulink
block diagram for the SIL Testing shown.
Fig.10 Simulink Block Diagram for SIL Testing
After the simulation is done the data is logged with help of
data logger. With the help of Simulink data inspector the
output of MIL and SIL is compared which is shown in
Fig.11The Green Box indicated the S-function generated.
Fig. 11 Data Inspector Output
To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller
(IJSRD/Vol. 1/Issue 2/2013/0019)
All rights reserved by www.ijsrd.com 129
PIL TestingC.
As stated PIL test requires the embedded controller we have
used Arduino Uno and integrate its IDE with
MATLAB. Arduino is an open source hardware board; it
has Atmega328 AVR Controller which is an 8-bit µ
controller with 16 MHz operational frequency [5]. Data
from the Arduino is retrieved through serial communication.
For serial communication the board has on board chip for
serial communication capability.
PIL testing requires 2 Simulink programs:
1. At Tx end i.e. for Arduino, having control strategy
and communication setup. Shown in fig. 12.
2. At host (Rx) computer having MIL tested
controller and Arduino Tx-Rx block for data
transmission
Fig.12 Simulink Model for Arduino
Fig.13 Simulink Model for Host PC
For verification purpose the test signal is sent to both
PI controller obtain after MIL and send to Arduino through
the Tx / Rx block. Arduino process the data as programmed
and send data back to PC.
These data are compared as shown in Fig.13. After
executing above Simulink block diagram the output obtain
is shown below.
Fig.14 Difference between MIL and PIL Block
As seen above the data varies for maximum of 1.1 units,
which used for PWM generation to control the motor, which
is acceptable comparing high-end processor in PC v/s 8-bit
µ controller. This error is also elevated by the fact that serial
communications took place in uint8 only and not in float.
V. CONCLUSION AND FUTURE SCOPE
By employing RCP methodology, the code for complete
embedded control is automatically generated. No hand-
coding is required and generated code is verified with
simulated output. The PIL testing ensures that the code
generated is compatible and can be executed independently
in AVR controller. The output obtained was within
acceptable limits.
Because of low cost hardware it can be used by students at
university to implement various control strategies for other
benchmark problems like 2 tank system, inverted pendulum.
REFERENCES
[1] Junwon Jang; Choon Ki Ahn; Sekyung Han; Wook
Hyun Kwon, "Rapid Control Prototyping for Robot
Soccer System using SIMTool," SICE-ICASE, 2006.
International Joint Conference, vol., no., pp.3035, 3039,
18-21 Oct. 2006
[2] PrecisionMBA, LLC. “Rapid Control Prototyping,”
Available:
http://www.precisionmba.com/rapid_control_prototypin
g.htm
[3] Duma, R.; Petreus, D.; Sita, V. I.; Dobra, P.; Rusu, A.,
"Rapid Control Prototyping toolbox for Renesas
M32C87 microcontroller," Automation Quality and
Testing Robotics (AQTR), 2010 IEEE International
Conference on , vol.1, no., pp.1,6, 28-30 May 2010
[4] Duma, R.; Dobra, P.; Abrudean, M.; Dobra, M., "Rapid
prototyping of control systems using embedded target
for TI C2000 DSP," Control & Automation, 2007. MED
'07. Mediterranean Conference on , vol., no., pp.1,5, 27-
29 June 2007
[5] Arduino datasheet. Available: www.arduino.cc
[6] DC-motor http://en.wikipedia.org/wiki/DC_motor
[7] SIMSCAPE user guide from MATLAB
[8] Kuo BC, Digital Control Systems, Prentice-Hall, 1992
[9] Methoden,Anwendungen, Rapid Control Prototyping,
Springer,2006.

More Related Content

What's hot

Model-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentModel-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentThe Hartford
 
PID Controller Simulator Design for Polynomials Transfer Function
PID Controller Simulator Design for Polynomials Transfer FunctionPID Controller Simulator Design for Polynomials Transfer Function
PID Controller Simulator Design for Polynomials Transfer FunctionMIbrar4
 
Model Based Design of Hybrid and Electric Powertrains
Model Based Design of Hybrid and Electric PowertrainsModel Based Design of Hybrid and Electric Powertrains
Model Based Design of Hybrid and Electric PowertrainsSandeep Sovani, Ph.D.
 
Industrial Control Systems - PLC
Industrial Control Systems - PLCIndustrial Control Systems - PLC
Industrial Control Systems - PLCBehzad Samadi
 
Speed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned piSpeed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned piAlexander Decker
 
On an LAS-integrated soft PLC system based on WorldFIP fieldbus
On an LAS-integrated soft PLC system based on WorldFIP fieldbusOn an LAS-integrated soft PLC system based on WorldFIP fieldbus
On an LAS-integrated soft PLC system based on WorldFIP fieldbusISA Interchange
 
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET Journal
 
Decentralized supervisory based switching control for uncertain multivariable...
Decentralized supervisory based switching control for uncertain multivariable...Decentralized supervisory based switching control for uncertain multivariable...
Decentralized supervisory based switching control for uncertain multivariable...ISA Interchange
 
Tracy–Widom distribution based fault detection approach: Application to aircr...
Tracy–Widom distribution based fault detection approach: Application to aircr...Tracy–Widom distribution based fault detection approach: Application to aircr...
Tracy–Widom distribution based fault detection approach: Application to aircr...ISA Interchange
 
Microcontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-CoreMicrocontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-CoreVLSICS Design
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...IRJET Journal
 
Observations of can Bus Control System
Observations of can Bus Control SystemObservations of can Bus Control System
Observations of can Bus Control Systemijtsrd
 
A portable hardware in-the-loop device for automotive diagnostic control systems
A portable hardware in-the-loop device for automotive diagnostic control systemsA portable hardware in-the-loop device for automotive diagnostic control systems
A portable hardware in-the-loop device for automotive diagnostic control systemsISA Interchange
 

What's hot (20)

Model-Based Design For Motor Control Development
Model-Based Design For Motor Control DevelopmentModel-Based Design For Motor Control Development
Model-Based Design For Motor Control Development
 
PID Controller Simulator Design for Polynomials Transfer Function
PID Controller Simulator Design for Polynomials Transfer FunctionPID Controller Simulator Design for Polynomials Transfer Function
PID Controller Simulator Design for Polynomials Transfer Function
 
Model Based Design of Hybrid and Electric Powertrains
Model Based Design of Hybrid and Electric PowertrainsModel Based Design of Hybrid and Electric Powertrains
Model Based Design of Hybrid and Electric Powertrains
 
Ge2310721081
Ge2310721081Ge2310721081
Ge2310721081
 
Industrial Control Systems - PLC
Industrial Control Systems - PLCIndustrial Control Systems - PLC
Industrial Control Systems - PLC
 
Speed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned piSpeed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned pi
 
On an LAS-integrated soft PLC system based on WorldFIP fieldbus
On an LAS-integrated soft PLC system based on WorldFIP fieldbusOn an LAS-integrated soft PLC system based on WorldFIP fieldbus
On an LAS-integrated soft PLC system based on WorldFIP fieldbus
 
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
 
Performance Study of Enhanced Non-Linear PID Control Applied on Brushless DC ...
Performance Study of Enhanced Non-Linear PID Control Applied on Brushless DC ...Performance Study of Enhanced Non-Linear PID Control Applied on Brushless DC ...
Performance Study of Enhanced Non-Linear PID Control Applied on Brushless DC ...
 
Bj4301341344
Bj4301341344Bj4301341344
Bj4301341344
 
Decentralized supervisory based switching control for uncertain multivariable...
Decentralized supervisory based switching control for uncertain multivariable...Decentralized supervisory based switching control for uncertain multivariable...
Decentralized supervisory based switching control for uncertain multivariable...
 
Tracy–Widom distribution based fault detection approach: Application to aircr...
Tracy–Widom distribution based fault detection approach: Application to aircr...Tracy–Widom distribution based fault detection approach: Application to aircr...
Tracy–Widom distribution based fault detection approach: Application to aircr...
 
Gl3311371146
Gl3311371146Gl3311371146
Gl3311371146
 
Microcontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-CoreMicrocontroller Based Testing of Digital IP-Core
Microcontroller Based Testing of Digital IP-Core
 
Design of a discrete PID controller based on identification data for a simsca...
Design of a discrete PID controller based on identification data for a simsca...Design of a discrete PID controller based on identification data for a simsca...
Design of a discrete PID controller based on identification data for a simsca...
 
Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...Development of Software for Estimation of Structural Dynamic Characteristics ...
Development of Software for Estimation of Structural Dynamic Characteristics ...
 
Observations of can Bus Control System
Observations of can Bus Control SystemObservations of can Bus Control System
Observations of can Bus Control System
 
A portable hardware in-the-loop device for automotive diagnostic control systems
A portable hardware in-the-loop device for automotive diagnostic control systemsA portable hardware in-the-loop device for automotive diagnostic control systems
A portable hardware in-the-loop device for automotive diagnostic control systems
 
Training 17
Training 17Training 17
Training 17
 
Gore
GoreGore
Gore
 

Similar to To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Controller

Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCIRJET Journal
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewIAEME Publication
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewiaemedu
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewiaemedu
 
Implementation of PID Controller PWM Module on FPGA
Implementation of PID Controller PWM Module on FPGAImplementation of PID Controller PWM Module on FPGA
Implementation of PID Controller PWM Module on FPGAijtsrd
 
White paper - Robust firmware development for wind applications through HiL/S...
White paper - Robust firmware development for wind applications through HiL/S...White paper - Robust firmware development for wind applications through HiL/S...
White paper - Robust firmware development for wind applications through HiL/S...Ingeteam Wind Energy
 
training report. automation,plc , scada
training report. automation,plc , scada training report. automation,plc , scada
training report. automation,plc , scada MdQutubuddin1
 
CAN Bus Integration for Enhanced Industrial Control and Safety
CAN Bus Integration for Enhanced Industrial Control and SafetyCAN Bus Integration for Enhanced Industrial Control and Safety
CAN Bus Integration for Enhanced Industrial Control and SafetyIRJET Journal
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopMahmoud Hussein
 
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVE
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVETRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVE
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVEAKSHAY SACHAN
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Controlrahulmonikasharma
 
Prediction of PID control model on PLC
Prediction of PID control model on PLCPrediction of PID control model on PLC
Prediction of PID control model on PLCTELKOMNIKA JOURNAL
 
IRJET- Automatic Bottle Filling and Capping System using PLC
IRJET- Automatic Bottle Filling and Capping System using PLCIRJET- Automatic Bottle Filling and Capping System using PLC
IRJET- Automatic Bottle Filling and Capping System using PLCIRJET Journal
 
Model predictive control techniques for cstr using matlab
Model predictive control techniques for cstr using matlabModel predictive control techniques for cstr using matlab
Model predictive control techniques for cstr using matlabIAEME Publication
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...IJERA Editor
 
IRJET-Automation of Boring Machine using PLC and HMI
IRJET-Automation of Boring Machine using PLC and HMIIRJET-Automation of Boring Machine using PLC and HMI
IRJET-Automation of Boring Machine using PLC and HMIIRJET Journal
 

Similar to To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Controller (20)

Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLC
 
V13I1006.pdf
V13I1006.pdfV13I1006.pdf
V13I1006.pdf
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Implementation of PID Controller PWM Module on FPGA
Implementation of PID Controller PWM Module on FPGAImplementation of PID Controller PWM Module on FPGA
Implementation of PID Controller PWM Module on FPGA
 
White paper - Robust firmware development for wind applications through HiL/S...
White paper - Robust firmware development for wind applications through HiL/S...White paper - Robust firmware development for wind applications through HiL/S...
White paper - Robust firmware development for wind applications through HiL/S...
 
training report. automation,plc , scada
training report. automation,plc , scada training report. automation,plc , scada
training report. automation,plc , scada
 
CAN Bus Integration for Enhanced Industrial Control and Safety
CAN Bus Integration for Enhanced Industrial Control and SafetyCAN Bus Integration for Enhanced Industrial Control and Safety
CAN Bus Integration for Enhanced Industrial Control and Safety
 
MIL_SIL.pdf
MIL_SIL.pdfMIL_SIL.pdf
MIL_SIL.pdf
 
Model based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loopModel based design-Hardware in loop-software in loop
Model based design-Hardware in loop-software in loop
 
25. 23248.pdf
25. 23248.pdf25. 23248.pdf
25. 23248.pdf
 
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVE
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVETRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVE
TRAINING REPORT ON INDUSTRIAL AUTOMATION- PLC SCADA, VARIABLE FREQUENCY DRIVE
 
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LABModeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Control
 
Prediction of PID control model on PLC
Prediction of PID control model on PLCPrediction of PID control model on PLC
Prediction of PID control model on PLC
 
IRJET- Automatic Bottle Filling and Capping System using PLC
IRJET- Automatic Bottle Filling and Capping System using PLCIRJET- Automatic Bottle Filling and Capping System using PLC
IRJET- Automatic Bottle Filling and Capping System using PLC
 
Model predictive control techniques for cstr using matlab
Model predictive control techniques for cstr using matlabModel predictive control techniques for cstr using matlab
Model predictive control techniques for cstr using matlab
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
 
IRJET-Automation of Boring Machine using PLC and HMI
IRJET-Automation of Boring Machine using PLC and HMIIRJET-Automation of Boring Machine using PLC and HMI
IRJET-Automation of Boring Machine using PLC and HMI
 

More from ijsrd.com

IoT Enabled Smart Grid
IoT Enabled Smart GridIoT Enabled Smart Grid
IoT Enabled Smart Gridijsrd.com
 
A Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of ThingsA Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of Thingsijsrd.com
 
IoT for Everyday Life
IoT for Everyday LifeIoT for Everyday Life
IoT for Everyday Lifeijsrd.com
 
Study on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOTStudy on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOTijsrd.com
 
Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...ijsrd.com
 
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...ijsrd.com
 
A Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's LifeA Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's Lifeijsrd.com
 
Pedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language LearningPedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language Learningijsrd.com
 
Virtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation SystemVirtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation Systemijsrd.com
 
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...ijsrd.com
 
Understanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart RefrigeratorUnderstanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart Refrigeratorijsrd.com
 
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...ijsrd.com
 
A Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processingA Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processingijsrd.com
 
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web LogsWeb Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logsijsrd.com
 
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEMAPPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEMijsrd.com
 
Making model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point TrackingMaking model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point Trackingijsrd.com
 
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...ijsrd.com
 
Study and Review on Various Current Comparators
Study and Review on Various Current ComparatorsStudy and Review on Various Current Comparators
Study and Review on Various Current Comparatorsijsrd.com
 
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...ijsrd.com
 
Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.ijsrd.com
 

More from ijsrd.com (20)

IoT Enabled Smart Grid
IoT Enabled Smart GridIoT Enabled Smart Grid
IoT Enabled Smart Grid
 
A Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of ThingsA Survey Report on : Security & Challenges in Internet of Things
A Survey Report on : Security & Challenges in Internet of Things
 
IoT for Everyday Life
IoT for Everyday LifeIoT for Everyday Life
IoT for Everyday Life
 
Study on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOTStudy on Issues in Managing and Protecting Data of IOT
Study on Issues in Managing and Protecting Data of IOT
 
Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...Interactive Technologies for Improving Quality of Education to Build Collabor...
Interactive Technologies for Improving Quality of Education to Build Collabor...
 
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...Internet of Things - Paradigm Shift of Future Internet Application for Specia...
Internet of Things - Paradigm Shift of Future Internet Application for Specia...
 
A Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's LifeA Study of the Adverse Effects of IoT on Student's Life
A Study of the Adverse Effects of IoT on Student's Life
 
Pedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language LearningPedagogy for Effective use of ICT in English Language Learning
Pedagogy for Effective use of ICT in English Language Learning
 
Virtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation SystemVirtual Eye - Smart Traffic Navigation System
Virtual Eye - Smart Traffic Navigation System
 
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...Ontological Model of Educational Programs in Computer Science (Bachelor and M...
Ontological Model of Educational Programs in Computer Science (Bachelor and M...
 
Understanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart RefrigeratorUnderstanding IoT Management for Smart Refrigerator
Understanding IoT Management for Smart Refrigerator
 
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
DESIGN AND ANALYSIS OF DOUBLE WISHBONE SUSPENSION SYSTEM USING FINITE ELEMENT...
 
A Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processingA Review: Microwave Energy for materials processing
A Review: Microwave Energy for materials processing
 
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web LogsWeb Usage Mining: A Survey on User's Navigation Pattern from Web Logs
Web Usage Mining: A Survey on User's Navigation Pattern from Web Logs
 
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEMAPPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
APPLICATION OF STATCOM to IMPROVED DYNAMIC PERFORMANCE OF POWER SYSTEM
 
Making model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point TrackingMaking model of dual axis solar tracking with Maximum Power Point Tracking
Making model of dual axis solar tracking with Maximum Power Point Tracking
 
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
A REVIEW PAPER ON PERFORMANCE AND EMISSION TEST OF 4 STROKE DIESEL ENGINE USI...
 
Study and Review on Various Current Comparators
Study and Review on Various Current ComparatorsStudy and Review on Various Current Comparators
Study and Review on Various Current Comparators
 
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
Reducing Silicon Real Estate and Switching Activity Using Low Power Test Patt...
 
Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.Defending Reactive Jammers in WSN using a Trigger Identification Service.
Defending Reactive Jammers in WSN using a Trigger Identification Service.
 

Recently uploaded

Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 

Recently uploaded (20)

Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 

To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Controller

  • 1. IJSRD - International Journal for Scientific Research & Development| Vol. 1, Issue 2, 2013 | ISSN (online): 2321-0613 All rights reserved by www.ijsrd.com 126 To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Controller Ashish V. Patel1 Prof. Keerti Vashishtha2 1 Student, Dept. of Instrumentation And Control, L. D. College of Engg., Ahmedabad, Gujarat, India 2 Prof. Dept. of Instrumentation And Control, L. D. College of Engg., Ahmedabad, Gujarat, India Abstract— Embedded Systems is indubitable the core of the current electronic era. From simple calculators to high-end control of the spacecraft it plays the key role. With development in embedded system, it’s also used extensively in control domain. Applying Rapid Control Prototyping (RCP) methodology in controller development in model based design shorten the development period and provide higher accuracy compared to normal flow. Here we provide the economical way to perform the SIL (software in the loop) and PIL (processor in the loop) testing with low cost AVR controller compare to high-end expensive modules available in market. This paper focuses on performing SIL and PIL testing of DC motor with Arduino having Atmega328 microcontroller. I. INTRODUCTION With the development of semiconductor industries and with Moore’s law, the hardware in embedded system becomes more complex with time. Now to extract every capability from controller or processor require the detailed understanding of architecture and with numbers of vendors this varies and learning for all controllers it an impossible task. But with hardware the Computer Aided Control System Design (CACSD) like MATLAB, LABVIEW develop into great extent. Traditional controller development method has separated processes such as controller design, implementation, test and verification [1]. The whole process has to be started over again when an error or deviation occurs, as all processes are separated its sometime not possible to find the origin of the problem, making the controller development process costly and time consuming. With RCP methodology, which include MIL, SIL and PIL, all the process development integrated with each other allowing engineers to quickly test and iterate their control strategies with real hardware (controller). RCP methodology is highly used in Model based design as it eliminates potential bottlenecks, accelerate the development, and save cost and time [2]. It has been widely used in application like anti-lock braking, flight control, servo-control, vehicle stability and medical device development [2]. The Dynamic system chosen for the test is PMDC motor. DC Motor Speed Control is one of the benchmark problem and used here for implementing RCP methodology. DC motors are widely used in industry because of its low cost, less complex control structure and wide range of speed and torque. The application includes battery powered device like wheelchairs and power tools and door openers [6]. But tuning the controller directly on plant or on its proto-type may cause damage because it may lead to unsafe operating point. So with plant parameter we can design controller and simulate it to verify its behavior to all possible point without any risk. The major advantage of RCP over the traditional method is that once the controller is designed and verified in simulation environment, we need not to develop software/code for controller in C/C++ or any other language with Auto code generation facility code for control strategy are generated automatically [3]. It saves a lot of time and useful to industries because it reduces the time-to-market which is one of the most important factors considering the high competition in this era. We have used ARDUINO UNO, containing AVR At mega 328, which is an open source hardware developed by Massimo Banzi and David Cuartielles, Italy [5]. II. RCP METHODOLOGY Fig.1: RCP Methodology As RCP methodology applies to many fields of applications its structure gets modified accordingly but typical rapid control prototyping system is comprised of a math modeling program, a host computer, and a target hardware (controller) [4]. Here we have used MATLAB for modeling of the system. Below is the flow of RCP methodology, Because of multiple feedbacks the error propagation from one stage to another is eliminated. From the valid data the
  • 2. To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller (IJSRD/Vol. 1/Issue 2/2013/0019) All rights reserved by www.ijsrd.com 127 model of the system is developed in the model modeling environment i.e. software like MATLAB/SIMULINK. The controller is then designed depending on control strategy to be implemented. The controller is then tested in a simulation environment and this process is called MIL (Model in the Loop). After verified output and satisfactory behavior the C equivalent code for the controller is generated through Auto-code generation facility. Software in the Loop (SIL)A. C code generated are need to be verified with a real controller design to verify the behavior of the generated code with real controller, thus eliminating error propagation to next stages. Below is a block diagram of SIL testing? Fig.2: SIL Testing Block Diagram The SIL testing is done by S-function generation from the controller in simulation environment. The S function represents the Generic C code generated; when we perform the SIL testing the S function block is executed by the local C compiler of the MATLAB [7]. Thus in SIL testing us basically works in two domains one C and other Simulink. The output of the simulation is compared with that of the MIL output and controller is redesign if both do not converge to predetermine tolerance. This allows the controller modification at an early stage of development and it also eliminates fix-point and floating point application error for algorithm implementation. Processor in the Loop (PIL)B. SIL verification is done with generic C code only, but ultimate application required running on the microcontroller. So the C codes are then compiled with the IDE compiler for this we need to integrate the IDE with MATLAB. Thus PIL provides a good verification of compiled object code on the target platform to ensure functional equivalence of code running on the target processor. Fig.3: PIL Testing Block Diagram As seen from block diagram, PIL testing is similar to SIL. The key difference is that, during PIL, code executes on the target processor. The communication between model and µ- Controller is achieved through serial or TCP/IP communication [7]. The advantages of the PIL testing that we can completely know the behavior of the code in an embedded environment. MIL, SIL testing is done by the processor of the computer which is either 32 or 64 bit but ultimate application is to be run in 8 bit µ-controller so provide a better idea about the controller behavior and take necessary step before connecting it to real system. III. MODEL DEVELOPMENT AND CONTROLLER DESIGN DC motor is mechanically commutated electric motors powered from direct current [6]. System Model of a Permanent Magnet DC Motor with Speed Controlled by Armature Voltage can be obtained through Mathematical Model using Parameters given by Manufacturer Data-sheet. Here Typical Motor Data of standard Port-Escape motor is used. Fig.4: DC Motor Diagram [6] From above figure based on Kirchhoff’s voltage and Newton’s law we get: ̈ ̇ (1) ̇ (2) Where, R= resistance, L=inductance, i= current, ̇ =angular velocity, b= back EMF. K=motor constant These methods require a high understanding of mathematics and time consuming. We can also derive the model of DC motor with the help of MATLAB’s SIMSCAPE where we need to place the component values of DC motor from data- sheet and thus provide high model fidelity and better understanding [7]. The model of motor is developed is shown below: Fig.5: Sims cape Model of DC Motor Output depends on component value we have selected. As we can see model is developed only by joining components together, No Mathematical equation is required for modeling.
  • 3. To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller (IJSRD/Vol. 1/Issue 2/2013/0019) All rights reserved by www.ijsrd.com 128 Controller DevelopmentA. After the Sims cape model has been developed, the PI control for speed control is developed through relay- feedback method. The Simulink model developed for relay- feedback method. Fig.6: Sims cape Model for Relay Feedback Method From the output obtain we can find Critical period Tu Output of relay feedback is shown below. Fig.7: Relay Feedback output Upper window in scope is relay output while lower window shows system output. From equation: (3) From Ku and The value of PI found from Ziegler-Nichols table [8]. IV. TESTING AND VERIFICATION MIL TestingA. The Simulink block diagram for MIL testing is shown in figure. Fig.8: Simulink Model for MIL Testing The controller output obtained after multiple iterations as PI obtain directly from Ziegler Nichols are not much accurate and require modification in gain values. For given set-point for 1000 RPM obtain shown. Fig. 9 Simulation of MIL testing SIL TestingB. As in RCP flow after MIL, SIL testing is done the Simulink block diagram for the SIL Testing shown. Fig.10 Simulink Block Diagram for SIL Testing After the simulation is done the data is logged with help of data logger. With the help of Simulink data inspector the output of MIL and SIL is compared which is shown in Fig.11The Green Box indicated the S-function generated. Fig. 11 Data Inspector Output
  • 4. To perform SIL and PIL Testing on Fast Dynamic System using Economical AVR Controller (IJSRD/Vol. 1/Issue 2/2013/0019) All rights reserved by www.ijsrd.com 129 PIL TestingC. As stated PIL test requires the embedded controller we have used Arduino Uno and integrate its IDE with MATLAB. Arduino is an open source hardware board; it has Atmega328 AVR Controller which is an 8-bit µ controller with 16 MHz operational frequency [5]. Data from the Arduino is retrieved through serial communication. For serial communication the board has on board chip for serial communication capability. PIL testing requires 2 Simulink programs: 1. At Tx end i.e. for Arduino, having control strategy and communication setup. Shown in fig. 12. 2. At host (Rx) computer having MIL tested controller and Arduino Tx-Rx block for data transmission Fig.12 Simulink Model for Arduino Fig.13 Simulink Model for Host PC For verification purpose the test signal is sent to both PI controller obtain after MIL and send to Arduino through the Tx / Rx block. Arduino process the data as programmed and send data back to PC. These data are compared as shown in Fig.13. After executing above Simulink block diagram the output obtain is shown below. Fig.14 Difference between MIL and PIL Block As seen above the data varies for maximum of 1.1 units, which used for PWM generation to control the motor, which is acceptable comparing high-end processor in PC v/s 8-bit µ controller. This error is also elevated by the fact that serial communications took place in uint8 only and not in float. V. CONCLUSION AND FUTURE SCOPE By employing RCP methodology, the code for complete embedded control is automatically generated. No hand- coding is required and generated code is verified with simulated output. The PIL testing ensures that the code generated is compatible and can be executed independently in AVR controller. The output obtained was within acceptable limits. Because of low cost hardware it can be used by students at university to implement various control strategies for other benchmark problems like 2 tank system, inverted pendulum. REFERENCES [1] Junwon Jang; Choon Ki Ahn; Sekyung Han; Wook Hyun Kwon, "Rapid Control Prototyping for Robot Soccer System using SIMTool," SICE-ICASE, 2006. International Joint Conference, vol., no., pp.3035, 3039, 18-21 Oct. 2006 [2] PrecisionMBA, LLC. “Rapid Control Prototyping,” Available: http://www.precisionmba.com/rapid_control_prototypin g.htm [3] Duma, R.; Petreus, D.; Sita, V. I.; Dobra, P.; Rusu, A., "Rapid Control Prototyping toolbox for Renesas M32C87 microcontroller," Automation Quality and Testing Robotics (AQTR), 2010 IEEE International Conference on , vol.1, no., pp.1,6, 28-30 May 2010 [4] Duma, R.; Dobra, P.; Abrudean, M.; Dobra, M., "Rapid prototyping of control systems using embedded target for TI C2000 DSP," Control & Automation, 2007. MED '07. Mediterranean Conference on , vol., no., pp.1,5, 27- 29 June 2007 [5] Arduino datasheet. Available: www.arduino.cc [6] DC-motor http://en.wikipedia.org/wiki/DC_motor [7] SIMSCAPE user guide from MATLAB [8] Kuo BC, Digital Control Systems, Prentice-Hall, 1992 [9] Methoden,Anwendungen, Rapid Control Prototyping, Springer,2006.