SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 3, Issue 1, January -February 2013, pp.778-783

      Microcontroller Based Speed Control of DC Geared Motor
                Through RS-232 Interface With PC
                         1
                          Jeetender Singh Chauhan, 2Sunil Semwal
                        1Research Scholar,Instrumentation & Control Engineering Deptt
                                      Graphic Era University, Dehradun
                         2Asst. Professor,Electrical and Electronics Engineering Deptt
                                       Graphic Era University,Dehradun



Abstract: The speed control of DC motor is very            the effect of a continuously varying analog signal.
crucial in applications where precision and                This PWM conversion generally has very high
protection are of essence. Purpose of a motor              electrical efficiency and can be used in controlling
speed controller is to take a signal representing the      either a three-phase synchronous motor or a three-
required speed and to drive a motor at that speed.         phase induction motor .It is desirable to create three
In this paper PWM based speed control of DC                perfectly sinusoidal current waveforms in the motor
motor through RS232 with PC goal of this as Role           windings, with relative phase displacements of 120°.
of electrical drives is a major concern in industrial      The production of sine wave power using a linear
automation. Industrial applications use dc motors          amplifier system would have low efficiency,
because the speed-torque relationship can be               maximum of 64%. Efficiency can be increase up to
varied to almost any useful form for both dc               95% if instead of the linear circuitry, fast electronic
motor and regeneration applications in either              switching devices are used, depending on the
direction of rotation. DC motors feature a speed,          properties of the semiconductor power switch.The
which can be controlled smoothly down to zero,             result is a load current waveform that depends mainly
immediately followed by acceleration in the                on the modulation of the duty ratio.
opposite direction without power circuit switching.
Having intelligence PC available to control
operation of speed of motor which can increase
productivity in broad range of industry. Personal
computers or Laptops are working on Register
Level while our controller is working on TTL so
we have to use a level shifter that is MAX232 IC
which can change the platform for serial
communication. This software provide variable
baud rate for operation, and connect PC to                    Fig(1.0):Wave form at different duty cycles
MAX232 using serial cable.
Keywords: DC Motor, RS232,MAX 232,
PC,USART                                                   II. HARDWARE DEVELOPMENT
                                                           BLOCK DIAGRAM OF THE PROPOSED SYSTEM IS
 I.       Introduction: Speed control of dc motor          SHOWN BELOW:
could be achieved using mechanical or electrical           (1)Power supply modules-This module is basically
techniques. In the past, speed controls of dc drives are   designed to achieved 5V,500mA.This consists of a
mostly mechanical and requiring large size hardware        transformer which is used to step down the AC
to implement. The development has launched these           voltage ,IN4007 diodes used to form a bridge rectifier
drives back to a position of formidable relevance,         to convert AC to DC , capacitor 1000uF which used
which were predicted to give way to ac drives. Some        as a filter circuit ,7805 regulator to obtain a 5V at the
important applications are rolling mills, paper mills      output of the regulator ,330 ohm resistance, LED as
mine winders, hoists, machine tools, traction, printing    indicator.
presses, textile mills, excavators and cranes. This
paper provides a system that can utilized to use DC
motor for various applications. We can utilize the DC
Motor for various applications by controlling the
speed and orientation according to the field of
interest. Pulse Width Modulation (PWM) is the
technique of utilizing switching devices to produce



                                                                                                    778 | P a g e
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 3, Issue 1, January -February 2013, pp.778-783




         Fig(2.0): diagram of supply section

(2)Embedded microcontroller-There is a whole wide
range of microcontroller available in the market. But
this particular project is developed using AVR series
of microcontroller (ATMEGA16) because of its
inbuilt     ADC        port     and     its  variable
frequency.ATmega16 is a low-power CMOS 8-bit
microcontroller based on the AVR RISC architecture.
By executing powerful instructions in a single clock           Fig( 2.1): Block Diagram of system
cycle, the ATmega16 achieves throughputs
approaching 1 MIPS per MHz, allowing the system          (6)MAX 232(level converter)-MAX232 is a dual
designed to optimize power consumption versus            driver/receiver IC that includes a capacitive voltage
processing speed. Further it also minimizes the cost     generator to supply EIA-232 voltage levels from a
of this personal area network.                           single 5-V supply [2]. Each receiver converts EIA-
                                                         232 inputs to 5-V TTL/CMOS levels. These receivers
(3)USB to serial cable-To interfaces the coordinator     have a typical threshold of 1.3 V and a typical
node with the other nodes.                               hysteresis of 0.5 V, and can accept ±30-V inputs.
                                                         Each driver converts TTL/CMOS input levels into
(4)DB9- It is 9 pin male / female connector. In DB9 9    EIA-232 levels. This can be made to work with the
represent total number of pins and D represents the      help of a few capacitors attached to it.
two parallel rows of pins that are in the shape of D
alphabet.
                                                         (7)L293D(motor driver IC)-This IC is high voltage
                                                         high current four channel driver designed to accept
(5)Display module- The LCD(liquid crystal display)
                                                         DTL or TTL logic.This can provide 600mA output
unit receives character codes (8 bits per character)
                                                         current capability per channel and providing 1.2 peak
from a microprocessor or microcomputer, latches the
                                                         output current(non repetitive) per channel and also
codes to its display data RAM (80-byte) DD RAM
                                                         have internal over temprature protection . It consists
for storing 80 characters, transforms each character
                                                         of a half H bridge to provide high current in order to
code into a      5‟7 dot-matrix character pattern, and
                                                         drive motors.
displays the characters on its LCD screen.

We are 16*2 LCD „s which have 16 columns and 2
rows with 16 hardware pins connected as pin 1,3and
16 are connected to ground , pin 2 and 15 are
connected to +5v pin 3 ,4,5 are RS ,RW and enable
respectively enable pin is always low . data pins of
LCD are 11,12,13,14 which are used for 4 bit
parallel communication .




                                                                                                779 | P a g e
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 3, Issue 1, January -February 2013, pp.778-783
                                                         saved with the extension (.Hex). The compiler also
                                                         generates errors in the program which should be
                                                         removed for proper execution of the program.

                                                         (c) Burning- Burning the machine language (hex) file
                                                         into the microcontroller‟s program memory is
                                                         achieved with a dedicated programmer, which
                                                         attaches to a PC‟s peripheral. PC‟s serial port has
                                                         been used for the purpose. for this purpose Ponyprog
                                                         programmer was used to burn the machine language
                                                         file into the microcontroller‟s program memory. Pony
                                                         prog is serial device programmer software with a
                                                         user-friendly GUI framework available for
                                                         Windows95/98/ME/NT/2000/XP and Intel Linux. Its
                                                         purpose is reading and writing every serial device. It
                                                         supports I²C Bus, Micro wire, SPI EEPROM, and the
                                                         Atmel AVR and Microchip PIC microcontroller. The
                                                         microcontrollers were programmed in approximately
                                                         two seconds with a high speed-programming mode.
                                                         The program memory, which is of Flash type, has,
                                                         just like the EEPROM, a limited lifespan. On AVR
                                                         microcontroller family it may be reprogrammed up to
                                                         a thousand times without any risk of data corruption
Fig(2.2): Simulation Diagram of system                   Atmega16 Programmer (ISP) which is used to burn
                                                         the program into AVR microcontrollers.
            III. Software Development
   Microcontroller, when it is used to operate as a      (d) Evaluation-If the system performs as desired by
   wireless network involves following steps:            the user and performs all the tasks efficiently and
                                                         effectively the software development phase is over
                                                         and the project is ready to be installed in any of the
                                                         industrial sites as a personal area network. If not, the
                                                         entire process is repeated again to rectify the errors.
                                                         One of the difficulties of programming
                                                         microcontrollers is the limited amount of resources
                                                         the programmer has to deal with. In PCs resources
                                                         such as RAM and processing speed are basically
                                                         limitless when compared to microcontrollers. In
                                                         contrast to a PC, the code on microcontrollers should
                                                         be as low on resources as possible, but being cost
                                                         effective and power efficient makes it a better option.
     Fig (3.0): Steps for software development           In the programming of the proposed system is used
                                                         the following .c and .h file
(a) Coding / Debugging- Coding or debugging is one
in a high-level language (such as c or java). Compiler   (1)lcd.c -This c file contains the code for control of
for a high level language helps to reduce production     functionality of the attached LCD module. The code
time. To program the microcontrollers WinAVR [2]         controls the initialization of the LCD, data writing on
was used using C language. The source code has been      the LCD, and also the movement, characteristics and
commented to facilitate any occasional future            location of the cursor. It offers the facility to write
improvement and maintenance. WinAVR is a suite of        data on the LCD character-by-character or string-
executable, open source software development tools       wise. The command set used in the software is based
for the Atmel AVR series of RISC microprocessors         on the command set used in the LCD based on
hosted on the Windows platform. It includes the          Hitachi HD44780 ICs. This file contain INitlcd( ),
GNU GCC compiler for C and C++. WinAVR                   remove ( ), display ( ) and displayint ( ).
contains all the tools for developing on the AVR.
This includes AVR-gcc (compiler), AVR-gdb                    (i) to initialize the LCD:
(debugger) etc.
(b) Compiling- After compiling the program, it is            Void INitlcd( )
converted to machine level language in the form of           {
o‟s ans1‟s.This file is called as the Hex file and is        //This function Initializes the lcd module


                                                                                                 780 | P a g e
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 3, Issue 1, January -February 2013, pp.778-783
must be called before calling lcd related functions
Arguments:
style = LS_BLINK,LS_ULINE(can be "OR"ed for
combination)
LS_BLINK :The cursor is blinking type
LS_ULINE :Cursor is "underline" type else "block"
type}
     (ii) to display strings to LCD :
     Void display( const char *data)
     {
     //This function Writes a given string to lcd at the
     current cursor          location.
    Arguments:
           msg: a null terminated string to print}

(2) lcd.h- This header file contains all the constant
variable values and names of the subroutines used by          Fig (3.1): snapshot C coding for proposed
various files used in the software. It clearly indicates      system using of AVRstudio4
which variable can be used as a global variable and
which of the subroutines can be used across the
software files.

(3) Usart_lib.c - This file contains the code for
controlling the USART of ATMEGA‟S. This is
contain three major functions USARTInit ( ),
USARTReadChar ( ) and USARTWriteChar ( ).
Initialization of USART:
This function will initialize the USART.
void USARTInit(uint16_t ubrr_value)
{
UBRR= ubrr_value; //Set Baud rate
UCSRC=(1<<URSEL)|(3<<UCSZ0);// Set Frame
Format
UCSRB=(1<<RXEN)|(1<<TXEN);// //Enable The
receiver and transmitter
}
Reading From The USART :
This function will read data from the USART.                        Fig (3.2): view of hardware AVR
char USARTReadChar()                                               Programmer (ISP) by Robokits
{
       while(!(UCSRA & (1<<RXC))) //Wait until a
    data is available
    {
         //Do nothing
    }
       return UDR; //Now USART has got data from
    host and is available is buffer
    }
    Writing to USART:
    void USARTWriteChar(char data)
    {
    while(!(UCSRA & (1<<UDRE)))          //Wait until
    the transmitter is ready
      {
         //Do nothing
       }
    UDR=data;        //Now write the data to USART             Fig (3.3): snapshot of robokits AVR
    buffer                                                 programmer window to erase, write and verify .h
    }                                                      file generated by AVRstudio4 to target

                                                                                             781 | P a g e
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                 Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                   Vol. 3, Issue 1, January -February 2013, pp.778-783




   Fig(3.4): View of Hardware module




                                                        Fig(3.5): View of Complete System


                                               Conclusion: The designing of a sustainable system
                                              to control the speed and orientation of a geared DC
                                              Motor was successfully implemented in this
                                              paper.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 hardware of the proposed system and
                                              interfacing with computer using RS232 serial
                                              communication port. The project can be divided into
                                              two element which hardware and software. The
                                              developed system we can develop the GUI to monitor
                                              and control the speed of DC motor.The paper
                                              provides a platform for further advancement in the
                                              field of industrial use of DC geared motors.




                                                                                   782 | P a g e
Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and
                  Applications (IJERA) ISSN: 2248-9622 www.ijera.com
                    Vol. 3, Issue 1, January -February 2013, pp.778-783

                     References
[1]    Gopal K. Dubey, “Fundamentals of Electric
       Drives”,.Narosa Publishing House New
       Delhi,1989.
[2]   S. M. Bashi, I. Aris and S.H. Hamad
       “Development of Single Phase Induction Motor
       Adjustable Speed Control Using M68HC11E-9
       Microcontroller,” Journal of Applied Sciences 5
       (2), pp. 249-252 .
[3]    Kumara MKSC, Dayananda PRD, Gunatillaka
       MDPR,Jayawickrama SS, “PC based speed
       controlling of a dc motor”, A fmal year report
       University of Moratuwa Illiniaus USA,
       2001102.
[4]   J Nicolai and T Castagnet , “A Flexible
       Microcontroller Based Chopper Driving a
       Permanent Magnet DC Motor”, The European
       Power Electronics Application. 1993.
[5]    J. Chiasson, Nonlinear Differential-Geometric
       Techniquesfor Control of a Series DC Motor,
       IEEE      Transactionson    Control    Systems
       Technology.vol 2, pp.35-42,1994.
[6]    Yodyium Tipsuwan and Mo-Yuen             Chow
       “FuzzyLogic microcontroller implementation
       for DC motor speed control”, IEEE
       Transactions on Power Electronics, V0l.11,
       No.3, June 1999, pp 1271-1276.


      AKNOWLEDGEMENT




           Jeetender Singh Chauhan received his
B.Tech degree in Electronics & Communication from
Sagar Institute Of Technology and Management
Barabanki U.P., India and Pursuing M.Tech. in
Instrumentation and Control Engineering        from
Graphic Era University Dehradun, Uttrakhand, India.




              Sunil Semwal received his B.Tech
degree in Instrumentation Engineering from
University Science and Instrumentation Centre
Srinagar Garhwal, Uttrakhand, India and M.E. degree
in Electronics from Punjab Engineering College,
Chandigarh, Punjab, India. Currently he is working as
Assistant Professor in Electrical and Electronics
Engineering department at Graphic Era University
Dehradun, Uttrakhand, India. He is presented 11
papers in national/ internatioal conferences/journals.




                                                                               783 | P a g e

Mais conteúdo relacionado

Mais procurados

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSVISHNU KP
 
Embedded Tsunami Warning System
Embedded Tsunami Warning System Embedded Tsunami Warning System
Embedded Tsunami Warning System cscpconf
 
Familiarization with instrumentation used for reactor core temperature
Familiarization with instrumentation used for reactor core temperatureFamiliarization with instrumentation used for reactor core temperature
Familiarization with instrumentation used for reactor core temperatureCMS90
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...TELKOMNIKA JOURNAL
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applicationsDr.YNM
 
Introduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systemsIntroduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systemsTyler Ross Lambert
 
IRJET- Multiple Load Controller for Industry using ARM Cortex
IRJET-  	  Multiple Load Controller for Industry using ARM CortexIRJET-  	  Multiple Load Controller for Industry using ARM Cortex
IRJET- Multiple Load Controller for Industry using ARM CortexIRJET Journal
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERsravannunna24
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1Sally Salem
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 

Mais procurados (18)

PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
Embedded Tsunami Warning System
Embedded Tsunami Warning System Embedded Tsunami Warning System
Embedded Tsunami Warning System
 
Gx3412721276
Gx3412721276Gx3412721276
Gx3412721276
 
Familiarization with instrumentation used for reactor core temperature
Familiarization with instrumentation used for reactor core temperatureFamiliarization with instrumentation used for reactor core temperature
Familiarization with instrumentation used for reactor core temperature
 
XMC4000 Brochure
XMC4000 BrochureXMC4000 Brochure
XMC4000 Brochure
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...Embedded processor system for controllable period-width multichannel pulse wi...
Embedded processor system for controllable period-width multichannel pulse wi...
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
 
(11 16) rajiv g
(11 16) rajiv g(11 16) rajiv g
(11 16) rajiv g
 
Report (2)
Report (2)Report (2)
Report (2)
 
Introduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systemsIntroduction to microcontrollers and embedded systems
Introduction to microcontrollers and embedded systems
 
Ju2416921695
Ju2416921695Ju2416921695
Ju2416921695
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
IRJET- Multiple Load Controller for Industry using ARM Cortex
IRJET-  	  Multiple Load Controller for Industry using ARM CortexIRJET-  	  Multiple Load Controller for Industry using ARM Cortex
IRJET- Multiple Load Controller for Industry using ARM Cortex
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
Project
ProjectProject
Project
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 

Destaque

Actividad comunitaria veredas carpintero y porvenir
Actividad comunitaria veredas carpintero y porvenirActividad comunitaria veredas carpintero y porvenir
Actividad comunitaria veredas carpintero y porvenirjairnet5
 
Escola da vida
Escola da vidaEscola da vida
Escola da vidaThaGomes
 
Presentación lisboa ana
Presentación lisboa anaPresentación lisboa ana
Presentación lisboa anaconchaana
 
Presentación del curso Redes Sociales Aplicadas a la Formación
Presentación del curso Redes Sociales Aplicadas a la FormaciónPresentación del curso Redes Sociales Aplicadas a la Formación
Presentación del curso Redes Sociales Aplicadas a la FormaciónEva Durall
 
Factores externos Carlos Alexis Hoyos
Factores externos Carlos Alexis HoyosFactores externos Carlos Alexis Hoyos
Factores externos Carlos Alexis Hoyosalexishd7
 
Guia didàctica video
Guia didàctica videoGuia didàctica video
Guia didàctica videoBiel Porcel
 
Los retos de la Nueva Cultura del Agua
Los retos de la Nueva Cultura del AguaLos retos de la Nueva Cultura del Agua
Los retos de la Nueva Cultura del AguaNueva Cultura del Agua
 
Valoración económica del embalse de Biscarrués
Valoración económica del embalse de BiscarruésValoración económica del embalse de Biscarrués
Valoración económica del embalse de BiscarruésNueva Cultura del Agua
 
A Ge.N.Te no Carro
A Ge.N.Te no CarroA Ge.N.Te no Carro
A Ge.N.Te no CarroNilo Faber
 
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...Celso Crivelaro
 
Mi aplicación favorita
Mi aplicación favoritaMi aplicación favorita
Mi aplicación favoritaelperap
 
Novedades de la versión 7.5 de TopSolid'Cam
Novedades de la versión 7.5 de TopSolid'CamNovedades de la versión 7.5 de TopSolid'Cam
Novedades de la versión 7.5 de TopSolid'Camtecnocim
 

Destaque (20)

Bn26425431
Bn26425431Bn26425431
Bn26425431
 
El supermercado
El supermercadoEl supermercado
El supermercado
 
Actividad comunitaria veredas carpintero y porvenir
Actividad comunitaria veredas carpintero y porvenirActividad comunitaria veredas carpintero y porvenir
Actividad comunitaria veredas carpintero y porvenir
 
Regulamento fama 2010
Regulamento fama 2010Regulamento fama 2010
Regulamento fama 2010
 
Desfile 2010
Desfile 2010Desfile 2010
Desfile 2010
 
Escola da vida
Escola da vidaEscola da vida
Escola da vida
 
Presentación lisboa ana
Presentación lisboa anaPresentación lisboa ana
Presentación lisboa ana
 
Presentación del curso Redes Sociales Aplicadas a la Formación
Presentación del curso Redes Sociales Aplicadas a la FormaciónPresentación del curso Redes Sociales Aplicadas a la Formación
Presentación del curso Redes Sociales Aplicadas a la Formación
 
Factores externos Carlos Alexis Hoyos
Factores externos Carlos Alexis HoyosFactores externos Carlos Alexis Hoyos
Factores externos Carlos Alexis Hoyos
 
Guia didàctica video
Guia didàctica videoGuia didàctica video
Guia didàctica video
 
Los retos de la Nueva Cultura del Agua
Los retos de la Nueva Cultura del AguaLos retos de la Nueva Cultura del Agua
Los retos de la Nueva Cultura del Agua
 
Mm21 ee
Mm21 eeMm21 ee
Mm21 ee
 
El Plan de Gestión del Guadalquivir
El Plan de Gestión del GuadalquivirEl Plan de Gestión del Guadalquivir
El Plan de Gestión del Guadalquivir
 
Valoración económica del embalse de Biscarrués
Valoración económica del embalse de BiscarruésValoración económica del embalse de Biscarrués
Valoración económica del embalse de Biscarrués
 
A Ge.N.Te no Carro
A Ge.N.Te no CarroA Ge.N.Te no Carro
A Ge.N.Te no Carro
 
S. valentine's
S. valentine'sS. valentine's
S. valentine's
 
A tortuga galapago
A tortuga galapagoA tortuga galapago
A tortuga galapago
 
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...
WTA2012 - Proposta de Modelo Adaptativo para Geração de Contextos na Recome...
 
Mi aplicación favorita
Mi aplicación favoritaMi aplicación favorita
Mi aplicación favorita
 
Novedades de la versión 7.5 de TopSolid'Cam
Novedades de la versión 7.5 de TopSolid'CamNovedades de la versión 7.5 de TopSolid'Cam
Novedades de la versión 7.5 de TopSolid'Cam
 

Semelhante a Dp31778783

Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...Alexander Decker
 
underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps Mohd Sohail
 
Wireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationWireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationUdayalakshmi JK
 
Robotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerRobotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerIRJET Journal
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Editor IJCATR
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET Journal
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 
Black Box for a Car
Black Box for a CarBlack Box for a Car
Black Box for a Carsubrat manna
 
Tracking police man using rf proximity card
Tracking police man using rf proximity cardTracking police man using rf proximity card
Tracking police man using rf proximity cardAlbert Jose
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerIRJET Journal
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET Journal
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...IOSR Journals
 

Semelhante a Dp31778783 (20)

Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...Mobile robotic platform to gathering real time sensory data in wireless perso...
Mobile robotic platform to gathering real time sensory data in wireless perso...
 
underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps
 
Assignment
AssignmentAssignment
Assignment
 
Wireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationWireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculation
 
Robotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerRobotic Catching Arm using Microcontroller
Robotic Catching Arm using Microcontroller
 
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
Design and Implementing Novel Independent Real-Time Software Programmable DAQ...
 
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
IRJET-A Comparative Study of use of the Library and the Internet as Sources o...
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
H24051055
H24051055H24051055
H24051055
 
Black Box for a Car
Black Box for a CarBlack Box for a Car
Black Box for a Car
 
Ff25965968
Ff25965968Ff25965968
Ff25965968
 
Tracking police man using rf proximity card
Tracking police man using rf proximity cardTracking police man using rf proximity card
Tracking police man using rf proximity card
 
Industrial Monitoring System Using Wireless Sensor Networks
Industrial Monitoring System Using Wireless Sensor NetworksIndustrial Monitoring System Using Wireless Sensor Networks
Industrial Monitoring System Using Wireless Sensor Networks
 
embedded system for green g
embedded system for green gembedded system for green g
embedded system for green g
 
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with MicrocontrollerDesigning and Controlling of Motor by Interfacing RS232 with Microcontroller
Designing and Controlling of Motor by Interfacing RS232 with Microcontroller
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
 
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...Implementation of an Improved Microcontroller Based Moving Message Display Sy...
Implementation of an Improved Microcontroller Based Moving Message Display Sy...
 

Dp31778783

  • 1. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 Microcontroller Based Speed Control of DC Geared Motor Through RS-232 Interface With PC 1 Jeetender Singh Chauhan, 2Sunil Semwal 1Research Scholar,Instrumentation & Control Engineering Deptt Graphic Era University, Dehradun 2Asst. Professor,Electrical and Electronics Engineering Deptt Graphic Era University,Dehradun Abstract: The speed control of DC motor is very the effect of a continuously varying analog signal. crucial in applications where precision and This PWM conversion generally has very high protection are of essence. Purpose of a motor electrical efficiency and can be used in controlling speed controller is to take a signal representing the either a three-phase synchronous motor or a three- required speed and to drive a motor at that speed. phase induction motor .It is desirable to create three In this paper PWM based speed control of DC perfectly sinusoidal current waveforms in the motor motor through RS232 with PC goal of this as Role windings, with relative phase displacements of 120°. of electrical drives is a major concern in industrial The production of sine wave power using a linear automation. Industrial applications use dc motors amplifier system would have low efficiency, because the speed-torque relationship can be maximum of 64%. Efficiency can be increase up to varied to almost any useful form for both dc 95% if instead of the linear circuitry, fast electronic motor and regeneration applications in either switching devices are used, depending on the direction of rotation. DC motors feature a speed, properties of the semiconductor power switch.The which can be controlled smoothly down to zero, result is a load current waveform that depends mainly immediately followed by acceleration in the on the modulation of the duty ratio. opposite direction without power circuit switching. Having intelligence PC available to control operation of speed of motor which can increase productivity in broad range of industry. Personal computers or Laptops are working on Register Level while our controller is working on TTL so we have to use a level shifter that is MAX232 IC which can change the platform for serial communication. This software provide variable baud rate for operation, and connect PC to Fig(1.0):Wave form at different duty cycles MAX232 using serial cable. Keywords: DC Motor, RS232,MAX 232, PC,USART II. HARDWARE DEVELOPMENT BLOCK DIAGRAM OF THE PROPOSED SYSTEM IS I. Introduction: Speed control of dc motor SHOWN BELOW: could be achieved using mechanical or electrical (1)Power supply modules-This module is basically techniques. In the past, speed controls of dc drives are designed to achieved 5V,500mA.This consists of a mostly mechanical and requiring large size hardware transformer which is used to step down the AC to implement. The development has launched these voltage ,IN4007 diodes used to form a bridge rectifier drives back to a position of formidable relevance, to convert AC to DC , capacitor 1000uF which used which were predicted to give way to ac drives. Some as a filter circuit ,7805 regulator to obtain a 5V at the important applications are rolling mills, paper mills output of the regulator ,330 ohm resistance, LED as mine winders, hoists, machine tools, traction, printing indicator. presses, textile mills, excavators and cranes. This paper provides a system that can utilized to use DC motor for various applications. We can utilize the DC Motor for various applications by controlling the speed and orientation according to the field of interest. Pulse Width Modulation (PWM) is the technique of utilizing switching devices to produce 778 | P a g e
  • 2. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 Fig(2.0): diagram of supply section (2)Embedded microcontroller-There is a whole wide range of microcontroller available in the market. But this particular project is developed using AVR series of microcontroller (ATMEGA16) because of its inbuilt ADC port and its variable frequency.ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR RISC architecture. By executing powerful instructions in a single clock Fig( 2.1): Block Diagram of system cycle, the ATmega16 achieves throughputs approaching 1 MIPS per MHz, allowing the system (6)MAX 232(level converter)-MAX232 is a dual designed to optimize power consumption versus driver/receiver IC that includes a capacitive voltage processing speed. Further it also minimizes the cost generator to supply EIA-232 voltage levels from a of this personal area network. single 5-V supply [2]. Each receiver converts EIA- 232 inputs to 5-V TTL/CMOS levels. These receivers (3)USB to serial cable-To interfaces the coordinator have a typical threshold of 1.3 V and a typical node with the other nodes. hysteresis of 0.5 V, and can accept ±30-V inputs. Each driver converts TTL/CMOS input levels into (4)DB9- It is 9 pin male / female connector. In DB9 9 EIA-232 levels. This can be made to work with the represent total number of pins and D represents the help of a few capacitors attached to it. two parallel rows of pins that are in the shape of D alphabet. (7)L293D(motor driver IC)-This IC is high voltage high current four channel driver designed to accept (5)Display module- The LCD(liquid crystal display) DTL or TTL logic.This can provide 600mA output unit receives character codes (8 bits per character) current capability per channel and providing 1.2 peak from a microprocessor or microcomputer, latches the output current(non repetitive) per channel and also codes to its display data RAM (80-byte) DD RAM have internal over temprature protection . It consists for storing 80 characters, transforms each character of a half H bridge to provide high current in order to code into a 5‟7 dot-matrix character pattern, and drive motors. displays the characters on its LCD screen. We are 16*2 LCD „s which have 16 columns and 2 rows with 16 hardware pins connected as pin 1,3and 16 are connected to ground , pin 2 and 15 are connected to +5v pin 3 ,4,5 are RS ,RW and enable respectively enable pin is always low . data pins of LCD are 11,12,13,14 which are used for 4 bit parallel communication . 779 | P a g e
  • 3. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 saved with the extension (.Hex). The compiler also generates errors in the program which should be removed for proper execution of the program. (c) Burning- Burning the machine language (hex) file into the microcontroller‟s program memory is achieved with a dedicated programmer, which attaches to a PC‟s peripheral. PC‟s serial port has been used for the purpose. for this purpose Ponyprog programmer was used to burn the machine language file into the microcontroller‟s program memory. Pony prog is serial device programmer software with a user-friendly GUI framework available for Windows95/98/ME/NT/2000/XP and Intel Linux. Its purpose is reading and writing every serial device. It supports I²C Bus, Micro wire, SPI EEPROM, and the Atmel AVR and Microchip PIC microcontroller. The microcontrollers were programmed in approximately two seconds with a high speed-programming mode. The program memory, which is of Flash type, has, just like the EEPROM, a limited lifespan. On AVR microcontroller family it may be reprogrammed up to a thousand times without any risk of data corruption Fig(2.2): Simulation Diagram of system Atmega16 Programmer (ISP) which is used to burn the program into AVR microcontrollers. III. Software Development Microcontroller, when it is used to operate as a (d) Evaluation-If the system performs as desired by wireless network involves following steps: the user and performs all the tasks efficiently and effectively the software development phase is over and the project is ready to be installed in any of the industrial sites as a personal area network. If not, the entire process is repeated again to rectify the errors. One of the difficulties of programming microcontrollers is the limited amount of resources the programmer has to deal with. In PCs resources such as RAM and processing speed are basically limitless when compared to microcontrollers. In contrast to a PC, the code on microcontrollers should be as low on resources as possible, but being cost effective and power efficient makes it a better option. Fig (3.0): Steps for software development In the programming of the proposed system is used the following .c and .h file (a) Coding / Debugging- Coding or debugging is one in a high-level language (such as c or java). Compiler (1)lcd.c -This c file contains the code for control of for a high level language helps to reduce production functionality of the attached LCD module. The code time. To program the microcontrollers WinAVR [2] controls the initialization of the LCD, data writing on was used using C language. The source code has been the LCD, and also the movement, characteristics and commented to facilitate any occasional future location of the cursor. It offers the facility to write improvement and maintenance. WinAVR is a suite of data on the LCD character-by-character or string- executable, open source software development tools wise. The command set used in the software is based for the Atmel AVR series of RISC microprocessors on the command set used in the LCD based on hosted on the Windows platform. It includes the Hitachi HD44780 ICs. This file contain INitlcd( ), GNU GCC compiler for C and C++. WinAVR remove ( ), display ( ) and displayint ( ). contains all the tools for developing on the AVR. This includes AVR-gcc (compiler), AVR-gdb (i) to initialize the LCD: (debugger) etc. (b) Compiling- After compiling the program, it is Void INitlcd( ) converted to machine level language in the form of { o‟s ans1‟s.This file is called as the Hex file and is //This function Initializes the lcd module 780 | P a g e
  • 4. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 must be called before calling lcd related functions Arguments: style = LS_BLINK,LS_ULINE(can be "OR"ed for combination) LS_BLINK :The cursor is blinking type LS_ULINE :Cursor is "underline" type else "block" type} (ii) to display strings to LCD : Void display( const char *data) { //This function Writes a given string to lcd at the current cursor location. Arguments: msg: a null terminated string to print} (2) lcd.h- This header file contains all the constant variable values and names of the subroutines used by Fig (3.1): snapshot C coding for proposed various files used in the software. It clearly indicates system using of AVRstudio4 which variable can be used as a global variable and which of the subroutines can be used across the software files. (3) Usart_lib.c - This file contains the code for controlling the USART of ATMEGA‟S. This is contain three major functions USARTInit ( ), USARTReadChar ( ) and USARTWriteChar ( ). Initialization of USART: This function will initialize the USART. void USARTInit(uint16_t ubrr_value) { UBRR= ubrr_value; //Set Baud rate UCSRC=(1<<URSEL)|(3<<UCSZ0);// Set Frame Format UCSRB=(1<<RXEN)|(1<<TXEN);// //Enable The receiver and transmitter } Reading From The USART : This function will read data from the USART. Fig (3.2): view of hardware AVR char USARTReadChar() Programmer (ISP) by Robokits { while(!(UCSRA & (1<<RXC))) //Wait until a data is available { //Do nothing } return UDR; //Now USART has got data from host and is available is buffer } Writing to USART: void USARTWriteChar(char data) { while(!(UCSRA & (1<<UDRE))) //Wait until the transmitter is ready { //Do nothing } UDR=data; //Now write the data to USART Fig (3.3): snapshot of robokits AVR buffer programmer window to erase, write and verify .h } file generated by AVRstudio4 to target 781 | P a g e
  • 5. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 Fig(3.4): View of Hardware module Fig(3.5): View of Complete System Conclusion: The designing of a sustainable system to control the speed and orientation of a geared DC Motor was successfully implemented in this paper.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 hardware of the proposed system and interfacing with computer using RS232 serial communication port. The project can be divided into two element which hardware and software. The developed system we can develop the GUI to monitor and control the speed of DC motor.The paper provides a platform for further advancement in the field of industrial use of DC geared motors. 782 | P a g e
  • 6. Jeetender Singh Chauhan, Sunil Semwal / International Journal of Engineering Research and Applications (IJERA) ISSN: 2248-9622 www.ijera.com Vol. 3, Issue 1, January -February 2013, pp.778-783 References [1] Gopal K. Dubey, “Fundamentals of Electric Drives”,.Narosa Publishing House New Delhi,1989. [2] S. M. Bashi, I. Aris and S.H. Hamad “Development of Single Phase Induction Motor Adjustable Speed Control Using M68HC11E-9 Microcontroller,” Journal of Applied Sciences 5 (2), pp. 249-252 . [3] Kumara MKSC, Dayananda PRD, Gunatillaka MDPR,Jayawickrama SS, “PC based speed controlling of a dc motor”, A fmal year report University of Moratuwa Illiniaus USA, 2001102. [4] J Nicolai and T Castagnet , “A Flexible Microcontroller Based Chopper Driving a Permanent Magnet DC Motor”, The European Power Electronics Application. 1993. [5] J. Chiasson, Nonlinear Differential-Geometric Techniquesfor Control of a Series DC Motor, IEEE Transactionson Control Systems Technology.vol 2, pp.35-42,1994. [6] Yodyium Tipsuwan and Mo-Yuen Chow “FuzzyLogic microcontroller implementation for DC motor speed control”, IEEE Transactions on Power Electronics, V0l.11, No.3, June 1999, pp 1271-1276. AKNOWLEDGEMENT Jeetender Singh Chauhan received his B.Tech degree in Electronics & Communication from Sagar Institute Of Technology and Management Barabanki U.P., India and Pursuing M.Tech. in Instrumentation and Control Engineering from Graphic Era University Dehradun, Uttrakhand, India. Sunil Semwal received his B.Tech degree in Instrumentation Engineering from University Science and Instrumentation Centre Srinagar Garhwal, Uttrakhand, India and M.E. degree in Electronics from Punjab Engineering College, Chandigarh, Punjab, India. Currently he is working as Assistant Professor in Electrical and Electronics Engineering department at Graphic Era University Dehradun, Uttrakhand, India. He is presented 11 papers in national/ internatioal conferences/journals. 783 | P a g e