42
Servo Motor Control

Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

Embed Size (px)

Citation preview

Page 1: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

Servo Motor Control

Page 2: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Project

• You are to design a mechanical device that can tilt a given labyrinth board in two directions.

Page 3: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

One Concept

• Could use two motors.• Must be able to control

the rotation angle of each.

Page 4: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Another Example

• Control the steering angle of an autonomous ground vehicle.

• Must be able to control the rotation angle.

Page 5: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• What power source will be used?

• How much power is needed?

• Is a speed reducer needed?

• Open-loop or closed-loop control?

Page 6: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• What power source will be used?

• electric servo motor• electric stepper motor• hydraulic actuator• pneumatics

Page 7: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• How much power is needed?

• determine the maximum product of motor torque times angular velocity

Page 8: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• Is a speed reducer needed?

• a typical DC motor can rotate at a top speed of 2600 rpm (43⅓ rev/sec)

• gear box• epicyclic gear train• ball screw drive

Page 9: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

gear box

worm gear drive

Page 10: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

epicyclic gear train

ball screw drive

Page 11: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• Open-loop or closed-loop control?

• open-loop• well suited for remote

control using a joystick• computer control can be

implemented using a stepper motor

• closed-loop• requires a sensor to

measure the motor’s rotation angle

Page 12: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Design Choices

• What power source will be used?• electric servo motor

• How much power is needed?• experiment or perform analysis

(very little torque will be needed to rotate the labyrinth board ; further the rotational speed will be very low)

• Is a speed reducer needed?• yes

• Open-loop or closed-loop control?• closed-loop

Page 13: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

how does the computer cause the motor to turn?

how does the computer cause the motor to turn?

How does this work?

desired steering angle

motorgear reducer

how is the motor connected to the steering shaft?

how is the motor connected to the steering shaft?

how does the computer know

the current steering angle?

how does the computer know

the current steering angle?

Page 14: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Motor and Gear Box

how is the motor connected to the steering shaft?

how is the motor connected to the steering shaft?

Page 15: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Motor and Gear Box

Page 16: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

motor withgear reducer

flex coupling

Page 17: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Servo Motor Control

select means of angle measurement– optical encoder

• incremental• absolute

– potentiometer– resolver

how does the computer know

the current steering angle?

how does the computer know

the current steering angle?

Page 18: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Incremental Optical Encoder

• this disk has 12 slots (30º resolution)

• typical incremental encodershave up to 2540 counts perrevolution (0.142º resolution)($488.41 each at McMaster-Carr)

Page 19: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Incremental Optical Encoder

Page 20: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

you can count pulses, but which way is it rotating?

Incremental Optical Encoder

Page 21: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

an encoder will typically also have anindex that will ‘blink’ once each revolution

Incremental Optical Encoder

Page 22: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

quadrature: - there are 4n ‘events’ per one revolution of the disk- the resolution can in effect be four times the number of slots

Incremental Optical Encoder

Page 23: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

note: many encoders will have an index that will pulse once per revolution

Incremental Optical Encoder

Page 24: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

cost: $41.67

Honeywell / Clarostat 600128CN1Allied Electronics part # 753-0059

Page 25: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

problem: - you start up the device- where are you when you start?

Incremental Optical Encoder

Page 26: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Absolute Optical Encoder

BEI brand encoder $455

Page 27: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

how does the computer cause the motor to turn?

how does the computer cause the motor to turn?

How does this work?

desired steering angle

motorgear reducer

how is the motor connected to the steering shaft?

how is the motor connected to the steering shaft?

how does the computer know

the current steering angle?

how does the computer know

the current steering angle?

incremental optical encoder with homing switch to initialize position

gear reducer and flex couplings (if needed)

computer controls the current going to the motor

Page 28: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

How does the computer control the motor?

control the current (via the voltage)

Page 29: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

optical encoder

motor withgear reducer

flex coupling

limit switchhoming switch

Page 30: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 31: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a
Page 32: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 33: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 34: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 35: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 36: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Servo Motor Control

• we will use a Galil motor control card to vary the current to the motor based on the error in the steering shaft angle

motorDesired angle Angle error controller ampDesired Current current signal Steering angleSteering angle

Page 37: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

motorDesired angle Angle error controller ampDesired Current PWM signal Steering angleSteering angle

desired position

Page 38: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Homing and Limit Protection

• we need to add a switch to set the homing position• we need to have overshoot switches

Page 39: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

desired angle

motorDesired angle Angle error controller ampDesired Current PWM signal Steering angleSteering angle

terminal program providesa user interface where we cansend commands to changethe steering angle

Page 40: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

optical encoder

motor withgear reducer

flex coupling

limit switchhoming switch

Page 41: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a

EML 2023Department of Mechanical and Aerospace Engineering

Page 42: Servo Motor Control. EML 2023 Department of Mechanical and Aerospace Engineering Design Project You are to design a mechanical device that can tilt a