222fg REV HD HEX MOTOR ENCODER. October 10, HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 1

Similar documents
Three Channel Optical Incremental Encoder Modules Technical Data

Optical Encoders. K. Craig 1. Actuators & Sensors in Mechatronics. Optical Encoders

The quadrature signals and the index pulse are accessed through five inch square pins located on 0.1 inch centers.

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

X8 Option 2 - Technology

Servo Info and Centering

10 tips for servos and steppers a simple guide

Bourns Rotary Encoders. Short Form Brochure Revision 2

QR12 (1.22 ) Diameter Optical Encoder

Digital vs. Analogue Control Systems

DC Motor with Shaft Encoder

ServoOne. Specification. Option 2 - Technology. x 11. x 8 X 8. x 10. x 9. x 7. x 6 TTL Encoder / TTL Encoder simulation

Description. Dimensions. Features. precision works better

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Tips For Selecting DC Motors For Your Mobile Robot

Agilent AEDB-9140 Series Three Channel Optical Incremental Encoder Modules with Codewheel, 100 CPR to 500 CPR Data Sheet

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

DC Motor control Reversing

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

PIC Application Notes

MDC Series

Series 7500 Torque Sensor

Chen. Vibration Motor. Application note

Motor Fundamentals. DC Motor

FRC WPI Robotics Library Overview

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT

Setting up the DeskCNC controller.

Using the Motor Controller

Contactless Encoder RI360P0-QR24M0-INCRX2-H1181

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

Sense it! Connect it! Bus it! Solve it! EncoderS

Encoders. the incremental encoders format such as relective optical technology, transmissive optical technology

NECOCAR. International CATIA Project

ABB Drives. User s Manual HTL Encoder Interface FEN-31

Understanding the Alternator

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

PHD User Manual. Table of Contents

UNIT 1 INTRODUCTION TO NC MACHINE TOOLS

Introduction to Linear Actuators: Precision Linear Motion Accomplished Easily and Economically

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Technical definitions of A to Z

How To Power A Schen

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

MILE Encoder for EC 90 flat

APPENDIX. SureSERVO QUICK START GUIDE. In This Appendix... Quick Start for SureServo Drives...A 2. Tuning Quick Start for SureServo Drives...

Linear Motion vs. Rotational Motion

Motors and Generators

PID Control. Proportional Integral Derivative (PID) Control. Matrix Multimedia 2011 MX009 - PID Control. by Ben Rowland, April 2011

Chapter 8. Digital and Analog Interfacing Methods

Allen-Bradley/Rockwell

CHAPTER 11: Flip Flops

Mercury TM 1500P PCB-Mount Digital Encoders

Mobile Satellite Solutions. A WiWorld Partner SATELLITE TV ANTENNA CONTROLLER RFM-1000/1100 TECHNICAL MANUAL STOW SEARCH

Model 201 Wiegand Touchpad Reader Installation Guide

THE LUCAS C40 DYNAMO & ITS ARMATURE.

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

Data Sheet. HEDM-55xx/560x & HEDS-55xx/56xx Quick Assembly Two and Three Channel Optical Encoders. Features. Description.

Transmitter Interface Program

Digi-Motor Installation Guide

Data Sheet. AEDR-8000 Series Reflective Surface Mount Optical Encoder. Description. Features. Applications

Technical data. General specifications. Signal voltage V DC Signal duration. 1 s Input 2. Signal voltage. 1 s Analog output.

AMZ-FX Guitar effects. (2007) Mosfet Body Diodes. Accessed 22/12/09.

B Robo Claw 2 Channel 5A Motor Controller Data Sheet

TOYOTA ELECTRONIC CONTROL TRANSMISSION

D.C. Motors. Products and specifications subject to change without notice.

Autonomous Mobile Robot-I

Borstlösa DC-motorer. Promoco Scandinavia AB

SYNCHRONOUS MACHINES

Pulse Width Modulation Applications

Points Position Indicator (PPI1) for Points Motors with Common Ground

Speedsensors for Railways Applications

Harmonic Drive acutator P r e c i s i o n G e a r i n g & M o t i o n C o n t r o l

Field and Service Robotics. Odometry sensors

TETRIX Getting Started Guide. Dispenser Building Guide. Step 1. Parts Needed. Tip. 1x Single-Servo Motor Bracket. 1x 96 mm Channel

An overview of Computerised Numeric Control (C.N.C.) and Programmable Logic Control (P.L.C.) in machine automation

Speed Controller 4-Quadrant PWM configurable via PC

Absolute Rotary Encoder E6CP

Tool Turrets and Tool Discs

DRTS 33. The new generation of advanced test equipments for Relays, Energy meters, Transducers and Power quality meters

Introduction. Drenth Motorsport Gearboxes Fleuweweg AG Enter The Netherlands Phone: +31 (0) Fax: +31 (0)

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Delivering solutions. Since 1985 Eltra is present in the market of encoders and industrial automation both nationally and in foreign Countries.

Software Manual RS232 Laser Merge Module. Document # SU Rev A

Bourns Model PDB182-GTRB Blend-Balance Guitar Potentiometers

HEDS-9000/9100 Two Channel Optical Incremental Encoder Modules. Features. Applications

BUILD A REVOLUTE COORDINATE ARM

Electric Motors and Drives

BLWR23MDA Series. 24V, 15A Brushless Controller / Motor. User s Guide. 910 East Orangefair Lane, Anaheim, CA info@anaheimautomation.

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

Micrio WS1 Replacement Wind Speed Sensor and WC1 Replacement Wind Compass Sensor for Raymarine ST50 and ST60 Wind Instruments. Rev 4.

THREE-PHASE INDUCTION MOTOR March 2007

n Measuring range 0... ± 0,02 Nm to 0... ± 1000 Nm n Low linearity deviation of ± 0.05 % F.S. n Intelligent operating state indicator

Material: Weight: Bearing Life: Shaft Loads: Operating Temp.: Storage Temp.: Shock: Vibration: Bump: Humidity: Enclosure Rating: Cable: Cable Glands:

Basic of servomotor control

APEX Robot Rabbit. Tel:

Experiment 3: Magnetic Fields of a Bar Magnet and Helmholtz Coil

INTRODUCTION TO SERIAL ARM

Data Sheet. Reflective Surface Mount Optical Encoder. AEDR-8300 Series Encoders. Description. Features. Applications

Transcription:

222fg REV-41-1300 HD HEX MOTOR ENCODER October 10, 2016 HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 1

TABLE OF CONTENTS 1 ENCODER BASICS... 3 1.1 WHAT IS AN ENCODER?... 3 1.2 MAGNETIC QUADRATURE ENCODERS... 4 1.3 ENCODER TECHNICAL SPECIFICATION DEFINITIONS... 5 2 REV HD HEX MOTOR ENCODER... 6 HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 2

TL;DR Motor encoders are an electrical sensor that measure the rotation and direction of the output shaft of the motor. There are many kinds of encoders, but the one used in the REV HD Hex Motor is a Magnetic Quadrature Encoder. The REV HD Hex Motor has a 1:40 gearbox and the encoder outputs 2240 counts per rotation of the output shaft. 1 ENCODER BASICS 1.1 WHAT IS AN ENCODER? An encoder is anything (device, software, person) that converts information from one format (code) into another. Some examples of encoding include: A transducer, like a speaker, which converts an electrical signal into music Software which encodes an audio file into an mp3 to decrease file size A stenographer (court reporter) takes courtroom dialog and converts it into a written record This document is about rotary encoders which are electro-mechanical devices which convert the angular position of a shaft, like on a motor, to an electronic signal. These signals can be fed into a microcontroller, which controls all robot functions, and then used to provide real world data to make better programming decisions. There are two main types of encoders: absolute and relative. Absolute encoders return the actual angle of the rotation (e.g. 30 ). Absolute encoders maintain position information if the power is removed, and position data is immediately available when power is reapplied with no rotation needed to read the current angle. The relationship between the encoder value and the motor shaft is set when assembled and will always stay the same. Commonly these encoders use a specially printed pattern disk which are read and converted to a known angle. Generally, absolute encoders are easier to use when programing, but they are more complicated to manufacture and are therefore larger or more expensive. Relative encoders, which are also referred to as incremental encoders, provide information about the motion of the shaft (e.g. forward at 5 RPM), and only provide data while the shaft is rotating. One way to remember this is that relative encoders return information on the incremental change of the motor output shaft. Relative encoders only provide pulses as the motor turns, and interpreting these pulses into useful information must be done externally. A relative encoder does not know what position it is in at start-up, but it is possible to create a calibration program that must be run at every start-up to obtain a reference point to calculate an angle from. Encoders measure a real world change (shaft rotation) and convert it to an electrical signal. Two common ways to do this are using optical or magnetic feedback: Optical encoders have a disk with a series of either slots or a reflective pattern around the outside which is attached to the motor shaft. A light shines on or through the disk where the light can pass through or reflect onto a photodiode (device which produces an electric signal when light shines on it). These sensors can be very light and compact, but can be very sensitive to anything that might interfere with the light reaching the photodiode. Finger prints on a reflective disk, or dust from a dirty environment can interfere. Magnetic encoders have a magnet attached to the shaft of a motor and use Hall effect sensors to detect the changing magnetic field as the shaft rotates. Magnetic encoders are able to operate in harsh or dirty environments. HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 3

1.2 MAGNETIC QUADRATURE ENCODERS A 12-pole magnetic quadrature encoder installed on the rear of a brushed DC motor is depicted in Figure 1. The output shaft of the motor extends from the rear of the motor case and a multi-pole magnet is attached to the shaft. There are two Hall effect sensors, marked A and B, mounted next to the magnet at 90 to each other. As each of the 12 poles passes across one of the Hall effect sensors, it creates a change in the magnetic field causing the sensor to generate a measurable voltage signal. Figure 1: Typical Encoder Configuration Installed on the Rear of a Motor Quadrature encoders are a specific type of relative encoder that have four different output states. If the root quad-, means four, but there are only two sensors in this encoder, where does the name come from? The output from the two Hall effect sensors are called Channel A and Channel B respectively; an example of the output is shown in Figure 2. In a single period (T), defined as the duration of time of one complete cycle in a repeating pattern, the timing diagram has four distinct states (see a, b, c, and d below), hence a quadrature encoder. Figure 2: Clockwise Quadrature Encoder Output Timing Diagram The offset from Channel A to Cannel B is because the sensors are offset from each other by 90. As the motor rotates one sensor will see the change before the other. When the motor shaft rotates clockwise (CW), Channel A will lead (the edge will rise before) Channel B. When the motor spins counter clockwise (CCW) Channel A will lag (rise after) Channel B. If there was only one sensor it would still be possible to measure the number of rotations, but not to detect the direction of the motor. Note: This document uses the standard convention that Channel A leads Channel B while the motor is going clockwise; however, there are times when this will not hold true in real life. Different reduction gearboxes, or physically swapping the Channel A and Channel B encoder wires into the controller, can reverse the relationship between the channels. Keep this in mind when programming and troubleshooting your robot. HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 4

When the encoder is being read by a microcontroller, the two signals are compared to produce a count up pulse or count down pulse. These pulses are counted as steps forward (CW) or backwards (CCW). Using the specifications for the encoder being used, a count can be converted to degrees. This information can be used to drive a robot arm to a specific angle, or tell a robot to drive a certain distance. 1.3 ENCODER TECHNICAL SPECIFICATION DEFINITIONS Note: There is some conflicting terminology between encoder suppliers. This document defines one of the most commonly agreed upon set of terms, however be aware that when comparing between encoder specifications from different vendors terms may vary in meaning. Every time the output goes through all four distinct combinations of output signals, it s called a cycle (see a, b, c, and d in Figure 3). Encoders have a different cycles-per-revolution(cpr) based on the number of poles on the magnet used. The CPR is how many cycles are generated for one complete revolution of the encoder shaft. Figure 3: Encoder Cycle An example output from one complete rotation of a 14 CPR encoder is shown in Figure 4. A 14 CPR rotation encoder may also be referred to as having 14 rises on channel A. Encoders are mounted to the motor shaft, not the gearbox output shaft, so for a motor with a reduction gearbox attached this is less than one full output shaft rotation. Figure 4: Encoder Output for one Revolution of a 14 CPR Encoder One reason to use CPR to define an encoder, rather than the commonly used PPR (Pulses per Revolution) is that when the encoder signal is decoded by the microcontroller it is possible to do 1x, 2x, or 4x decoding. For 1x decoding the micro controller would only count the rising signal on a single channel, while for 4x decoding each rising or falling edge for both channels is measured as a count. Although 4x decoding is one of the most common methods, because it s based on how the electronics decode the signal from the encoder, and not on the encoder hardware itself, it is not an ideal method of defining the encoder hardware specifications. HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 5

If we assume 4x decoding when each cycle is interpreted, the microcontroller can read the four distinct outputs (a, b, c, and d) as individual steps. So for each CPR, the controller can read four counts/ticks. To calculate the number of counts per rotation of the encoder shaft: COUNTS PER ROTATION of the encoder shaft = CPR(Cycles per rotation) 4 The actual cycles per rotation of the output shaft of the motor is depending on the gearbox that s attached. COUNTS PER ROTATION of the output shaft = CPR(Cycles per rotation) 4 Reduction Further this can be calculated into the degrees per count. Assuming no additional reduction is added to the final stage of the motor output (i.e. direct drive) the number of degrees per count is calculated as: DEGREES PER COUNT = 360 degrees COUNTS PER ROTATION of the output shaft 2 REV HD HEX MOTOR ENCODER The REV HD Hex Motor (REV-41-1301) comes with a magnetic quadrature encoder already installed and an appropriate cable for connecting the sensor to the HiTechnic DC Motor Controller for TETRIX or the Modern Robotics Motor Controller. See Table 1 for relevant motor and encoder details. Table 1: HD Hex Motor (REV-41-1301) Encoder Specifications HD Hex Motor (REV-41-1301) Reduction 1:40 Cycles per Rotation of the Encoder Shaft 56 (14 Rises of Channel A) Counts per Rotation of the Output Shaft 2240 (560 Rises of Channel A) The HD Hex Motor Encoder has 2x the resolution as the AndyMark NeveRest Motor encoder. In Figure 5, the REV HD Hex and NeveRest motors (without gearboxes) were driven at low speed with the output shafts mechnaically locked together. In the plot, the NeveRest encoder output is in red and blue, while the HD Hex encoder output is in orange and gray. The period for the HD Hex encoder is half the length of the NeveRest, which means that the HD Hex will generate twice as many pulses for the same reduction gearbox in the same amount of rotation. Figure 5: Encoder Output Signal Measurement with Coupled Output Shafts HD Motor Encoder Guide Copyright 2016 REV Robotics, LLC 6