Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

MOTION CONTROL ECE 105 Industrial Electronics Engr. Jeffrey T. Dellosa College of Engineering and Information Technology Caraga State University Ampayon,
More fun with Timer/Counters
Encoders, Motors, Power, Mini Project #1 10/24/2014.
Rotary Encoder. Wikipedia- Definition  A rotary encoder, also called a shaft encoder, is an electro- mechanical device that converts the angular position.
Tachometers – An Overview
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
L.
Tim Quinn 4/21/09. The Use of a Bicycle Speedometer With a speedometer cyclists can know how fast they are going helping to maintain a Constant Speed.
Solar Tracking Project Team Members: –Cristian Ruvalcaba –Ken Seal –David Clark –Mark McKinley –Richard DeJarnatt.
SENIOR DESIGN 10/16.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Pulse Width Modulation (PWM) LED Dimmer Circuit
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
1 Sensors BADI Year 3 John Errington MSc. 2 Sensors Allow a design to respond to its environment – e.g. a line following robot may use photosensors to.
Indian Institute of Technology Hyderabad CONTACTLESS TACHOMETE R Group members: Moruboyina Alekhya Kodi Padmasree D.Hima Varsha.
Pulse Width Modulation (PWM) LED Dimmer Circuit
In this PPT, all the materials covered up for the PIC microcontroller set-up would be studied. Preliminary skills: Knowing of basic C grammar and basic.
EML 2023 – Motor Control Lecture 3 – Feedback Sensor Optical Encoder.
CNC Machine Tool (G&M Code Program)
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.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Inside a Mouse The main goal of any mouse is to translate the motion of your hand into signals that the computer can use. Almost all mice today do the.
A PS/2 mouse is shown above with the cover removed. The ball (upper right) rolls two plastic X and Y axles with a slotted wheel at one end. The slotted.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
PH4705 & ET4305: Digital Sensors
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
1 Lab 5: Controls and feedback. 2 Lab 5: Control and Feedback This embedded system uses the Photo sensor to detect the light intensity of the environment.
Robot sensors MVRT 2010 – 2011 season. Analog versus Digital Analog Goes from 0 to 254 Numerous values Similar to making waves because there are not sudden.
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.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
By Tony Hoff ECE 4220 – Real Time Embedded Computing University of Missouri - Columbia Course Instructor: Dr. Guiherme DeSouza.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Final Presentation Prime Mobility Group Group Members: Fredrick Baggett William Crick Sean Maxon Project Advisor: Dr. Elliot Moore.
Precision Robotics R. M. Satterthwaite R. Shockency Advised By: Dr. B. D. Huggins Mr. C. Mattus.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
1 4-Integrating Peripherals in Embedded Systems (cont.)
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
Introduction to VEX® components
1 4-Integrating Peripherals in Embedded Systems (cont.)
Microcontroller basics Embedded systems for mortals.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Application Case Study Christmas Lights Controller
Introduction to Motors, servos and steppers
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming & Sensors.
MICROCONTROLLER AND INTERFACING
Servos Elementary Robotics with Servos
Electronic Control Systems Week 3 – Switches and Sensors
Application Case Study Security Camera Controller
Timers and Event Counters
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Introduction to Servos
UNIT-III FEEDBACK DEVICES
ALTERNATING CURRENT AND VOLTAGE
Communication Protocol
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
8-bit Timer/Counter0 with PWM
Binary Counter Thinking Digitally
Rotary Encoders Cedric Pinder Major: Computer Engineering.
CBC Fundamentals Lecture is based on material from Robotic Explorations: A Hands-on Introduction to Engineering, Fred Martin, Prentice Hall, 2001.
EET 2261 Unit 12 Controlling Stepper Motors and Servos
UNIT 11: RC-SERVOMOTOR CONTROL
Programming & Sensors.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Presentation transcript:

Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder Introduction to Smart Systems Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder 1

(Introduction to) Pulse Width Modulation PWM means controlling the relative widths of the positive and negative parts of an output waveform, whilst keeping the pulse frequency constant. PWM thus controls the amount of energy in the waveform (used to regulate the speed of a motor, the brightness of a light etc.). The proportion of time the signal is on is called the ‘duty cycle’: A duty cycle of 100% means that maximum energy is provided, and a duty cycle of 0% means that minimum energy is provided to the controlled device. A square wave has a 50% duty cycle. Duty Cycle 25% 50% 75% 2 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich

Pulse Width Modulation on ATmega1281 using Timer/Counter 0 The Timer/Counters on the ATmega1281 are capable of producing PWM output pulses. Timer/Counter 0 is used for illustration. Direct output of pulse waveform onto the OC0A pin (bit 7 of Port B) ‘Output Compare’ Interrupt can be generated at the switchover point in the pulse ‘Overflow’ Interrupt can be generated at start of new pulse 3 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich

Pulse Width Modulation – LED brightness control A simple example application of PWM is controlling the brightness of LEDs – the higher the duty cycle, the brighter the LEDs are. An example ‘PWM light dimmer’ project has been placed on the course website. The application uses Timer/Counter0 in ‘Fast PWM’ mode. The on-board switches are used control the brightness of the LEDs by re-programming the timer registers so that different waveforms are produced. Example LED brightness levels. Photos are blurred because these had to be taken in low light levels (long exposures) with a handheld camera Duty cycle values 0.5% 2% 12.5% 25% 37.5% 4 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich

Rotation Feedback systems - Shaft Encoders (1) A device to detect the position or angular rotation of a shaft Typically used in Motor feedback systems (speed control), and devices where angular position needs to be detected (a good example is a computer mouse). Magnetic: a magnet is placed on the edge of a wheel attached to the shaft. A magnetic switch is placed near the wheel so that the switch activates each time the magnet passes by. Pulses (output signal to microcontroller) Magnet Magnetic proximity switch (the detector) 5 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich

Rotation Feedback systems - Shaft Encoders (2) Detect Forward / Backward Movement Left / Right Mouse Ball sits under this cover and rotates the shafts Optical: A light beam passes through, or is reflected off of, a disk attached to the rotating shaft. The number of received light pulses indicate the angular rotation. A ‘Quadrature’ technique is used in the mechanical ball mice, so that the direction can be determined, as well as speed (see next slide). 6 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich

Rotation Feedback systems - Shaft Encoders (3) Quadrature: Two pulses are produced on separate output wires. The outputs are offset by 90 degrees, thus not only enabling the measurement of speed or distance (by counting the pulses) but also determining the direction (by the relative timing of the two pulses). A ‘reference’ output is also added on some devices; this gives an output pulse once per turn at a precise position and is used when there is the need of an absolute reference, such as positioning systems (consider a security camera). Can be mechanical or optical. Example application: attached to motors in robots and machinery where a combination of speed / rotation angle and direction are all needed. The output coding pattern (see above) is called Gray code and enables the direction to be determined – based on which signal ‘leads’. The actual pattern of pulses is shown below (which way is the shaft rotating?) Quadrature encoders are used in ball mice to track whether the mouse is moving to the right/left or forward/backward. 7 Embedded Systems Programming II Richard Anthony, Computer Science, The University of Greenwich Diagrams from Wikipedia