• UK
  • US
  • Français
  • Deutsch
  • Español (precios €)
  • Portugal
  • Polski
  • 日本人
  • 中國傳統
  • 简化中国

CED 5005 Shaft encoder interface


The CED5005 Shaft encoder interface connects the output of a standard quadrature shaft encoder to a PC USB port. All operational functions of the interface are set under program control via the USB port.

The CED5005 supplies 5V power to the shaft encoder, and expects to receive TTL-compatible A and B quadrature signals and a positive-true TTL index signal. The quadrature signals control an up-down counter that holds a value representing the shaft angle. The counter is reset to zero each time it receives the index signal. This arrangement is independent of the counts per revolution, which is determined by the shaft encoder. A 360ppr encoder gives counts in degrees.

A hardware-generated TTL index output from the CED5005 becomes active when the rotating shaft passes through a program-specified angle relative to the index. This index output can be used to generate a reference marker for peri-trigger data acquisition systems.

The interface box has a slide switch that interchanges the A and B quadrature signals going to the decoder. This has the same effect as reversing direction of the shaft, so can be used to define which direction of physical rotation causes an increasing rotation count in the interface.

Main functions

The CED5005 operates using SPI protocol running at a nominal 1MHz bit rate. It permits reading of the shaft rotational angle at any time, but at high shaft rotational rates the SPI reported angle can lag the actual shaft angle due to the delay time in the SPI data transfers.

The CED5005 generates a flag (index) pulse when the encoder output passes through a program-specified angle relative to the encoder's index point. This flag output is not subject to any SPI delay. Instead of simply an angle comparison output, the flag signal can be programmed to be any combination of the angle comparator, the index, the counter carry (in a forward direction) or the counter borrow (when reversing).

Although the encoder is expected to be mounted so that, under normal “forward” rotation, its outputs have the A signal leading the B signal, the interface correctly tracks reverse motion, where B leads A. The switch on the encoder case allows the user to set which is the nominal forward and reverse direction.

Power on zeroing

After initial power-up and program load of the operating configuration, it is necessary to ensure that, before operational use, there is at least one whole shaft revolution in the nominal forward direction in order that the index pulse can be guaranteed to zero the angle counter.

Encoder connector

The following table gives the encoder connections on the 9-pin D socket:

SignalPinComment
Channel A45V TTL
Channel B35V TTL
Index25V TTL
+5 Power5From USB
Ground1, 9

Additional documentation

The CED5005 uses an FTDI C232HM USB-SPI adaptor, which houses an FT232H device in the USB plug of the interface. This adaptor is a generalised controller unit configured for SPI operation through a Windows driver and a C program library.

The CED5005 encoder interface uses an LSI LS7366R quadrature counter to track the quadrature signals from the shaft encoder. It connects via SPI to the USB-SPI adaptor, and has several control registers that need to be set up for the intended mode of operation. Links to the relevant FTDI documentation and the LSI/CSI LS7366R data sheet are given at the end of this section.

The CED5005 is supplied with the source of a simple C++ program to demonstrate basic operation. The demonstration program is expected to be run using Microsoft Visual Studio, which available as a free download from the Microsoft web site.

£550

LSI LS7366R quadrature counter:

https://lsicsi.com/datasheets/LS7366R.pdf

Cambridge Electronic Design Limited

Registrado em Inglaterra: 00972132

Escritório registrado:

  • Cambridge Electronic Design Limited,
  • Technical Centre,
  • 139 Cambridge Road,
  • Milton,
  • Cambridge CB24 6AZ
  • ENGLAND.

VAT: GB 214 2617 96

Número de registo do produtor: WEE/BD0050TZ

Termos e Condições de Venda

Para os nossos clientes nos EUA, podemos fornecer o formulário fiscal W-8BEN, que identifica-nos como uma empresa do Reino Unido.

DUNS: 219151016
CAGE/NCAGE: KB797
NAICS: 423490
Códigos de mercadorias
Hardware: 84716070
Software: 85235190
×

Por email:

info@ced.co.uk

Por correio:
  • Cambridge Electronic Design Limited,
  • Technical Centre,
  • 139 Cambridge Road,
  • Milton,
  • Cambridge CB24 6AZ
  • ENGLAND.
Por telefone:

(Int.+44) (0)1223 420186

Da América do Norte (ligação gratuita):

1 800 345 7794

×