Speed of Control of Motor Arduino Matlab Simulation PDF
Speed of Control of Motor Arduino Matlab Simulation PDF
I. INTRODUCTION
The main Objective of this work is to use low cost hardware, to connect Simulink with a real system[1].
Nowadays, the practical prototypes are connected to a computer through expensive DAQs. When computers or
DAQs are updated, it implies a very high cost. In the case of internal DAQs, connected on an internal bus of the
computer, the difficulties are bigger. New Arduino based DAQ must be adapted to the lab prototypes in order to
avoid hardware changes or modifications on it[2].
II. EXISTING SYSTEM
The problem of control practices using analog circuits is difficult. For example usage of IC555 timers in
control practices. In IC555 timers the availability of RC combination circuits are difficult to achieve a required
frequency pulse. So we cannot get the effective control of speed from these circuits and designing of circuits is
also difficult. In digital control practices microcontrollers and microprocessors can be used for effective control,
but the problem lies in coding of microcontrollers and microprocessors, which requires knowledge of embedded C
or python, etc. and depth knowledge on architecture of microcontrollers. Thus in this paper we concerned about
speed control of DC motor as main objective.
DRAWBACKS OF ANALOG SYSTEM:
➢ It requires more analog components.
➢ It has complex circuitry for implementing efficient algorithms.
➢ It is hard to find faults in analog systems
➢ Once an analog circuit is designed for a specified task, it cannot be used for other tasks.
➢ Communication devices cannot be added to analog systems
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 Ma
DC Current for 3.3V Pin 50 Ma
Flash Memory 32 KB of which 0.5 KB used by boot loader
SRAM 2KB
EEPROM 1 KB
Clock Speed 16 MHz
LED_BUILTIN 13
Operating Temperature -40°C to +105°C
CPU Speed 1MIPS for 1MHz
2. In the Add-On Manager window, find and click the support package, and then click Install.
1. On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.
2. In the Add-On Manager window, find and click the support package, and then click Uninstall.
If you clicked Setup Later at the end of the Add-On Manager Installation process, you can restart hardware setup
process.
• On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.
When the Add-On Manager opens, click Setup
In this model the duty ratio can be taken from two sources but using control switch related to subsystem1either of
the source is selected based on the requirement. The duty ratio is given to the Direction and ON/OFF controller
and based on the direction and enable switches it forwards the duty ratio to the motor driver then motor drives
gives duty ratio to the Arduino PWM block. Then Arduino produces PWM signals to the Motor Drive.
In this block the duty ratio is send to PWM block of Simulink Support packages. In between that a
limiter is used to limit duty ratio value in between 0 & 100. Then a Gain block is placed with a value of ‘2.55’ ,it
helps in conversion of duty ratio (0 to 100) to PWM block working range of 0 to 255. E.g. If we want produce a
PWM signal of duty ratio 25% , then 25*2.55 is fed to the PWM block.
ENCODER BLOCK :
Encoder block is used to calculate the speed of the motor from the real time system using IR sensor data (Square
Pulse).
Digital Input block (Pin12) is used to take digital data from real time system; here It is used to read the
IR sensor’s data (Square Pulse).
During positive edge of the square pulse from motor encoder the TRIGGERED SUBSYSTEM is
activated, it calculates the speed of the motor for every cycle of square wave by using the formulae
Figure 7.1: Result analysis for an input from Simulink constant source block
CONCLUSION:
The paper proposes a new technique for speed control of DC motor, it is done by varying the duty ratio
of the H-Bridge Motor Driver.
Conventional methods are reliable and accurate but these methods involve complex circuitry and control.
Even though conventional methods are used for speed control. This method provides smooth control technique for
speed control even up to rotor standstill position with less power dissipation, simple circuitry easy control with
low cost and effective speed control of DC motor.
This technique achieves result with utmost accuracy as in case of conventional methods, this has been
proved in this paper. The proposed technique for speed control and direction control of DC motor.
This technique of programming Arduino, eliminated the use conventional C-code for Arduino. External
mode in Simulink provided a great opportunity to log real time data and change parameters of real time system.
Thus we conclude that the technique of using Simulink and Arduino together has overcome all the drawbacks of
existing systems.
REFERENCES:
[1] R.Barber, M.Horra, J.Crespo: Control Practices using Simulink with Arduino as Low Cost Hardware.
Preprints of the 10th IFAC Symposium Advances in Control Education. The International Federation Automatic
Control, August 28-30,2013 University of Sheffield, UK.
[2] Y.V. Niranjan Kumar, P.Hima Bindu, A.Divya Sneha, A.Sravani: A Novel Implementation of Phase Control
Technique for Speed Control of Induction Motor using ARDUINO. ISSN 2250-2459, ISO 9001:2008 Certified
Journal, Volume 3, Issue 4, April 2013.
[3] A.Soriano, L.Marin, M.Valles, A.Valera, P.Albertos: Low Cost Platform for Automatic Control Education
Based on Open Hardware. Preprints of The 19th World Congress. The International Federation of Automatic
Control. Cape Town, South Africa. August24-29,2014.
[4] Khan Masoom Raza, Mohd.Kamil, Pushpendra Kumar: Speed Control of DC Motor by using PWM.
International Journal of Advanced Research in Computer and Communication Engineering. ISSN(online) 2278-
1021, ISSN(print) 2319 5940, Vol 5,Issue 4, April 2016.
[5] Patrick Olabisi, Israel Megbowon and Isaiah Akintunde: Programming The PIC16F877 A Microcontroller for
Speed Control of DC Motor. IOSR Journal of Electrical And Electronics Engineering (IOSR-JEEE) e-ISSN:
2278-1676, p-ISSN: 2320-3331, Volume 10, Issue 2 Ver.III (March- April. 2015), PP 79-85.
[6] I G.A.P. Raka Agung, S.Huda, I W.Arta Wijaya: Speed Control for DC Motor with Pulse Width Modulation
(PWM) Method using Infrared Remote Control Based on ATmega 16 Microcontroller. ISBN:978-1-4799-6127-6
Bali, 5-7 November 2014, ICSGTEIS 2014.