EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

EET 2261 Unit 13 Stepper Motors and Servos
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
PHY 235 Robotics Workshop Day 6 DC Motors, H-Bridge Board, Simple Lego/Boe Bot.
Index  INTRODUCTION  HARDWARE DESCRIPTION  BLOCK DIAGRAM  COMPONENT LIST  ADVANTAGES AND APPLICATIONS  CONCLUSION.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Wiring the new control system MVRT 2010 – 2011 Season.
ELECTRICAL. Circuits Outline Power Hub Microcontroller Sensor Inputs Motor Driver.
Motor Control Lab Using Altera Nano FPGA
Servos The material presented is taken from a variety of sources including:
1 EECS 373 Design of Microprocessor-Based Systems Student Presentations Tianhua Zheng and Jason Shintani Motor control November 27 th, 2012.
Components of a servomotor are: - a DC electric motor, - gears with an output shaft; - position-sensing mechanism; - control circuitry. Robotics and Automation.
L.
SERVO MOTORS Tech Topic By Ryan Bidlack. Background A servo motor is composed of a DC, AC, or an AC induction motor and a feedback control. A servo motor.
1 Eric Taseski, Yihe Huang, Ronak Mehta H-Bridges and Stepper Motors 2.
Old control system ( ) MVRT. Main Circuit Breaker Connected to the red wire (power) of the battery When turned off, all power is cut off and robot.
EET 1131 Unit 13 Multivibrators and the 555 Timer
Pulse Width Modulation (PWM) LED Dimmer Circuit
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
1 Servo Motor. 2 Overview A servo motor is a motor that is only capable of rotating 180 degrees A servo motor is controlled by giving it an angle to proceed.
L.C. Technology Servo Motor Control / Genie Software
Applied Control Systems Robotics & Robotic Control
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Servo Motor Control Demonstration.
September, 2007ENGR Low-Level Robot Control Mechatronics: Motors, sensors & embedded controls.
Controlling the Outside World
Servo Motor Control Demonstration. EML 2023 Department of Mechanical and Aerospace Engineering motor with gear reducer flex coupling incremental optical.
ELECTRIC MOTORS An Introduction to DC and Stepper Motors.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
University of Tehran 1 Microprocessor System Design IO Applications Omid Fatemi
Motors & Motor Drivers ECE 450.
University of Minnesota Unmanned Aerial Vehicle Research Lab Common Harness Wiring Instructions.
STEPPER MOTORS Name: Mr.R.Anandaraj Designation: Associate. Professor Department: Electrical and Electronics Engineering Subject code :EC 6252 Year: II.
1 Lecture on Lab 6 Lab 7 Lab 8. 2 Lab 6: Open Loop Controller As you learned in lab 5, there are two kinds of control systems: open loop and closed loop.
Servos The material presented is taken from a variety of sources including:
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
MOTORS. Definition Of Motor That powered by electricity or internal combustion, that supplies motive power for a vehicle or for some other device. A device.
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Servo Motor Control Using Arduino Instructor: Dr Matthew Khin Yi Kyaw.
Sitarambhai Naranjibhai Patel Institute Of Technology & R.C.
Lynxmotion Robotic Arm © 2013 Project Lead The Way, Inc.Computer Integrated Manufacturing
Limited rotation servo basics David Hall output shaft servo horn red wire = 5V + black wire = Gnd - white wire = control signal standard servo.
DC motor principles Speed control Direction Stepper motor principles
Microcontroller basics Embedded systems for mortals.
Motors & Motor Controllers
Introduction to Motors, servos and steppers
MICROCONTROLLER AND INTERFACING
MOTORS.
Controlling Servos with the Arduino
CU ATLAS Practical electronics Motion and Servos
Introduction to Servos
Introduction to Handshaking Communication with SSC-32U
Servos The material presented is taken from a variety of sources including:
Electric Motors.
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Servos The material presented is taken from a variety of sources including:
EET 2261 Unit 11 Controlling LCD and Keypad
CenSSIS/NE-LSAMP REU “LabVIEW control of the Sport232 Interface”
EET 2261 Unit 11 Controlling LCD and Keypad
Controlling YOUR ROBOT
EET 1131 Unit 13 Multivibrators and the 555 Timer
EET 2261 Unit 12 Controlling Stepper Motors and Servos
EET 2261 Unit 8 Seven-Segment Displays
Figure PIC18 Connection to Relay
PWM and DC Motor Control
Hitec HS 303: Robotic Servo Motor
Introduction to Motors
UNIT 11: RC-SERVOMOTOR CONTROL
Robotics System Lecture 11_12: DC Motor
Presentation transcript:

EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.

There are many kinds of electric motors. (See Wikipedia article.) Wikipedia article In many motors, the rotor spins continuously, with no way of precisely controlling the motor’s rotational position. Stepper motors and servos are two widely used kinds of motors whose position can be precisely controlled. Stepper Motors and Servos

Our textbook does not discuss stepper motors or servos (except in Question 7 on page 200). But Chapter 21 discusses pulse width modulation (PWM), which is the technique used to control servos. Coverage of Motors in the Textbook

A stepper motor is a digitally controlled motor that allows precise control over the position of the motor’s rotor. Changes in the digital input rotate the motor’s rotor by a precise amount, which is called a step or step angle. Depending on the motor, this step angle may be as small as 1  (or less) or as large as 45 . On our motors, the step angle is 3.6 . Stepper Motors

Our motor is made by Howard Ind., part number As shown on its specifications sheet, it’s a unipolar motor with a 3.6  step angle. specifications sheet Our Stepper Motor

Several widely used motor driver ICs exist for interfacing motors to microcontrollers. On our Dragon12 board, the TB6612FNG driver serves this purpose (U12 near the board’s lower left corner). Interfacing the Microcontroller to the Stepper Motor

This chip contains a popular driver design called an H-bridge. It is often used to control DC motors and stepper motors. TB6612FNG datasheet.TB6612FNG datasheet Toshiba TB6612FNG

On the Dragon12 board, the TB6612FNG is connected to Ports B and P of the HCS12. Figure from Dragon12 Schematic Diagram 5.Schematic Diagram 5 Connections to TB6612FNG

Once you’ve made the proper connections and configured the HCS12’s ports, stepper motors are easy to program. The following code will turn our motor counterclockwise (CCW): Code for Turning a Stepper Motor

A servo motor (or servo) is a package containing a DC motor connected via gears to a shaft. It also contains a feedback circuit that precisely controls the shaft’s angle of rotation. Unlike a motor whose rotor spins continuously, a servo is usually used to set the shaft to a specific angle of rotation and then hold it there for a while. Servos

Servos are commonly used in small robotics and in radio-controlled (RC) airplanes, cars, and boats. In an RC airplane, for example, servos may control the plane’s throttle, rudder, elevators, ailerons, landing gear, etc. Next slide shows inner workings of an RC airplane. Servos in RC Vehicles

Servos and Stepper Motors

Servos have three wires: Power (red) Ground (black) Control signal (yellow or white) Wiring a Servo

The Dragon12 board has four connectors (near the center of the top edge) for servos, labeled PP4, PP5, PP6, PP7. Jumper J35 lets you choose whether to power the servo from the board or from an external supply. We’ll power it from the board, but to do so we must have the power adapter plugged in. Connecting Servos to the Dragon12

On the Dragon12 board, the servo outputs are connected to Port P of the HCS12. Figure from Dragon12 Schematic Diagram 5.Schematic Diagram 5 Dragon12 Connections

Our servo is made by Hitec, part number HS-311. See ServoCity’s webpage for detailed specifications.ServoCity’s webpage Our Servo

The servo’s control signal is a 50 Hz pulse train. Therefore, what is this signal’s period? As shown on the next slide, the width of the pulse is crucial in controlling the servo. Controlling a Servo Period = ?

The control signal’s pulse width determines the shaft’s angle of rotation. Typically this pulse width ranges from about 0.5 ms to about 2.5 ms, interpreted as follows: 1.5 ms pulse width: 0  rotation. Pulse width less than 1.5 ms: rotate counterclockwise (up to 90 , for our servo). Pulse width greater than 1.5 ms: rotate clockwise (up to 90  ). Controlling a Servo

The term pulse width modulation (PWM) refers to the technique of varying a signal’s pulse width to control a device such as a servo. (PWM is used to control other kinds of devices, too, including DC motors.) Pulse Width Modulation

One way to perform PWM using the HCS12 would be to write a loop that sets an output pin HIGH and LOW at the right times to generate pulses of the desired width and frequency. This approach would tie up a lot of the CPU’s time. A more efficient way is to use the HCS12’s built-in PWM block. Using this approach, once we have configured the PWM block correctly, it will generate pulses of the desired width and frequency without tying up the CPU. PWM Using the HCS12

The Pulse Width Modulation (PWM) block shares pins with general- purpose I/O Port P. Figure from p. 6 of textbook or page 23 of Device User Guide). Device User Guide Pulse Width Modulation (PWM) Block