31
WELCOME Date: - 26 th May- 2012 1

Learn to implement Servo Drive

Embed Size (px)

Citation preview

Page 1: Learn to implement Servo Drive

WELCOMEDate:-

26th May-2012

1

Page 2: Learn to implement Servo Drive

SPEED AND POSITION CONTROL USING DC MOTOR

Group-43Group-43

Guide: External Guide:-Mr.Ashok FadnisInternal Guide:-Ms.Manisha Mayavanshi

Prepared by: Alok

Shah

2

Page 3: Learn to implement Servo Drive

In Coordination withVEDANT ENTERPRISES

3

Research & Consultant Company in Instrumentation

Major Working Fields: Power Electronics & Embedded Systems

Main Products:-

Medical InstrumentsWelding MachinesBagging MachinesBatching MachinesServo SystemsAnalytical Pharmaceutical Equipments

Page 4: Learn to implement Servo Drive

4

OBJECTIVE OF THE PROJECT

The main core of this project is to design a control system for DC motor by using Microcontroller.

This control system works on the principle of PID Controller and Pulse Width Modulation which will be able to control the DC motor speed at desired speed regardless the change of load.

This system will be also able to perform operations like start and stop on motor at desired position of load.

Page 5: Learn to implement Servo Drive

SPEED

POSITION

5

BLOCK DIAGRAM

Page 6: Learn to implement Servo Drive

6

Controller-AVR ATMEGA32

LCD Display Power Supply:

MH Bridge

Forward

S1

S4

S2

S3

ENCODERMOTOR

SIMPLE ARRANGEMENT

SUDE

Control Menu

Open Loop

RPM (Speed)

Position

Direction

PWM

Hi-Lo

Counter

S2,S3

S1,S4

DUTY CYCLE

DIRECTION

KEYPAD

Page 7: Learn to implement Servo Drive

LCD & KEYPAD:Keypad: 4*1, LCD: 16*2LCD to display i/p ,o/p & Appropriate MessagesKeypad to take i/p from User

7

KEY NO. OPERATIONB1 Start/StopB2 Increment (Up)B3 Decrement (Down)B4 Esc

Page 8: Learn to implement Servo Drive

MICROCONTROLLER:Software Module of ProjectWe use… AVR ATMEGA32Specially Designed InstructionsPWM Generation ModesNormal ModeCTC ModePhase Correct PWM ModeFast PWM Mode

Programmed for Four Separate Controls (Programming Scenario: PID Algorithm)

TECHNICAL SPECIFICATIONS OFAVR-ATMEGA32

Core Size 8 bit

Speed Up to 8MHz

Program Memory (Flash) 32Kbytes

Voltage Supply 2.7V ~ 5.5V

Oscillator Internal (8MHz)

Operating Temperature -40°C ~ 105°C

Package 40-SOIC

8

Page 9: Learn to implement Servo Drive

9

FLOW CHART: RPM CONTROL

Page 10: Learn to implement Servo Drive

10

FLOW CHART: POSITION CONTROL

Page 11: Learn to implement Servo Drive

11

FLOW CHART:OPEN LOOP CONTROL

Page 12: Learn to implement Servo Drive

12

FLOW CHART:DIRECTION CONTROL

Page 13: Learn to implement Servo Drive

MOTOR DRIVER: Main Switching Module (Made of two Parts)

1) Power Circuit:- Require to generate 24Vdc

13

Main Supply

Step-down Transformer

Bridge Rectifier

FilterTo Control

Circuit

Require to generate 5Vdc

Main Supply

Step-down Transformer

Diode Bridge & Filter

Voltage Regulator (LM-7805)

To µC & Optocoupler

Page 14: Learn to implement Servo Drive

14

POWER SUPPLY SCHEMATIC

Page 15: Learn to implement Servo Drive

2) Control Circuit:- Require to control the motor..

15

Optocoupler-1 (6N137)

Power MOSFET (IRFZ46N)

DPDT Relay (2C/O MCC 24D)

From Microcontroller

To Motor

Optocoupler-2 (6N137)

NPN Transistor (BC547)

Duty Cycle Control

Direction Control

Page 16: Learn to implement Servo Drive

16

NC1 NC2 NC3 NC4 OPERATION

1 0 0 1 Motor moves right

0 1 1 0 Motor moves Left

0 0 0 0 Motor free runs

0 1 0 1 Motor breaks

1 0 1 0 Motor breaks

H-BRIDGE CONFIGURATION

Formed usingDPDT Relay

Page 17: Learn to implement Servo Drive

17

CONTROL CIRCUITSCHEMATIC DIAGRAM

Page 18: Learn to implement Servo Drive

DC MOTOR:-Permanent Magnate Type Advantages:

Low initial costEasy to Control Speed

Disadvantages:High maintenanceLow torque generation

Speed Control Using PWMPulse Width increases=Speed increasesPulse Width decrease=Speed decreases

18

TECHNICAL SPECIFICATIONS OFPMDC MOTOR

Supply Voltage 24Vdc

Power 50W

Current 2A

RPM 3200

Outer Dia. 60mm

Length 100mm

Shaft Dia. 8mm

Page 19: Learn to implement Servo Drive

DIGITAL FEEDBCK MECHANISM:-To form the Close loop for Position ControlWe use… Incremental EncoderOne Rotation=One PulseOne Revolution=512 PulsesGenerate Quadrature Pulses with 90° Shifting

19

Page 20: Learn to implement Servo Drive

TECHNICAL SPECIFICATIONS OF ENCODER

Supply Voltage 4.5V ~ 5.5V

PPR 512

Ref. Voltage 2.48V

Output Voltage 4.5V ~ 5.5V

Supply Current 65mA ~ 91mA

Ambient Temperature 24°C

Body Dia. 50mm

Shaft Dia. 6mm

No. of Output 2 (AB)

How µC-Count(Position) is trigger??

FROM TO FROM TO

0,1 1,1 0,1 0,0

1,1 1,0 1,1 1,0

1,0 0,0 1,0 1,1

0,0 0,1 0,0 1,0

Forward=Count Up Reverse=Count Down

H

L

20

Page 21: Learn to implement Servo Drive

21

MECHANICAL SYSTEM

Page 22: Learn to implement Servo Drive

22

PROJECT HARDWARE

Page 23: Learn to implement Servo Drive

23

POWER SUPPLY SIMULATIONIn

put

230V

AC

Acr

oss

Cap

acito

rO

utpu

t24

VD

C

Page 24: Learn to implement Servo Drive

24

At

50%

Dut

y C

ycle

SIMULATION OF PWM PULSESA

t <

50%

Dut

y C

ycle

At

>50

%D

uty

Cyc

le

Time

0s 2ms 4ms 6ms 8ms 10ms 12ms 14ms 16msV(Q3:c,Q6:c)

-10V

0V

10V

20V

Time

0s 2ms 4ms 6ms 8ms 10ms 12ms 14ms 16msV(Q3:c,Q6:c)

-10V

0V

10V

20V

Time

0s 2ms 4ms 6ms 8ms 10ms 12ms 14ms 16msV(Q3:c,Q6:c)

-10V

0V

10V

20V

Page 25: Learn to implement Servo Drive

25

OSCILLOSCOPE OUTPUTA

t <

50%

Du

ty C

ycle

At

>50

%D

uty

Cyc

leA

t 50

%D

uty

Cyc

le

Page 26: Learn to implement Servo Drive

26

RESPONSE CURVE: Duty Cycle RPM

RPM

Duty Cycle

Page 27: Learn to implement Servo Drive

27

RESPONSE CURVE: SPEED CONTROL

At No Load Condition

At Minor Load Condition

Page 28: Learn to implement Servo Drive

IndustrialRobotics Consumer Miltry

Used in any AUTOMATION APPLICATIONS ....................

28

APPLICATIONS

Page 29: Learn to implement Servo Drive

Same circuit can be used for stepper motor control..GSM Module can be used to make the control possible with

mobile messages..This system can be used in industrial controlling drives because of

its improved accuracy and fast dynamic response just by modifying following issues:-

Feedback Measurement (Encoder) Control Algorithm (Microcontroller) Switching Module (Motor Driver Circuit)

29

FUTURE EXPANSION

Page 30: Learn to implement Servo Drive

30

CONCLUSION

The direction (forward/reverse) of the motor is also controlled.

Control and operation of drive is flexible due to the user friendly menu, keyboard and LCD display.

The speed of the motor is controlled accurately using microcontroller ATmega32 having PID algorithm.

In the condition of the load variation the speed of the motor is maintained constant with the designed algorithm.

Position is controlled accurately using PID algorithm and feedback pulses from the encoder in order to develop a precise system.

Page 31: Learn to implement Servo Drive

THANK YOU

ANY QUESTIONS??

31