Products for USB Sensing and Control

Products for USB Sensing and Control

PhidgetEncoder

ID: 1052_0
This encoder can be used as a control dial for user input. The centre of the dial is a pushbutton and it connects directly to USB with the included cable.

Discontinued

Replaced by the 1057 - PhidgetEncoder HighSpeed.

The PhidgetEncoder is intended to be used as a human interface, not as a device to measure shaft speed of motors or pulleys. If you are looking for an encoder to measure shaft speed, have a look at the 1057 PhidgetEncoder HighSpeed.

The PhidgetEncoder uses a two-bit continuous rotation mechanical encoder with a built-in momentary-action pushbutton switch. It returns 80 counts for 360 degrees of rotation.

With it you can:

  • Detect changes in incremental and absolute position
  • Easily track these changes with respect to time.

Comes packaged with

Product Specifications

Board
API Object Name Encoder
Controlled By Encoder Interface
Electrical Properties
Count Rate Max 80 cycles/s
Current Consumption Max 20 mA
USB Speed Low Speed
Physical Properties
Operating Temperature Min 0 °C
Operating Temperature Max 70 °C

Software Objects

Device Object Name Channel
Encoder Dial Encoder 0
Dial Pushbutton DigitalInput 0

Documents

Code Samples

APILanguageOS
Encoder C Multiple Download
Encoder C# Windows Download
Encoder Java Multiple Download
Encoder JavaScript Any Download
Encoder Objective-C macOS Download
Encoder Python Multiple Download
Encoder Visual Basic .NET Windows Download
DigitalInput C Multiple Download
DigitalInput C# Windows Download
DigitalInput Java Multiple Download
DigitalInput JavaScript Any Download
DigitalInput Objective-C macOS Download
DigitalInput Python Multiple Download
DigitalInput Visual Basic .NET Windows Download

Product History

Date Board Revision Device Version Comment
January 20030100Product Release
July 2004 0110Protocol modified to allow multiple encoder input expansion
September 20110111Firmware optimized
January 2015 Product Discontinued.

Getting Started

Welcome to the 1052 user guide! In order to get started, make sure you have the following hardware on hand:


Next, you will need to connect the pieces:

1052 0 Connecting The Hardware.jpg
  1. Connect the PhidgetEncoder to your computer using the included USB cable.


Now that you have everything together, let's start using the 1052!

Using the 1052

Phidget Control Panel

In order to demonstrate the functionality of the 1052, the Phidget Control Panel running on a Windows machine will be used.


The Phidget Control Panel is available for use on both macOS and Windows machines. If you would like to follow along, first take a look at the getting started guide for your operating system:


Linux users can follow the getting started with Linux guide and continue reading here for more information about the 1052.

First Look

After plugging the 1052 into your computer and opening the Phidget Control Panel, you will see something like this:

1052 Panel.jpg


The Phidget Control Panel will list all connected Phidgets and associated objects, as well as the following information:

  • Serial number: allows you to differentiate between similar Phidgets.
  • Channel: allows you to differentiate between similar objects on a Phidget.
  • Version number: corresponds to the firmware version your Phidget is running. If your Phidget is listed in red, your firmware is out of date. Update the firmware by double-clicking the entry.


The Phidget Control Panel can also be used to test your device. Double-clicking on an object will open an example.

Encoder

Double-click on the Encoder object, labelled Encoder Input, in order to run the example:

1052 Encoder Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • Position Change: the number of ticks (or quadrature cycles) that have occurred since the last change event.
  • Time Change: the amount of time in milliseconds that has elapsed since the last change event.
  • Position: the total position in ticks relative to where the encoder was when the window was opened.
  • Index Position: the position where the index channel was last encountered. Some encoders do not support index, check your encoder's datasheet for more information.
  • Velocity: the average velocity in rotations per second. A CPR must be specified to enable this functionality.
  • Specify a counts per revolution (CPR) value to enable velocity calculation.

Digital Input

Double-click on the Digital Input object in order to run the example:

1052 DigitalInputBTN Example.jpg


General information about the selected object will be displayed at the top of the window. You can also experiment with the following functionality:

  • This is a button type device, therefore, it will be true when the button is pressed, and false in the default state.


Technical Details

If you want to learn more about encoders in general, check out the Encoder Primer.

Using Other Encoders

1052 0 Footprint Diagram.jpg

If you decide that the mounted encoder does not meet your requirements it is possible to use other two-bit mechanical encoders. Optical encoders with large counts per revolution should not be expected to work with this device. To change the encoder the user will have to carefully desolder and remove the existing encoder. However, if you attempt to remove the encoder the warranty willl be void and we can not offer technical support.

Since your new encoder may not have the exact same pin configuration, you should use wire to connect your new encoder to the appropriate pins on the PhidgetEncoder board. We have tested the following encoders, and found that they can be used as replacements:

Manufacturer Part Number Description
CTS 290UAA5F201B2 2-Bit 9mm 20CPR Encoder Detent w/MO SPST
CTS 290UAA5F201B1 2-Bit 9mm 20CPR Encoder Non-Detent w/MO SPST
CTS 288V232R161B2 2-Bit 16mm 16CPR Encoder Detent w/MO SPST

Note: Most of the above components can be bought at Digikey.

What to do Next

  • Software Overview - Find your preferred programming language here to learn how to write your own code with Phidgets!
  • General Phidget Programming - Read this general guide to the various aspects of programming with Phidgets. Learn how to log data into a spreadsheet, use Phidgets over the network, and much more.
  • Phidget22 API - The API is a universal library of all functions and definitions for programming with Phidgets. Just select your language and device and it'll give you a complete list of all properties, methods, events, and enumerations that are at your disposal.

Software Objects

Channel NameAPIChannel
Encoder Input Encoder 0
Digital Input DigitalInput 0

API


Back Forward
Print this API