- Resource Categories
Duty Cycle & Phase Angle in Quadrature Sensors
What is Duty Cycle & Phase Angle in Quadrature Sensors?
Sensor Solutions digital pulsing Hall Effect sensors provide square wave outputs that can be connected to meters, PLCs, and other monitoring and controlling devices to resolve speed or count. Quadrature output sensors provide two outputs in a single package that are out of phase for the ability to resolve direction. This Application Note was created to define duty cycle and phase angle and explain how meters and controllers resolve speed and direction from the pulsing sensor output(s).
Definitions of Duty Cycle & Phase Angle
What is Duty Cycle?
When looking at the digital square wave output, the duty cycle is the percentage of time that the output is in the high state over the period of the square wave. The image below shows the formula for calculating the duty cycle as well as examples of 50% and 25% duty cycle pulse trains.
What is Phase Angle?
When looking at Quadrature Sensor Outputs, the phase angle is a measure of the offset between the two pulse trains. When the duty cycles are not both 50% the entire period needs to be considered in calculating the phase angle. The image below shows an examples of 90 degree phase angles with 50% duty cycles compared to 25% duty cycles.
To calculate Phase Angle the delay between the two pulses is measured relative to the period of the pulse. Sensor Solutions measures the delay from the center of the high pulse from channel A to the center of the high pulse from Channel B. The formula for calculating phase angle is shown below.
WHY DO DUTY CYCLE AND PHASE ANGLE MATTER?
Quadrature sensors are used in direction sensitive counting and speed measurement applications. Meters and control devices look at the two pulse trains to determine the direction of motion. Typically this is done by comparing either the falling or rising edges of the pulses, or comparing one edge against the output state of the other pulse.
IDEAL DUTY CYCLE AND PHASE ANGLE: The image below shows a 50% duty cycle with a phase angle of 90 degrees. With this configuration, regardless of where a direction change occurs, or how the controller is resolving direction, the relationship between the falling edges of the pulse ensures notification of direction change on the first pulse. Although this configuration is ideal, it is extremely difficult to achieve.
POOR DUTY CYCLE AND IDEAL PHASE ANGLE: The image below shows a 25% duty cycle with a phase angle of 90 degrees. With this configuration, regardless of where a direction change occurs, a controller resolving direction comparing the falling edges only will always recognize a direction change on the first pulse. However, a meter resolving direction by comparing the rising edge of Channel A to the output state of Channel B may not resolve direction change properly as Channel B is falling during the rise of Channel A.
IDEAL DUTY CYCLE AND POOR PHASE ANGLE: The image below shows a 50% duty cycle with a phase angle of 30 degrees. With this configuration, regardless of where a direction change occurs, a controller will resolve direction properly. However, as the phase angle goes further from 90 degrees, the closer the duty cycle needs to be to 50% to ensure a readable pulse train.
POOR DUTY CYCLE AND POOR PHASE ANGLE: In the real world, most sensor and target combinations will produce a duty cycle greater or less than 50% with a phase angle that is not exactly 90 degrees. The example below shows pulse trains that have both a poor duty cycle and a poor phase angle.
A controller may still resolve direction correctly, but dependent on the position of the tooth when rotation changes, it may not recognize the change in direction until the second tooth passes the sensor. If the meter is counting, this will cause the count to become inaccurate.
SELECTING THE CORRECT QUADRATURE SENSOR FOR YOUR TARGET:
Many manufacturers claim thier quadrature gear tooth detection sensor will work with any standard gear pitch. Although it is true they will provide two out of phase pulse trains, the answer is not that simple. Accurate detection of direction will be dependent on the size of the gear teeth, the distance between them, the distance between the sensing elements within the sensor, and the method the control system calculates direction.
For direction sensitive speed or count measurement from a gear, tone wheel, or other target with evenly spaced ferrous "teeth" use a True Zero Speed Quadrature Gear Tooth Sensor. Click here to open our Sensor Selection Wizard and build a sensor with the electrical output type and physical packaging that meets your control system requirements. The sensor you select will then be built, calibrated, and tested based on the pitch of your target gear.
For direction sensitive speed measurement from targets such as bolt heads, a single hole in a steel disc, or other non-evenly spaced ferrous targets a Self Calibrating Quadrature Gear tooth sensor is typically the best choice. Click here to open our Sensor Selection Wizard and build a sensor with the electrical output type and physical packaging that meets your control system requirements. The sensor you select will then be built and tested based on the pitch of your target gear.
For direction sensitive speed or count measurement from one or more magnets Sensor Solutions offers Quadrature Hall Switch sensors. Click here to open our Sensor Selection Wizard and build a sensor with the electrical output type and physical packaging that meets your control system requirements.
Sensor Solutions offers a variety of target magnets, including raw magnets, magnets mounted in bolt heads and clamping shaft collars that can be paired with our sensors for direction-sensitive speed or count measurement.
Contact a Sensor Solutions Application Engineer today for assistance in determining the best sensor and target combination for your application.
DESIGNING TARGETS FOR QUADRATURE SENSORS:
So, how do you design a target gear to produce a duty cycle near 50%? Although the logical thought is to have your "teeth" the same size as the gap between them, this is not the case. A magnetic field sensor will produce a pulse that is longer in length than the "tooth." Therefore to reach a 50% duty cycle the ideal relationship is a smaller tooth with a wider gap between them. Sensor Solutions offers another Application Note on Target Design, click here to open it.