PWM and DC Motor Control

Slides:



Advertisements
Similar presentations
KEB COMBIVERT F5-M Exercises.
Advertisements

Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
 Stepper motors are used in a wide variety of applications like Floppy Disc, Printer, Plotter(X-Y- Z positioning).  We control the stepper motor using.
PS 141 Presentation By Gabe, Tanya Mae Kim, Jaeyoun Ong, Raymond Carey.
Introduction of Holtek HT-46 series MCU
Interfacing of 8051 UNIT 4.
Slide 1Fig. 10.1, p.293. Slide 2Fig. 10.1a, p.293.
DC Motors DC Motors are widely used in robotics because of their small size and high energy output. Key characteristics of DC motors include: 1. High Speed.
Stepper Motors A stepper motor is a “pulse-driven” motor that changes the angular position of the rotor in “steps” Define –β = the step angle (per input.
P Fig. 6-1, p. 193 Fig. 6-2, p. 193 Fig. 6-3, p. 195.
Counters.
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.
L.C. Technology Servo Motor Control / Genie Software
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
Ohm’s Law + - R E I E = I * R I = E / R R = E / I E = Voltage I = Current R = Resistance.
PWM ECE 4437-EMBEDDED SYSTEMS DR. GLOVER CHRISTOPHER AHN & KHOA VAN.
Regal Beloit Proprietary & Confidential What do I get? The X13 motor is a permanent magnet, three phase,brushless DC motor. A single phase drive is attached.
10/10/ Controlling YOUR ROBOT. 10/10/2015 Basic Stamp  Basic Stamp Input - output pins Interpreter Chip Power supply: 5 Volts voltage Memory: EEPROM.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 4.1: Motors and Controllers Jürgen Sturm Technische Universität.
Motors & Motor Drivers ECE 450.
Microprocessoren lesson 6. PWM /motor control/servo.
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.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM) Refer to Chapter 21 in the reference book “Stellaris® LM3S9B96 Microcontroller.
8254 Timer.
Motor Speed Josh Edwards. Description Circuit will calculate the RPMs of the motor using the NT3100 and output to a 7 segment display Motor will be driven.
 Today we will cover:  Voltage regulators  Sensors  motordrivers iBOT1.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
The 8051 Microcontroller and Embedded Systems, 2e By Muhammad Ali Mazidi, Janice Gillispie Mazidi, and Rolin D. McKinlay © 2006 Pearson Education, Inc.
DC motor principles Speed control Direction Stepper motor principles
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
-AT91SAM7X256 – Pulse Width Modulation YoonMo Yeon
Team 7 Chaofan Chen Dhruvmin Gandhi Larry Gerhardt Pulse-width Modulation with the TIVA C.
Generators, Motors, and AC Power
Rectifiers, Switches and Power Supplies
Motors & Motor Controllers
DC Motors DC Motors are widely used in robotics because of their small size and high energy output. Key characteristics of DC motors include: 1. High Speed.
MICROCONTROLLER AND INTERFACING
Outline Introduction to NuMaker TRIO Programming environment setup
EKT124 Digital Electronics 1 Introduction to Digital Electronics
Application Case Study Security Camera Controller
Timers and Event Counters
WINTER Template Variable speed control of single phase Induction motor
TI ARM I/O Programming Chapter 2
PWM and DC Motor Control
An FPGA Implementation of a Brushless DC Motor Speed Controller
GPIO General Purpose Input/output Tiva C TM4C123GH6PM
Refer to Chapter 10 in the reference book
Programmable Interval Timer
AVR Addressing Modes Subject: Microcontoller & Interfacing
DC MOTOR SPEED CONTROL 1. Introduction
ADC, DAC, and Sensor Interfacing
SPI Protocol and DAC Interfacing
PWM and DC Motor Control
PWM and DC Motor Control
Controlling YOUR ROBOT
MSP432 ARM Timer Programming
I2C Protocol and RTC Interfacing
PWM and DC Motor Control
Relay, Optoisolator, and Stepper Motor Interfacing
Pololu DC Motor Controller
CHAPTER 4 COUNTER.
UNIT 19 PWM 로봇 SW 교육원 조용수.
Relay, Optoisolator, and Stepper Motor Interfacing
I2C Protocol and RTC Interfacing
Figure PIC18 Connection to Relay
Proportional Control with the PLC
Relay, Optoisolator, and Stepper Motor Interfacing
PWM and DC Motor Control
Presentation transcript:

PWM and DC Motor Control Chapter 11 PWM and DC Motor Control

DC Motor Rotation (Permanent Magnet Field)

Selected DC Motor Characteristics (http://www.Jameco.com) Part No. Nominal Volts Volt Range Current RPM Torque 154915CP 3 V 1.5–3 V 0.070 A 5,200 4.0 g-cm 154923CP 0.240 A 16,000 8.3 g-cm 177498CP 4.5 V 3–14 V 0.150 A 10,300 33.3 g-cm 181411CP 5 V 0.470 A 10,000 18.8 g-cm

H-Bridge Motor Configuration

H-Bridge Motor Clockwise Configuration

H-Bridge Motor Counterclockwise Configuration

H-Bridge in an Invalid Configuration

Some H-Bridge Logic Configurations Motor Operation SW1 SW2 SW3 SW4 Off Open Clockwise Closed Counterclockwise Invalid

Bidirectional Motor Control Using an L298 Chip

Pulse Width Modulation Comparison

DC Motor Connection Using a Darlington Transistor

DC Motor Connection Using a MOSFET Transistor

a PWM Module

RCGCPWM Register

Run-Mode Clock Configuration (RCC), offset 0x060

Clock Sources to PWM

A PWM Generator (Counter) and PWMa and PWMb Output

PWMxCTL Register

Up/down and down-counter

The Offset Addresses of PWMCTL Registers in TI TIVA PWM0_0_CTL (Control for Counter0) 0x040 PWM0_1_CTL (Control for Counter1) 0x080 PWM0_2_CTL (Control for Counter2) 0x0C0 PWM0_3_CTL (Control for Counter3) 0x100

PWMxLOAD Register

PWMxCOUNT (Current Counter)

PWMxCMPA

PWMxCMPB

PWM Events in TI TIVA

PWMxGENA and PWMxGENB registers

PWMxGENA

PWMxGENB

PWM generation using count-down mode and ComparatorA

a PWM Module (repeated)

PWMENABLE

Module 0 (M0) PWM alternate pin assignment M0PWMx PIN GPIOAFSL register M0PWM0 PB6 GPIOB->AFSEL=0x40 (0100 0000 binary) M0PWM1 PB7 GPIOB->AFSEL =0x80 (1000 0000 binary) M0PWM2 PB4 GPIOB->AFSEL =0x10 (0001 0000 binary) M0PWM3 PB5 GPIOB->AFSEL =0x20 (0010 0000 binary) M0PWM4 PE4 GPIOE->AFSEL =0x10 (0001 0000 binary) M0PWM5 PE5 GPIOE->AFSEL =0x20 (0010 0000 binary) M0PWM6 PC4 GPIOC->AFSEL = 0x10 (0001 0000 binary) PD0 GPIOD->AFSEL = 0x01 (0000 0001 binary) M0PWM7 PC5 GPIOC->AFSEL =0x0x20 (0010 0000 binary) PD1 GPIOD->AFSEL = 0x02 (0000 0010 binary)

Module 0 (M0) PWM pin assignment using GPIO_PCTL (Extracted from Table 23-5 of Tiva Manual) M0PWMx PIN Value for GPIOPCTL register M0PWM0 PB6 GPIO_PORTB_PCTL=0x0400000 M0PWM1 PB7 GPIO_PORTB_PCTL=0x4000000 M0PWM2 PB4 GPIO_PORTB_PCTL=0x0004000 M0PWM3 PB5 GPIO_PORTB_PCTL=0x00400000 M0PWM4 PE4 GPIO_PORTE_PCTL=0x0040000 M0PWM5 PE5 GPIO_PORTE_PCTL=0x00400000 M0PWM6 PC4 GPIO_PORTC_PCTL=00040000 PD0 GPIO_PORTD_PCTL=0x00000004 M0PWM7 PC5 GPIO_PORTC_PCTL=0x00400000 PD1 GPIO_PORTD_PCTL=0x00000040

Module 1 (M1) PWM Alternate pin assignment M1PWMx PIN GPIO_AFSL register M1PWM0 PD0 GPIOD->AFSEL =0x01 (0000 0001 binary) M1PWM1 PD1 GPIOD->AFSEL =0x02 (0000 0010 binary) M1PWM2 PA6 or GPIOA->AFSEL =0x40 (0100 0000 binary) PE4 GPIOE->AFSEL =0x10 (0001 0000 binary) M1PWM3 PA7 GPIOA->AFSEL =0x80 (1000 0000 binary) PE5 GPIOE->AFSEL =0x20 (0010 0000 binary) M1PWM4 PF0 GPIOF->AFSEL =0x01 (0000 0001 binary) M1PWM5 PF1 GPIOF->AFSEL =0x02 (0000 0010 binary) M1PWM6 PF2 GPIOF->AFSEL =0x04 (0000 0100 binary) M1PWM7 PF3 GPIOF->AFSEL =0x08 (0000 1000 binary)

Module 1 (M1) PWM pin assignment using GPIO_PCTL register (Extracted from Table 23-5 of Tiva Manual) M1PWMx PIN Value for GPIOPCTL M1PWM0 PD0 GPIOD->PCTL= 0x00000005 M1PWM1 PD1 GPIOD->PCTL=0x00000050 M1PWM2 PA6 GPIOA->PCTL=0x05000000 PE4 GPIOE->PCTL=0x00050000 M1PWM3 PA7 GPIOA->PCTL=0x50000000 PE5 GPIOE->PCTL=0x00500000 M1PWM4 PF0 GPIOF->PCTL=0x00000005 M1PWM5 PF1 GPIOF->PCTL=0x00000050 M1PWM6 PF2 GPIOF->PCTL=0x00000500 M1PWM7 PF3 GPIOF->PCTL=0x00005000