Laboratory Assignment Number 3 for Mech 143. Pre-Lab: Part 1 Interfacing to a DC Motor and Potentiometer

Similar documents
LABORATORY ASSIGNMENT NUMBER 3 FOR CMPE 118 Due by 5:00pm on Friday, February 8, 2008 Pre-Lab Due by 5:00pm on Friday, February 1, 2008

Lab 8. Stepper Motor Controller

Lab 6. Binary Counter

Lab 5. Binary Counter

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

Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage)

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

Lab Exercise 9: Stepper and Servo Motors

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC 180A DIGITAL SYSTEMS I Winter 2015

EECS 318 Electronics Lab Laboratory #2 Electronic Test Equipment

PreLab 6 PWM Design for H-bridge Driver (due Oct 23)

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

DC-Motor Driver circuits

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

Laboratory Design Project: PWM DC Motor Speed Control

LAB #10: Analog Interfacing

Motor Control Development Kit

Bill of Materials: PWM Stepper Motor Driver PART NO

MDM5253 DC Motor Driver Module with Position and Current Feedback User Manual

Precalculations Individual Portion Introductory Lab: Basic Operation of Common Laboratory Instruments

Electronic Instrumentation ENGR-4300 Fall 2004 Section Experiment 7 Introduction to the 555 Timer, LEDs and Photodiodes

Figure 1: Motor model

Laboratory Final Design Project. PWM DC Motor Speed Control

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

LV8716QAGEVK Evaluation Kit User Guide

POLOLU DUAL MC33926 MOTOR DRIVER FOR RASPBERRY PI (ASSEMBLED) USER S GUIDE

Effects of Initial Conditions in a DRSSTC. Steven Ward. 6/26/09

Application Note CDIAN003

Laboratory Exercise 1 Microcontroller Board with Driver Board

Electronics. RC Filter, DC Supply, and 555

Brushed DC Motor Control. Module with CAN (MDL-BDC24)

Experiment#6: Speaker Control

The Oscilloscope. Vision is the art of seeing things invisible. J. Swift ( ) OBJECTIVE To learn to operate a digital oscilloscope.

CHAPTER 6. Motor Driver

Revision: Jan 29, E Main Suite D Pullman, WA (509) Voice and Fax

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Lab 10. Magnetic-Levitation Controller

Jaguar Motor Controller (Stellaris Brushed DC Motor Control Module with CAN)

Electric Drives Experiment 5 Four-Quadrant Operation of a PMDC Motor

Introduction to project hardware

DMC-8 (SKU#ROB )

6.01, Fall Semester, 2007 Assignment 9b - Design Lab, Issued: Wednesday, Oct. 31st 1

Lab 5: Inverted Pendulum PID Control

Designing with a Microcontroller (v6)

Building a Bitx20 Version 3

DMX-K-DRV-17 Integrated Step Motor Driver & Basic Controller

o What happens if S1 and S2 or S3 and S4 are closed simultaneously? o Perform Motor Control, H-Bridges LAB 2 H-Bridges with SPST Switches

BME/ISE 3511 Bioelectronics I - Laboratory Exercise #4. Variable Resistors (Potentiometers and Rheostats)

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

EE 308 Lab Spring 2009

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

Electronics I. laboratory measurement guide Andras Meszaros, Mark Horvath

Name & SID 1 : Name & SID 2:

EDE1204 Bi-Polar Stepper Motor IC

The University of Jordan Mechatronics Engineering Department Electronics Lab.( ) Experiment 1: Lab Equipment Familiarization

Analyzing the RCA TX81/82 Horizontal Output Stage

Autonomous Robot Control Circuit

LINE MAZE SOLVING ROBOT

Experiment (2) DC Motor Control (Direction and Speed)

As delivered power levels approach 200W, sometimes before then, heatsinking issues become a royal pain. PWM is a way to ease this pain.

Ultimate Actuator Drivebox 30A Quick start guide

DC->DC Power Converters

ECE 5670/6670 Project. Brushless DC Motor Control with 6-Step Commutation. Objectives

ENGR-4300 Fall 2006 Project 3 Project 3 Build a 555-Timer

Pololu DRV8835 Dual Motor Driver Kit for Raspberry Pi B+

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

1 Second Time Base From Crystal Oscillator

Sweep / Function Generator User Guide

USER S GUIDE POLOLU DRV8838 SINGLE BRUSHED DC MOTOR DRIVER CARRIER USING THE MOTOR DRIVER

Name: Resistors and Basic Resistive Circuits. Objective: To gain experience with data acquisition proto-boards physical resistors. Table of Contents:

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

Adafruit 16-channel PWM/Servo Shield

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

Model 25A Manual. Introduction:

DPFHP451 HIGH PERFORMANCE BILEVEL STEP MOTOR / MANUAL PRESET INDEXER DRIVER PACK

Industrial Fully Control Dc Motor Drive without Microcontroller. Four Quadrant Speed Control of DC Motor Using MOSFET and Push Button Switch

Class #3: Experiment Signals, Instrumentation, and Basic Circuits

Experiment 5: Basic Digital Logic Circuits

DLVP A OPERATOR S MANUAL

Laboratory Equipment Instruction Manual 2011

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

transformer rectifiers

Adafruit 16-Channel PWM/Servo HAT & Bonnet for Raspberry Pi

EE431 Lab 1 Operational Amplifiers

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

Yaskawa Electric America Unit Troubleshooting Manual Section Two: Power Checks GPD 506/P5 and GPD 515/G5 (0.4 ~ 160kW)

Pololu Dual G2 High-Power Motor Driver for Raspberry Pi

Three-Phase MOSFET BRIDGE, With Gate Driver and Optical Isolation

Adafruit 16-Channel PWM/Servo HAT for Raspberry Pi

Ametek, Inc. Rotron Technical Products Division. 100 East Erie St., Suite 200 Kent, Ohio User's Guide. Number Revision F

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Applications of the LM392 Comparator Op Amp IC

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

R 1 R 2. (3) Suppose you have two ac signals, which we ll call signals A and B, which have peak-to-peak amplitudes of 30 mv and 600 mv, respectively.

Figure 1. Digilent DC Motor

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Transcription:

Purpose: Minimum Parts Required: Laboratory Assignment Number 3 for Mech 143 Due by 5:00 pm on Thursday, February 11, 1999 Pre-Lab Due by 5:00pm on Tuesday, February 9, 1999 This lab is intended to acquaint you with: Controlling a dc motor. Controlling a stepper motor. Finding information in data sheets. Pulse width modulation. Phenomenon encountered with a DC motor. Limitations of purely software techniques. 1 each: DC motor and stepper motor (provided at each lab station), 1N5245 15 Volt Zener diode, 20K potentiometer, See a TA for any parts you need that are not in your parts kit. Pre-Lab: Complete the following exercises AFTER you have read through the lab assignment and BEFORE coming into SPDL to complete the lab. 0.1) Decide which port and bit(s) you will use to control the motors (all parts). 0.2) Decide what, if any, initialization is required for that port. 0.3) Decide what mode you intend to use for the A/D converter. 0.4) Determine which pins on which cables you need to hook up. Include a description of which of the port lines on the 68HC11 you used to implement the control as well as a justification for why you chose to use that (those) particular line(s). You should also include a description of the mode of A/D converter operation you chose, and why. Part 1 Interfacing to a DC Motor and Potentiometer AD_LIB reference documentation, DS3658 Data Sheet, Digital Outputs Documentation. The Ideal users manual You are to design the software necessary for the 68HC11 NMI to drive the supplied DC motor. Motor drive should use Pulse Width Modulation with a minimum resolution of 1 part in 256 (i.e., 8 bits). This control is to be implemented completely in software without the use of the PWM libraries. The speed at which you run the motor should be determined by the setting of an external potentiometer which your software reads using the A/D converter in the 68HC11. Your program should continuously read the voltage set by the potentiometer and set the motor speed directly proportional to the voltage (full scale A/D is full speed). You should be able to exit the program by pressing any key. When you have completed this task, you will be prepared to continue with the laboratory exercises in Part 2. At this point find a coach and get a sign-off sheet after demonstrating Part 1. Set-Up: 1.1) For this, and the next part, you be using the DS3658 Quad High Current Peripheral Driver to drive the DC motor. Since these are open collector outputs, you will need to supply the power to the motor separately. To bring the power to your protoboard for connection to the motor, use your banana plug jumpers to bring the power from the positive adjustable outputs to your proto-board. 1.2) Adjust the positive output to approximately 7.5V using the control dial on the power supply. Now connect the supply (at the proto-board) to one side of the DC motor using the connector from the motor assembly.

Mech143 Lab Number 3 Due by 5:00 PM on Thursday, February 11, 1999 2 +V 7.5V +V 5V DS3658 To NMI OPTOISO OutA InA Cmp1 InB OutB EN OutC VCC Cmp2 InC OutD InD NMI 100k 7.5V and 5V 5V Figure 1: Schematic for Part 1 1.3) Now connect the clamp diode for drivers 1&2 to the motor supply, at the proto-board and the output for driver 1 to the remaining side of the DC motor. The motor should not be rotating. 1.4) Explain why the motor is not rotating at this point. 1.5) Hook the two outer leads from the potentiometer to +5 & Gnd. These are most easily obtained using the 3 pin connector that you used in the last lab. Be very careful NOT to use the power going to the motor, that is 7.5V, use the configuration usign VRL and VRH as in Lab 1. After doing this, check to see that the voltage at the wiper( the remaining terminal on the potentiometer) swings between 0 and 5V. 1.6) Using one of the jumpers that goes from a wire to a push-on connector, make the connection from the wiper (the middle pin on the potentiometer) to the PortE, pin 0. This configuration is your A/D converter. 1.7) It's finally time to try out your code. In Ideal, with the communications window active, turn on (or reset) the NMI board. You should get the Buffalo signon message. Press the return key, and you should see Buffalo's standard prompt '>'. At this point you are ready to download your code. Select Build from the build menu and, if you have no errors, your code should be compiled & downloaded (the download process looks different than it did for the Mini-Board). If this went smoothly, you should be back at a Buffalo prompt. To start you code, type 'c c000' (those are zeros). You must include the wiring diagrams of the circuits you used, noting which bits were used and what connections were made to the NMI, the sign-off sheet, the answers to the question in part 1.4, as well as a listing of the software used to control the motor. Lecture Notes on DC motors. Part 2 Exploring DC Motors Complete the following exercises: Basic Waveforms 2.1) Set the 'scope up for dual trace and examine the waveforms at the input and output of the DS3658. Draw a neat and readable representation of the two wave-forms. Include at least 2 full cycles. Label the parts of the waveform to show the active (driven) portion of the waveform, the decay period as the motor field collapses, the peak of the inductive kick-back, and the back EMF generated by the motor. Do this at 2 duty cycle levels (i.e. 20% and 80%). Make a separate scope face drawing for each. Note the different back EMF values at the different motor speeds. To best see the back EMF, you might want to draw a composite of two waveforms, one with the motor stalled (hold the shaft to keep it from turning) and one

Using a Zener in lieu of the kick-back diode Mech143 Lab Number 3 Due by 5:00 PM on Thursday, February 11, 1999 3 with the motor turning. 2.2) Disconnect the clamp diode from the circuit and replace it with the 20 volt zener in a configuration like the one shown below. Note: the band on the zener diode body corresponds to the horizontal bar in the zener symbol. Repeat the labeled waveform drawing from Part 2.1. Contrast the decay times for the 2 techniques; be specific about durations. To do this you will probably need to use a different time scale on the 'scope. This portion will be most clear if you examine the alternatives at a very low duty cycle (i.e. active for 1 part in 256). This way the effects of back EMF do not obscure the decay time. From this exercise you can see how a zener protects the output transistor by limiting the peak voltage to the zener voltage, and at the same time minimizes the decay time of the collapsing field. It is important to minimize this decay time in order to make the duty cycle response of the motor as linear as possible. At very high duty cycles it would be possible for a long delay time to completely overlap the undriven portion of the waveform. Input DS3658 M 15 Volt Zener Diode +7.5 Volts The Limits of Software control 2.3) Using the oscilloscope and/or the counter-timer, determine the frequency of the duty cycle waveform that you are generating. What is the frequency? 2.4) Can you find a way to increase the operating frequency? (Look at how to shorten your cycle time to the minimum.) 2.5) What happens to the upper frequency limit if we only have 7 bits of resolution? How about 10 bits? We are making a trade-off between resolution and frequency of operation. 2.5) Given a resolution, what is the key parameter in determining the total period of the PWM signal? 2.6) Can your solution achieve a full range of operation? (i.e. What happens if you try to get 0% or 100% duty cycle). If it can't, don't try and fix it, just explain why it won't work. 2.7) For a given duty cycle, what are the sources of error in the approach you have chosen? (i.e. if you ask for 50% duty cycle do you get it?...theoretically, that is, you probably will not be able to measure the error.) Several scope face drawings are requested, please make your drawings legible. Using different colors for different waveforms is helpful. Include the discussion requested in Part 2.2. Be sure also to include in the lab report your answers to the all the questions in Parts 2.3-2.7. To ease the grading task please quote the question you are answering before your answer. This way the grader can read the question you think you are answering followed by your answer.

Mech143 Lab Number 3 Due by 5:00 PM on Thursday, February 11, 1999 4 Part 3 Interfacing to a Stepper Motor and Potentiometer Stepper Motor Handbook, MC3479 datasheet. You are to design the necessary software to run on the 68HC11 NMI to drive the supplied stepper motor. The speed at which you run the motor should be determined by the setting of an external potentiometer which your software reads using the A/D converter in the 68HC11. Your program should continuously read the voltage set by the potentiometer and set the motor speed directly proportional to the voltage (full scale A/D is full speed). You should be able to exit the program by pressing any key. When you have completed this task, get a coach/ta to sign off on it's function. For this, and subsequent sections of the lab, you may use the supplied libraries. providing pulse generation and PWM output. Set-Up: 3.1) For this part you should use the stepper motor drive chip whose outputs appear on the datasheet for the MC3479. Vd L2 L1 Bias Vm L4 L3 PhA Clk C/CW OIC F/H Note: Stepper Motor Circuit OIC This pin is used to control the stepper motor drivers. If you want FULL steps pull this pin to GROUND. If you want HALF steps, then putll this pin HIGH. 3.2) You will need to add a power connector to supply power to the stepper motor. Like in part 1, set the voltage to 7.5V. 3.3) You will need to supply pulse and direction inputs to the chip. For this test, you may simply hook the Full/Half input to ground. 3.4) You will need to experiment with the motor coil polarities to get the motor to rotate. If at first you don't succeed, try try again (there are only a few possibilities).. Include the wiring diagram of the circuit you used, a copy of the code that drives the stepper motor and the sign-off sheet from the coach. Be sure to indicate on the diagram which bits of which ports of the 68HC11 you used.

Mech143 Lab Number 3 Due by 5:00 PM on Thursday, February 11, 1999 5 Part 4 Interfacing to a DC Motor and H-Bridge LM18293 Datasheet You are to duplicate the functionality of part 1, this time using the H-Bridge to drive the motor. You will also need to add a little complexity. You should include a provision to change the direction of rotation of the motor. When you have completed this task, get a coach to sign off on it's function. For this, section of the lab, you should use the supplied libraries. providing PWM output. Set-Up: 4.1) You will need to add a power connector to supply power to the LM18293 H-bridge. Connect the 18293 in the following manner: 4.2) You will need to supply enable and direction inputs to the chip. Include the wiring diagram of the circuit you used, a copy of the code that drives the DC motor and the sign-off sheet from the coach. Be sure to indicate on the diagram which bits of which ports of the 68HC11 you used. Hints on working this assignment When you go into the lab, follow a well thought out and systematic approach to testing both the hardware and the software. It is a good idea to get into the habit of testing your software, as much as possible, separately from testing your hardware. If you really did your preparation properly, you should come into the lab ready to build and test the hardware in Part 1. If you have spent more than one hour on any single task, after coming in prepared as described above, something is wrong! STOP, ask a TA or your neighbor to take a look at what you are doing. Often a new look will spot simple problems that you've missed.