Introduction to Relays. ECE/CS 5780/6780: Embedded System Design. Various Relay Configurations. Types of Relays. Drawing of an EM Relay

Similar documents
Page 1. Relays. Poles and Throws. Relay Types. Common embedded system problem CS/ECE 6780/5780. Al Davis. Terminology used for switches

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

Experiment (1) Principles of Switching

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

MOSFET as a Switch. MOSFET Characteristics Curves

THE UNIVERSITY OF BRITISH COLUMBIA. Department of Electrical and Computer Engineering. EECE 365: Applied Electronics and Electromechanics

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

ECET 211 Electric Machines & Controls Lecture 4-2 Motor Control Devices: Lecture 4 Motor Control Devices

EM-100 Controller. Installation Precautions. July 2016

ECET 211 Electrical Machines and Controls

EXPERIMENT 6: Advanced I/O Programming

Real Time Embedded Systems. Lecture 1 January 17, 2012

A COMPARISON STUDY OF THE COMMUTATION METHODS FOR THE THREE-PHASE PERMANENT MAGNET BRUSHLESS DC MOTOR

Implementation Of Solid State Relays For Power System Protection

Application Note. 3-Phase Brushless DC Motor Control with Hall Sensors AN-CM-244

Actuators. EECS461, Lecture 5, updated September 16,

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

Basic NC and CNC. Dr. J. Ramkumar Professor, Department of Mechanical Engineering Micro machining Lab, I.I.T. Kanpur

Chapter 7: The motors of the robot

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

DECEMBER 2014 Level 2 Certificate/Diploma in Engineering (IVQ) Principles of electrical and electronics technology

Application Note AN-3006 Optically Isolated Phase Controlling Circuit Solution

Computer Numeric Control

Relay Types and Applications Dr. Sasidharan Sreedharan

INTEGRATED CIRCUITS. AN1221 Switched-mode drives for DC motors. Author: Lester J. Hadley, Jr.

Chapter 5 Electric Logic Sensors and Actuators

Actuators in Automatic Control System

Lock Cracker S. Lust, E. Skjel, R. LeBlanc, C. Kim

3. What is the difference between Switched Reluctance motor and variable reluctance stepper motor?(may12)

Stepper Motors and Control Part I - Unipolar Stepper Motor and Control (c) 1999 by Rustle Laidman, All Rights Reserved

1 Select a convenient capacitance value for the two capacitors. 2 Calculate the three resistor values for x = 1/(2πf 0 C).

Stepper Motors in C. Unipolar (5 lead) stepper motorr. $1.95 from 100 steps per rotation. 24V / 160mA / 600 gm cm holding 160mA

PART 2 - ACTUATORS. 6.0 Stepper Motors. 6.1 Principle of Operation

Step Motor Controller I. Introduction II. Step Motor Basics

DC-Motor Driver circuits

M.Kaliamoorthy and I.Gerald PSNACET/EEE CHAPTER 2 STEPPER MOTORS

Experiment#6: Speaker Control

Know about. Different Types of Relays

ECET 211 Electric Machines & Controls Lecture 9-1 Adjustable-Speed Drives and PLC Installations (1 of 2)

Half stepping techniques

815-BR SERVO AMPLIFIER FOR BRUSH SERVOMOTORS

School of Engineering Mechatronics Engineering Department. Experim. ment no. 1

Robot Actuators. Motors and Control. Stepper Motor Basics. Increased Resolution. Stepper motors. DC motors AC motors. Physics review: Nature is lazy.

1525-BRS INFORMATION MANUAL SERV O D YN A M ICS. D y n ad r iv e Ave Crocker Suite 10 Valencia, CA

PLC BASED RAILWAY LEVEL CROSSING GATE CONTROL

Stepper motors. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

ADC Parameters. ECE/CS 5780/6780: Embedded System Design. Common Encoding Schemes. Two-Bit Flash ADC. Sixteen-Bit Dual Slope ADC

TA7259P, TA7259F/FG TA7259P/F/FG 3-PHASE BRUSHLESS DC MOTOR DRIVER IC FEATURES TOSHIBA BIPOLAR LINEAR INTEGRATED CIRCUIT SILICON MONOLITHIC

DynaDrive INFORMATION MANUAL SDFP(S)

Modeling, Simulation and Implementation of Speed Control of DC Motor Using PIC 16F877A

ECE 4510/5530 Microcontroller Applications Week 13

Inductance. Chapter 30. PowerPoint Lectures for University Physics, Thirteenth Edition Hugh D. Young and Roger A. Freedman. Lectures by Wayne Anderson

Controlling Stepper Motors Using the Power I/O Wildcard

REQUIRED SKILLS AND KNOWLEDGE UEENEEG101A. Electromagnetic devices and circuits. Topic and Description NIDA Lesson CARD # Magnetism encompassing:

BLOCK DIAGRAM OF THE UC3625

PREREQUISITES: MODULE 10: MICROCONTROLLERS II; MODULE 14: DISCRETE COMPONENTS. MODULE 13 (SENSORS) WOULD ALSO BE HELPFUL.

USING THE L6204, A BIPOLAR STEPPER AND DC MOTOR DRIVER IN BCD TECHNOLOGY

M.D. Singh J.G. Joshi MECHATRONICS

Job Sheet 2 Servo Control

DC Motor Speed Control using PID Controllers

Motors and Servos Part 2: DC Motors

SECTION 3 BASIC AUTOMATIC CONTROLS UNIT 12 BASIC ELECTRICITY AND MAGNETISM. Unit Objectives. Unit Objectives 2/29/2012

Sensorless control of BLDC motor based on Hysteresis comparator with PI control for speed regulation

Application Note # 5438

Lecture 6. Interfacing Digital and Analog Devices to Arduino. Intro to Arduino

6.111 Lecture # 19. Controlling Position. Some General Features of Servos: Servomechanisms are of this form:

Power systems Protection course

87000 Series Size 34 Hybrid Linear Actuators

Shaft encoders are digital transducers that are used for measuring angular displacements and angular velocities.

9/28/2010. Chapter , The McGraw-Hill Companies, Inc.

Brushed DC Motor PWM Speed Control with the NI myrio, Optical Encoder, and H-Bridge

Ledex Drive Electronics and Coil Suppressors

Designing With Motion Handbook

High-Voltage High-Current Stepper Motor Driver IK6019A TECHNICAL DATA

Size 23 Double Stack External Linear Size 23 Double Stack. 57M4 n n n n n n. 57L4 n n n n n n. E57M4 n n n n n n. Bipolar 5 VDC 12 VDC 2.

Feedback Devices. By John Mazurkiewicz. Baldor Electric

ORIENTAL MOTOR GENERAL CATALOG

Calhoon MEBA Engineering School. Study Guide for Proficiency Testing Industrial Electronics

Tektronix AFG10022 Function Generator. Coming soon to B10: Sin, Square, Ramp, Swept, Arbitrary, Noise. Linear Actuators. Non-magnetized iron plunger

AN Industrial Stepper Motor Driver. Application Note Abstract. Introduction. Stepper Motor Control Method

Electronic Speed Controls and RC Motors

Introduction to Arduino HW Labs

Pulse Width Modulation (PWM) and Relays

Open Loop Speed Control of Brushless DC Motor

DISCUSSION OF FUNDAMENTALS

28000 Series Size 11 Double Stack Hybrid Linear Actuators

Electric Power Systems 2: Generators, Three-phase Power, and Power Electronics

AP Physics Electricity and Magnetism #7 Inductance

Speed Control of BLDC Motor Using FPGA

ME 2110 Controller Box Manual. Version 2.3

Figure 1.1 Mechatronic system components (p. 3)

Speed Control of DC Motor Using Microcontroller

Introduction to the ME2110 Kit. Controller Box Electro Mechanical Actuators & Sensors Pneumatics

5-Phase Stepping Motor and Microstep Driver Package

Step vs. Servo Selecting the Best

The Fundamental Characteristics of Novel Switched Reluctance Motor with Segment Core Embedded in Aluminum Rotor Block

BLOCK DIAGRAM OF THE UC3625

Electronic Components (Elements)

Transcription:

Introduction to Relays ECE/CS 5780/6780: Embedded System Design Chris J. Myers Lecture 15: Relays and Motors A relay is a device that responds to a small current or voltage change by activating a switches or other devices. Used to remotely switch signals or power. Input control usually electrically isolated from output. Input signal determines whether switch is open or closed. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 1 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 2 / 38 Various Relay Configurations Types of Relays Classic general-purpose relays have EM coils and can switch power. Solid-state relays (SSR) have input-triggered semiconductor switches. Reed relay has an EM coil and can switch low level DC signals. The bilateral switch uses CMOS, FET, or bifet transistors (technically not a relay but behaves similarly). Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 3 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 4 / 38 Types of Relays Drawing of an EM Relay Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 5 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 6 / 38

Electromagnetic Relay Basics Solid State Relays Input circuit is an EM coil with an Iron Core. Output switch includes two sets of silver or silver-alloy contacts (poles). One set is fixed to the relay frame, and other is located at end of leaf spring poles connected to the armature. Contacts held in normally closed position by the armature return spring. When input circuit energizes EM coil, a pull-in force is applied to the armature and normally closed contacts break while normally open contacts are made. Developed to solve limited life expectancy and contact bounce problems since they have no moving parts. Also, faster, insensitive to vibrations, reduced EMI, quieter, and no contact arcing. Optocoupler provides isolation between the input circuit (pseudocoil) and the triac (pseudocontact). Signal from phototransistor triggers the output triac so that it switches the load current. Zero-voltage detector triggers triac only when AC voltage is zero, reducing surge currents when triac is switched. Once triggered, triac conducts until next zero crossing. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 7 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 8 / 38 Solid State Relays Reed Relays Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 9 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 10 / 38 Solenoids Pulse-Width Modulated DC Motors DC motor also has frame that remains motionless and an armature that moves in this case in a circular manner. When current flows through EM coil, magnetic force created that causes rotation of the shaft. Brushes positioned between frame and armature used to alternate the current direction through the coil so that a DC current generates a continuous rotation of the shaft. When current removed, shaft is free to rotate. Pulse-width modulated DC motor activated with fixed magnitude current but duty cycle varied to control speed. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 11 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 12 / 38

Interfacing EM Relays, Solenoids, and DC Motors Relay and Motor Interfaces Interface circuit must provide sufficient current and voltage to activate the device. In off state, input current should be zero. Due to inductive nature of the coil, huge back electromotive force (EMF) when coil current is turned off. Due to high speed transistor switch, there is a large di/dt when the coil is deactivated (activation also but smaller). Voltages can range from 50 to 200V. To protect the driver electronics, a snubber diode is added to suppress the back EMF. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 13 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 14 / 38 Isolated Interfaces H-Bridge Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 15 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 16 / 38 Isolated H-Bridge with Direction Control Stepper Motors Very popular due to inherent digital interface. Easy to control both position and velocity in an open-loop fashion. Though more expensive then ordinary DC motors, system cost is reduced as they require no feedback sensors. Used in disk drives and printers. Can also be used as shaft encoders to measure both position and speed. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 17 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 18 / 38

Stepper Motors Simple Stepper Motor Interface Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 19 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 20 / 38 Stepper Motor Sequence Stepper Motor Basic Operation PortB A A B B 10 Activate deactivate activate deactivate 9 Activate deactivate deactivate activate 5 Deactivate activate deactivate activate 6 Deactivate activate activate deactivate Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 21 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 22 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 23 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 24 / 38

Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 25 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 26 / 38 Bipolar Stepper Motor Interface Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 27 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 28 / 38 Another Bipolar Stepper Motor Interface Unipolar Stepper Motor Interface Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 29 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 30 / 38

Slip A slip is when computer issues a sequence change, but the motor does not move. Occurs if load on shaft exceeds available torque of motor. Can also occur if computer changes output too fast. If initial shaft angle known and motor never slips, computer can control shaft angle and speed without position sensor. Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 31 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 32 / 38 Data Structures to Control Stepper Motor Ritual to Control Stepper Motor const struct State{ unsigned char Out; // Output const struct State *Next[2]; // CW/CCW ; typedef struct State StateType; typedef StateType *StatePtr; #define clockwise 0 // Next index #define counterclockwise 1 // Next index StateType fsm[4]={ {10,{&fsm[1],&fsm[3], { 9,{&fsm[2],&fsm[0], { 5,{&fsm[3],&fsm[1], { 6,{&fsm[0],&fsm[2]; unsigned char Pos; // between 0 and 199 StatePtr Pt; // Current State void Init(void){ Pos = 0; Pt = &fsm[0]; DDRB = 0xFF; Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 33 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 34 / 38 Helper Functions to Control Stepper Motor void CW(void){ Pt = Pt->Next[clockwise]; // circular PORTB = Pt->Out; // step motor if(pos==199){ // shaft angle Pos = 0; // reset else{ Pos++; // CW void CCW(void){ Pt = Pt->Next[counterclockwise]; PORTB = Pt->Out; // step motor if(pos==0){ // shaft angle Pos = 199; // reset else{ Pos--; // CCW Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 35 / 38 High-Level Control of Stepper Motor void Seek(unsigned char desired){ short CWsteps; if((cwsteps=desired-pos)<0){ CWsteps+=200; // CW steps is 0 to 199 if(cwsteps>100){ while(desired!=pos){ CCW(); else{ while(desired!=pos){ CW(); Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 36 / 38

Stepper Motor as Shaft Position Sensor Timing of Stepper Motor as Shaft Position Sensor Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 37 / 38 Chris J. Myers (Lecture 15: Relays and Motors) ECE/CS 5780/6780: Embedded System Design 38 / 38