Product Manual 1047 - PhidgetEncoder HighSpeed 4-Input
Phidgets 1047 - Product Manual For Board Revision 0 © Phidgets Inc.
Contents 5 Product Features 5 Programming Environment 5 Connection 6 Getting Started 6 Checking the Contents 6 Connecting all the pieces 6 Testing Using Windows 2000/XP/Vista 6 Downloading the Phidgets drivers 6 7 Running Phidgets Sample Program If you are using Mac OS X 8 If you are using Linux 8 If you are using Windows Mobile/CE 5.0 or 6.
14 Support
Product Features • Reads up to four encoders simultaneously • Ability to power down individual encoders • Returns up to 250,000 counts per second • Detects changes in incremental position • Easily tracks changes with respect to time • Accurately measures the time between encoder counts • High resolution time measured in microseconds • Can use the index signal to determine zero position or a complete revolution • 4 Digital Inputs for detecting the state of switches and sensors Programming Environment Operat
Getting Started Checking the Contents You should have received: • A PhidgetEncoder Highspeed 4-Input • A Mini-USB cable • Four 5-wire encoder cables In order to test your new Phidget you will also need: • An incremental encoder with quadrature output and known pinout • A piece of wire to test the digital input Connecting all the pieces 1. 2. Connect the encoder to the PhidgetEncoder Highspeed 4-Input board using one of the 5-wire cables.
Double Click on the icon to activate the Phidget Control Panel and make sure that the Phidget High Speed Encoder 4-Input is properly attached to your PC. 1. Double Click on Phidget High Speed Encoder 4-Input in the Phidget Control Panel to bring up the Encoder-full example* and check that the box labelled Attached contains the word True. 2. Make sure your encoder is connected to the Encoder-0 input and select encoder 0 from the dropdown menu. 3. Enable the encoder by checking the Enabled check box.
If you are using Linux There are no sample programs written for Linux. Go to www.phidgets.com >> Drivers Download Linux Source • Have a look at the readme file • Build Phidget21 The most popular programming languages in Linux are C/C++ and Java. Notes: Many Linux systems are now built with unsupported third party drivers. It may be necessary to uninstall these drivers for our libraries to work properly. Phidget21 for Linux is a user-space library.
Programming a Phidget Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices like sensors, motors, motor controllers, and interface boards. All you need to know is how to program. We have developed a complete set of Application Programming Interfaces (API) that are supported for Windows, Mac OS X, and Linux. When it comes to languages, we support VB6, VB.NET, C#.NET, C, C++, Flash 9, Flex, Java, LabVIEW, Python, Max/MSP, and Cocoa.
Documentation Programming Manual The Phidget Programming Manual documents the Phidgets software programming model in a language and device unspecific way, providing a general overview of the Phidgets API as a whole. You can find the manual at www. phidgets.com >> Programming. Getting Started Guides We have written Getting Started Guides for most of the languages that we support. If the manual exists for the language you want to use, this is the first manual you want to read.
int IndexPosition(int EncoderIndex) [get] Returns the index position of an enabled encoder. This will typically return the same value as Position(int EncoderIndex) except for on the event that an index has occurred, where it will return the exact position at which the encoder index was triggered. bool Enabled(int EncoderIndex) [get,set] Returns true if the requested encoder is enabled; returns false if the requested encoder is disabled.
Technical Section General The PhidgetEncoder Highspeed 4-Input can be used with a wide assortment of mechanical and optical encoders. The encoder should be of quadrature output type, indicating that there will be two quadrature output channels (usually labeled A and B) and a third output channel (only on some encoders) to signal when the index pin (a reference point for zero position or a complete revolution) has been reached.
with the 1047, and may only work initially, or not at all. If you have any doubts, please contact us. Most optical encoders have a push-pull output, and the pull-up resistor is irrelevant, but weak enough not cause problems. We have reviewed the following encoders, and found that they can be used with the PhidgetEncoder Highspeed 4-Input. This is not meant to be a comprehensive list but should be used as examples of the type of encoders that can be used with the 1047.
Digital Inputs Using the Digital Inputs Here are some circuit diagrams that illustrate how to connect various devices to the digital inputs on your Phidget. W iring a switch to a Digital Input Closing switch causes digital input to report TRUE W iring a switch to a Digital Input Closing switch causes digital report TRUE USER input toPhidget APPLICATION Wiring a switch to a Digital Input USER APPLICATION Phidget Digital Input INPUT SW I T C H Closing the switch causes the digital input to report TRUE.
Current through LED causes Digital Input to report TRUE Drain-Source Current > 270uA causes Digital Input to report TRUE Drain-Source Current < 67uA guarantees Digital Input to report TRUE Input INPUT 1K Phidget Digital Input USER APPLICATION Q1 R1 Isolating a Digital Input with an Optocoupler When driving current through the LED, the Digital Input will GROUND report TRUE. The amount of current required will depend on the optocoupler used.
Collector-Emitter Current > 270uA causes Digital Input to report TRUE Collector-Emitter Current < 67uA guarantees Digital Input to report FALSE FSR Resistance rising above 75k Ohms causes Digital Input This design can be used with any variable resistance sensor USER APPLICATION Phidget USER Using an FSR or other variable resistor Digitalas a switch APPLICATION Input Phidget Digital Input The digital inputs can be easily wired to use many variable resistors as switches.
Mechanical Drawing 1:1 scale Device Specifications Characteristic Value Encoder Maximum Count Rate 250,000 counts/second Internal Output Pull-Up Resistance 10 kilo Ohms Software Update Rate (typical) 8 milliseconds USB Update Rate 125 samples/second Time Resolution 1 µs Current Max Device Current Consumption (all channels enabled) 500 mA Min Device Current Consumption (all channels disabled) 30 mA Maximum Current Consumption per Encoder 200 mA Maximum Current Consumption for all Encoders
Product History Date JUne 2010 Board Revision Device Version 0 100 Comment Product Release Support • Call the support desk at 1.403.282.7335 8:00 AM to 5:00 PM Mountain Time (US & Canada) - GMT-07:00 or • E-mail us at: support@phidgets.