Notice: This page contains information for the legacy Phidget21 Library. Phidget21 does not support VINT Phidgets, and will not support any new Phidgets. Phidget21 will be maintained until 2020. We recommend that new projects be developed against the Phidget22 Library.
1052 User Guide
|Go to this device's product page|
Checking the Contents
You should have received:
Connecting the Pieces
Connect the PhidgetEncoder board to the computer using the USB cable.
Testing Using Windows 2000 / XP / Vista / 7
Make sure you have the current version of the Phidget library installed on your PC. If you don't, follow these steps:
- Go to the Quick Downloads section on the Windows page
- Download and run the Phidget21 Installer (32-bit, or 64-bit, depending on your system)
- You should see the icon on the right hand corner of the Task Bar.
Running Phidgets Sample Program
Double clicking on the icon loads the Phidget Control Panel; we will use this program to ensure that your new Phidget works properly.
The source code for the Encoder-full sample program can be found in the quick downloads section on the C# Language Page. If you'd like to see examples in other languages, you can visit our Languages page.
Updating Device Firmware
If an entry in this list is red, it means the firmware for that device is out of date. Double click on the entry to be given the option of updating the firmware. If you choose not to update the firmware, you can still run the example for that device after refusing.
Double Click on the icon to activate the Phidget Control Panel and make sure that the Phidget Encoder is properly attached to your PC.
Testing Using Mac OS X
- Go to the Quick Downloads section on the Mac OS X page
- Download and run the Phidget OS X Installer
- Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane
- Make sure that the Phidget Encoder is properly attached.
- Double Click on Phidget Encoder in the Phidget Preference Pane to bring up the Encoder-full Sample program. This program will function in a similar way as the Windows version.
For a step-by-step guide on getting Phidgets running on Linux, check the Linux page.
Using Windows Mobile / CE 5.0 / CE 6.0
For a step-by-step guide on getting Phidgets running on Windows CE, check the Windows CE page.
If you want to learn more about encoders in general, check out the Encoder Primer.
Using Other Encoders
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.
For assistance on desoldering techniques we recommend using any search engine on the Internet. 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:
|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.
We document API Calls specific to this product in this section. Functions common to all Phidgets and functions not applicable to this device are not covered here. This section is deliberately generic. For calling conventions under a specific language, refer to the associated API manual in the Quick Downloads section for that language. For exact values, refer to the device specifications.
int InputCount() [get] : Constant
- Returns the number of digital inputs supported by this PhidgetEncoder. On the 1052, there is one digital input - the push button on the shaft of the encoder.
bool InputState (int EncoderIndex) [get]
- Returns the state of a particular digital input.
int EncoderCount() [get] : Constant
- Returns the number of encoders supported by this PhidgetEncoder. On the 1052, there is one encoder - the unit mounted on the board.
int Position(int EncoderIndex) [get,set]
- Returns/sets the position of an encoder. This is an absolute position as calcutated since the encoder was plugged in. Dividing position by the number of increments per revolution (80) will give the number of rotations the encoder has travelled. Position can be set, typically used when an encoder has reached an identifiable (through external means, such as a limit switch) home position. This call does not send information to the device, as an absolute position is maintained only in the library. After this call, position changes from the encoder will use the new value to calculate absolute position
OnDigitalInputChange(int InputIndex, bool State) [event]
- An event that is issued whenever the state of a digital input changes.
OnPositionChange(int EncoderIndex, int Time, int PositionChange) [event]
- An event that is issued whenever a change in encoder position occurs. This event returns the length of time that the change took (in milliseconds), and the amount of change (positive/negative encoder increments)
|Date||Board Revision||Device Version||Comment|
|January 2003||0||100||Product Release|
|July 2004||0||110||Protocol modified to allow multiple encoder input expansion|
|September 2011||0||111||Firmware optimized|
|January 2015||Product Discontinued.|