Embedded Systems and Software. Rotary Pulse Generators

Similar documents
Embedded Systems and Software

Rotary Pulse Generators and other Lab 3 Considerations

Lab 5: Inverted Pendulum PID Control

Experiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1


The Allen-Bradley Servo Interface Module (Cat. No SF1) when used with the Micro Controller (Cat. No UC1) can control single axis

Sensors and Sensing Motors, Encoders and Motor Control

Series 291 Optical Encoder

Dimensions: Specifications:

Chapter 6: Sensors and Control

ams AG austriamicrosystems AG is now The technical content of this austriamicrosystems application note is still valid. Contact information:

Position and Velocity Sensors

Agilent AEDA-3300 Series Ultra Miniature, High Resolution Incremental Kit Encoders Data Sheet

TRWinProg 101by Chris Bowman October 10

Data Sheet. HEDB-9100 and HEDB-9000 Two Channel Optical Incremental Encoder Modules Bundle With Codewheel. Description. Features.

HEDS-9730, HEDS-9731 Small Optical Encoder Modules 480lpi Digital Output. Features. Applications VCC 3 CHANNEL A 2 CHANNEL B 4 GND 1

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Agilent AEDS-962x for 150 LPI Ultra Small Optical Encoder Modules

CNC Machine Feedback Devices

Data Sheet. AEDT-9140 Series High Temperature 115 C Three Channel Optical Incremental Encoder Modules 100 CPR to 1000 CPR. Description.

Functional description of BSD-01v2 Module

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

AS5x40/AS5x45. User Manual AS5x40/AS5x45-AB-v bit Rotary Position Sensor with Digital Angle (Interface), ABI, UVW and PWM output

JR12 Jam Nut Mount Optical Encoder

AEDA-3200-Txx Series Ultra Miniature, High Resolution Incremental Encoders

Multiturn absolute encoder

What is an ENCODER. An electronic component that generates an ON and OFF output signal periodically.

Position Sensors. The Potentiometer.

Absolute multi-turn hollow shaft encoder BOMH Dignalizer SSI

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

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

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

12mm Rotary Encoder with LED. Pulse 24 / 360. Insulation Resistance (min) Operating Speed (RPM)

Chapter 7: Instrumentation systems

MTL rotary encoders are all based on space-saving design and available in many types from ultra-small types to high-resolution products.

PEOPLE IN CONTROL OF MOTION

Feedback Devices. By John Mazurkiewicz. Baldor Electric

Agilent AEDA-3200-Txx Series Ultra Miniature, High Resolution Incremental Encoders

Functional description of BSD-01 Module. Features

A MORON'S GUIDE TO TIMER/COUNTERS v2.2. by

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

Data Sheet. AEAT-601B Incremental Magnetic Encoder. Description. Features. Exploded View. Applications

A software solution for mechanical change measurement through virtual instrumentation

Sensors and Sensing Motors, Encoders and Motor Control

Multiturn absolute encoder

Express Delivery. Axial. Connection

DC Geared Motor with Encoder MO-SPG-30E-XXXK

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

Multiturn absolute encoder

MT6801 Magnetic Rotary Encoder IC

Allen-Bradley. Using the 1756-MO2AE with the TR Encoder (Cat. No ) Application Note

Enumerative Combinatoric Algorithms. Gray code

The World of Motion Control

Embedded Hardware Design Lab4

RE29 Series. Ultra Slimline Rotary Encoder with Push Switch ( ) Outline. Features. Specifications. Output Waveform

Material: Weight: Bearing Life: Shaft Speed: Starting Torque: Mass Moment of Inertia: Shaft Loads:

MT6804 Magnetic Rotary Encoder IC

Mars Rover: System Block Diagram. November 19, By: Dan Dunn Colin Shea Eric Spiller. Advisors: Dr. Huggins Dr. Malinowski Mr.

MOBILE ROBOT LOCALIZATION with POSITION CONTROL

Magnetic absolute multi-turn hollow shaft encoder BMMH MAGRES SSI

Categories of Robots and their Hardware Components. Click to add Text Martin Jagersand

5. Experiment s title: The Optical Tachogenerator AMEM 211

Computer Numeric Control

ABSOLUTE MULTI-TURN ENCODER HMT25

Encoder. Switches. Series Size SMD

User Interface Engineering FS 2013

Application Note Using MagAlpha Devices to Replace Optical Encoders

Incremental Rotary Encoder E6B2

USB-MC USB Motion Controller

Incremental encoders With blind or through hollow shaft pulses per revolution programmable

Absolute encoders - SSI Solid shaft with clamping or synchro flange Optical multiturn encoders up to 14 bit ST / 16 bit MT

EECS 461, Winter 2009, Problem Set 2 1

Incremental encoders With blind or through hollow shaft pulses per revolution programmable

Data Sheet. AEDT-9340 Series High Temperature 115 C 1250/2500 CPR 6-Channel Commutation Encoder. Description. Features.

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

Encoder - Absolut 2RMHF-SSI

(Refer Slide Time: 00:50)

Data Sheet. AEDx-8xxx-xxx 2- or 3-Channel Incremental Encoder Kit with Codewheel. Description. Features. Assembly View. Housing.

Stepping motor controlling apparatus

Data Sheet. HEDS-9710, HEDS-9711 Small Optical Encoder Modules 360 Ipi Analog Current Output. Features. Description. Block Diagram.

MSK4310 Demonstration


MODEL S15 Incremental Optical Rotary Encoder

Technical data. General specifications. Linearity error ± 0.1 Electrical specifications Operating voltage U B

Mechatronics Project Report

Error 400. SWF Encoders are Rotary Incremental types, the Encoder provides the information of the direction of the Main shaft.

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Data Sheet. AEAT-6600-T16 10 to16-bit Programmable Angular Magnetic Encoder IC. Description. Features. Specifications.

Gurley Model HR2A High-resolution Interpolator. High resolution - Industrial ruggedness

Absolute encoders - SSI

DATASHEET ABSOLUTE MAGNETIC ROTARY ENCODER SSI

Optical encoder MEC22 HR

Interfacing dspace to the Quanser Rotary Series of Experiments (SRV02ET)

Software User Manual

Technical data. General specifications V DC No-load supply current I 0. typ. 50 ma Power consumption P 0

Absolute encoders - analog Blind hollow shaft ø12 mm Magnetic single- or multiturn encoders 12 bit ST / 16 bit MT

EE 109 Midterm Review

Data Sheet. AEDS-9240 Series 360/720 CPR Commutation Encoder Module. Features. Description. Applications

Automatic Control System

EM2. Transmissive Optical Encoder Module Page 1 of 7. Description. Features

Transcription:

Embedded Systems and Software Rotary Pulse Generators Slide 1

What Is An RPG? RPG = Rocket Propelled Grenade RPG = Rotary Pulse Generator Slide 2

Rotary Encoders Switch Switch Output Quadrature output Slide 3

Rotary Encoder Applications Consumer Electronics User Interfaces Slide 4

Rotary Encoder Applications Multi-axis Robot Arms From Analog-Digital Conversion Handbook, Analog Devices, 3 rd Edition. Prentice Hall, 1986. Slide 5

Rotary Encoders Optical Encoders From Analog-Digital Conversion Handbook, Analog Devices, 3 rd Edition. Prentice Hall, 1986. Slide 6

Rotary Encoders Optical Encoders From Analog-Digital Conversion Handbook, Analog Devices, 3 rd Edition. Prentice Hall, 1986. Slide 7

Simple Rotary Encoder Internals c Slide 8

Simple Rotary Encoder Internals Both switches closed Both switched open, normally at detent Slide 9

Electrical Connections Test circuit, from the data sheet Pullup resistors Low-pass filter Low-pass filter Remember contact bounce? Slide 10

Terminology 90 Phase shift quadrature output 1-cycle, corresponds to a turn from one click/detent to another Number of pulses per revolution depends on particular device. Common numbers are 4, 6, and12, but some has as many as 6,000 ($$$) Slide 11

Panasonic EVE-GA1F2012B Encoder Cost: ~ $0.70 12 detents, positions What is a detent? Data sheet does not explicitly specifies maximum rpm, but implies that it is 60 A C B Quadrature output Slide 12

Opening Up An Encoder Inside the top of the rotary encoder case is a metal disc spring (also called a spring washer) with small raised areas. The disc of the encoder shaft is impressed with ridges that rub against the bumps in the spring to make clicking sounds as the shaft is turned. Credits: www.robotroom.com Slide 13

Opening Up An Encoder Credits: www.robotroom.com Slide 14

Signals with pull up resistors, and single detent-detent CW turn Slide 15

EVE-GA1F2012B Timing Diagram From the datasheet = 1 revolution/sec Note Slide 16

EVE-GA1F2012B Timing Diagram Note at detent steady point, both switches are open (and output pulled high), and the pulse width depends on how fast the RPG is turned. User is turning RPG slow User is turning RPG faster Slide 17

EVE-GA1F2012B Timing Diagram Note at detent steady point, both switches are open (and output pulled high), and the pulse width depends on how fast the RPG is turned. Detend Positions Slide 18

EVE-GA1F2012B Timing Diagram Note that between detents, both switches are open or off, and the pulse width depends on how fast the RPG is turned. Detend Positions Slide 19

EVE-GA1F2012B Specifications Contacts may bounce during transitions. This can cause erroneous readings Slide 20

Electrical Connections Test circuit, from the data sheet Pullup resistors Low-pass filter Low-pass filter Remember contact bounce? Slide 21

Review: Gray-Code The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit. Dec Binary Gray 0 000 000 1 001 001 2 010 011 3 011 010 4 100 110 5 101 111 6 110 101 7 111 100 Slide 22

Gray-Code Output AB 01 Slide 23

Gray-Code Output AB 00 Slide 24

Gray-Code Output AB 10 Slide 25

Gray-Code Output AB 11 Slide 26

Gray-Code Output AB 01 Cycle starts again Slide 27

Gray-Code Output AB 01 00 10 11 Gray-code sequence, repeats 12 times per revolution for the EVE-GA1F2012B encoder used in Lab 3 Slide 28

Reading Encoder Output A B How fast should we read the encoder outputs so that we don t miss a transition? Answer: 5 ms if we sample at A and wait longer than B, we will miss a transition Slide 29

Possible RPG Connection to ATtiny45... cbi DDRB,0 cbi DDRB,1... SBIS PINB,0... This instruction tests a single bit in an I/O register and skips the next instruction if the bit is set. For input use PINB, not PORTB Rotary encoder Slide 30

Detecting the Direction of Rotation Clockwise (positive) rotation pattern 00 01 11 10 00 Counter-clockwise (negative) rotation pattern 00 10 11 01 00 Slide 31

Detecting the Direction of Rotation Clockwise (positive) rotation pattern 00 01 11 10 00 = = = = Counter-clockwise (negative) rotation pattern = = = = 00 10 11 01 00 Slide 32

Slide 33