Phidgets 1063 Product Manual Download Page 19

19

1063_0_Product_Manual - October 27, 2010 2:54 PM

Isolating a Digital Input with an Optocoupler

When driving current through the LED, the Digital Input will 

report TRUE.  The amount of current required will depend 

on the optocoupler used.  Design to sink at least 280µA to 

cause the digital input to report TRUE, and less than 190µA 

to report FALSE.

Detecting an external Voltage with an NPN Transistor

This circuit can be used to measure if a battery is connected, or if 12V 

(for example) is on a wire.
By designing to have Collector-Emitter current > 280µA, the digital 

input will report TRUE. 

Using a Capacitive or Inductive Proximity Switch

Capacitive proximity switches can detect the presence of nearby 

non-metallic objects, whereas inductive proximity switches 

can detect only the presence of metallic objects.  To properly 

interface one of these proximity switches to the digital inputs, a 

3-wire proximity switch is required, as well as an external power 

supply.
We have checked the following switch from Automation Direct 

to verify that it works with the Digital Inputs.  Similar capacitive 

or inductive proximity switches from other manufacturers should 

work just as well.

Manufacturer

Web Page

Capacitive Part No Inductive Part No

Automation Direct

www.automationdirect.com

CT1 Series

AM1 Series

100nF

15K

15K

+5V

+5V

INPUT

GROUND

INPUT

GROUND

USER

SW

IT

C

H

W iring  a  switch  to  a  Digital  Input

Phidget

  Digital

Input  x1

APPLICATION

Monitoring  the  position  of

  a  Relay

K 1

FSR

Isolating  a  Digital  Input  w

ith  an  Optocoupler

Phidget

Digital 

Input

Closing  switch  causes  digital  input  to  report  TRUE

Detail  of  Digital  Input

USER

APPLICATION

Relay   contact  causes  Digital  Input  to  report  TRUE

Current  through  LED  causes  Digital  Input  to  report  TRUE

USER

Using  an  FSR  as  a  switch

APPLICATION

FSR  Resistance  f alling  below  3.75k  Ohms  causes  Digital  Input  to  go  TRUE

FSR  Resistance  rising  above  75k  Ohms  causes  Digital  Input  to  go  FALSE

This  design  can  be  used  with  any  variable  resistance  sensor  -  CDS  Photocells.

Q1

Detecting  an  external  Voltage  with  an  NPN  Transistor

Collector-Emitter  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Collector-Emitter  Current  <  67uA  guarantees  Digital  Input  to  report  FALSE

Detecting  an  external  Voltage  with  an  N-Channel  MOSFET

1K

R1

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

The  resistor  on  the  Gate  is  not  required  f

or  it  to  f

unction,  but  is  a  good  idea.

Be  sure  not  to  exceed  VGS  of    the  mosfet.

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

Actual  Voltage  Required  to  switch  is  dependent  on  VGS  required  to  turn  on  M

OSFET

USER

APPLICATION

USER

APPLICATION

USER

APPLICATION

VS1

10K

R1

VS1

1K

R1

VS1

U1

OptoCoupler

Q1

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

100nF

15K

15K

+5V

+5V

INPUT

GROUND

INPUT

GROUND

USER

SW

IT

C

H

W iring  a  switch  to  a  Digital  Input

Phidget

  Digital

Input  x1

APPLICATION

Monitoring  the  position  of

  a  Relay

K 1

FSR

Isolating  a  Digital  Input  w

ith  an  Optocoupler

Phidget

Digital 

Input

Closing  switch  causes  digital  input  to  report  TRUE

Detail  of  Digital  Input

USER

APPLICATION

Relay   contact  causes  Digital  Input  to  report  TRUE

Current  through  LED  causes  Digital  Input  to  report  TRUE

USER

Using  an  FSR  as  a  switch

APPLICATION

FSR  Resistance  f alling  below  3.75k  Ohms  causes  Digital  Input  to  go  TRUE

FSR  Resistance  rising  above  75k  Ohms  causes  Digital  Input  to  go  FALSE

This  design  can  be  used  with  any  variable  resistance  sensor  -  CDS  Photocells.

Q1

Detecting  an  external  Voltage  with  an  NPN  Transistor

Collector-Emitter  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Collector-Emitter  Current  <  67uA  guarantees  Digital  Input  to  report  FALSE

Detecting  an  external  Voltage  with  an  N-Channel  MOSFET

1K

R1

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

The  resistor  on  the  Gate  is  not  required  f

or  it  to  f

unction,  but  is  a  good  idea.

Be  sure  not  to  exceed  VGS  of    the  mosfet.

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

Actual  Voltage  Required  to  switch  is  dependent  on  VGS  required  to  turn  on  M

OSFET

USER

APPLICATION

USER

APPLICATION

USER

APPLICATION

VS1

10K

R1

VS1

1K

R1

VS1

U1

OptoCoupler

Q1

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

100nF

15K

15K

+5V

+5V

INPUT

GROUND

INPUT

GROUND

USER

SW

IT

C

H

W iring  a  switch  to  a  Digital  Input

Phidget

  Digital

Input  x1

APPLICATION

Monitoring  the  position  of

  a  Relay

K 1

FSR

Isolating  a  Digital  Input  w

ith  an  Optocoupler

Phidget

Digital 

Input

Closing  switch  causes  digital  input  to  report  TRUE

Detail  of  Digital  Input

USER

APPLICATION

Relay   contact  causes  Digital  Input  to  report  TRUE

Current  through  LED  causes  Digital  Input  to  report  TRUE

USER

Using  an  FSR  as  a  switch

APPLICATION

FSR  Resistance  f alling  below  3.75k  Ohms  causes  Digital  Input  to  go  TRUE

FSR  Resistance  rising  above  75k  Ohms  causes  Digital  Input  to  go  FALSE

This  design  can  be  used  with  any  variable  resistance  sensor  -  CDS  Photocells.

Q1

Detecting  an  external  Voltage  with  an  NPN  Transistor

Collector-Emitter  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Collector-Emitter  Current  <  67uA  guarantees  Digital  Input  to  report  FALSE

Detecting  an  external  Voltage  with  an  N-Channel  MOSFET

1K

R1

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

The  resistor  on  the  Gate  is  not  required  f

or  it  to  f

unction,  but  is  a  good  idea.

Be  sure  not  to  exceed  VGS  of    the  mosfet.

Drain-Source  Current  >  270uA  causes  Digital  Input  to  report  TRUE

Drain-Source  Current  <  67uA  guarantees  Digital  Input  to  report  TRUE

Actual  Voltage  Required  to  switch  is  dependent  on  VGS  required  to  turn  on  M

OSFET

USER

APPLICATION

USER

APPLICATION

USER

APPLICATION

VS1

10K

R1

VS1

1K

R1

VS1

U1

OptoCoupler

Q1

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

INPUT

GROUND

Phidget

Digital 

Input

USER

APPLICATION

INPUT

GROUND

Phidget

Digital 

Input

Q1

+10-30V

Connecting a 3-wire Capacitive or Inductive Proximity Switch

Proximity Switch

Summary of Contents for 1063

Page 1: ...Product Manual 1063 PhidgetStepper Bipolar 1 Motor ...

Page 2: ...Phidgets 1063 Product Manual For Board Revision 0 Phidgets Inc 2009 ...

Page 3: ...nux 8 If you are using Windows Mobile CE 5 0 or 6 0 9 Programming a Phidget 9 Architecture 9 Libraries 9 Programming Hints 9 Networking Phidgets 10 Documentation 10 Programming Manual 10 Getting Started Guides 10 API Guides 10 Code Samples 10 API for the PhidgetStepper Bipolar 1 Motor 10 Functions 12 Events 13 Technical Section 13 Introduction to Stepper Motors 13 How does the 1063 control Stepper...

Page 4: ...trol your motor 16 Continuous Rotation 17 Disabling the PhidgetStepperBipolar 17 Starting the motor 17 High Precision Applications 17 Synchronization of multiple motors 18 Digital Inputs 18 Using the Digital Inputs 20 Functional Block Diagram 20 Digital Input Hardware Filter 20 Digital Input Sampling Characteristics 21 Device Specifications 21 Product History 21 Support ...

Page 5: ...torque Includes 4 digital inputs which can be used to convey the state of push buttons limit switches relays logic levels etc Programming Environment Operating Systems Windows 2000 XP Vista 7 Windows CE Linux and Mac OS X Programming Languages APIs VB6 VB NET C NET C Flash 9 Flex Java LabVIEW Python Max MSP and Cocoa Examples Many example applications for all the operating systems and development ...

Page 6: ...lar stepper motor A length of wire When using a power supply with a barrel connector make sure that your power supply has center positive polarity You should have received A PhidgetStepperBipolar 1 Motor Controller Board A USB Cable Connecting all the pieces Testing Using Windows 2000 XP Vista Downloading the Phidgets drivers Make sure that you have the current version of the Phidget library insta...

Page 7: ...the Velocity Limit Use the Acceleration slider to increase or decrease the 5 acceleration Use the Current Limit slider to modify the current going through 6 the motor and affect torque When the motor has reached the position target a tick mark will 7 appear in the Stopped box Move the Current Position slider to change the position the device 8 is currently at To test the Digital input connect a wi...

Page 8: ...ave to be run as root or udev hotplug must be configured to give permissions when the Phidget is plugged in If you are using Windows Mobile CE 5 0 or 6 0 Go to www phidgets com Drivers Download x86 ARMV4I or MIPSII depending on the platform you are using Mini itx and ICOP systems will be x86 and most mobile devices including XScale based systems will run the ARMV4I The CE libraries are distributed...

Page 9: ... VBA Delphi and Labview The ActionScript 3 0 Library relies on a communication link with a PhidgetWebService see below ActionScript 3 0 is used in Flex and Flash 9 Programming Hints Every Phidget has a unique serial number this allows you to sort out which device is which at runtime Unlike USB devices which model themselves as a COM port you don t have to worry about where in the USB bus you plug ...

Page 10: ...samples written for your device Find the language you want to use and click on the magnifying glass besides Code Sample You will get a list of all the devices for which we wrote code samples in that language API for the PhidgetStepper Bipolar 1 Motor 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 c...

Page 11: ... the maximum speed that the 1063 can drive your motor at double VelocityMin int MotorIndex get VelocityMin is the minimum VelocityLimit the PhidgetStepper can accept In the case of the 1063 this will always return 0 Functionally it is the minimum speed that the 1063 can drive your motor at For very low speeds you can increment position inside a slow software based timing loop Note that if Velocity...

Page 12: ...ducing the current limit is often useful when the motor just has to hold a position Please review the section of the manual on determining an appropriate current limit CurrentLimit should be set explicitly before beginning to use the motor double CurrentMax int MotorIndex get Constant CurrentMax is the largest CurrentLimit value the PhidgetStepper can accept In the case of the 1063 this will alway...

Page 13: ...f the coils of wire inside the stepper motor to control the amount of current In fact the 1062 PhidgetStepper uses this simpler and cheaper method The 1063 uses high speed electronics and the magnetic field within the motor coils to control the current effectively reducing the voltage to what is required for your motor The PhidgetStepper Bipolar can be used with smaller steppers that are designed ...

Page 14: ...ipolar motor there is two wires one for each coil which are the center taps for each coil You will need to isolate which are the center tap wires and the corresponding wires for their coil These center taps are left unconnected to operate as a bipolar Let s assume our six wire stepper motor wires are colored as follows red green black white brown and yellow We measure the resistance between all wi...

Page 15: ...t to C 3 Choose one wire from the remaining pair 2 possibilities and connect to the wire from Step 3 not connected to 4 C The remaining wire from this pair is connected to D After trying each permutation engage the motor from software and try to rotate it Do not connect the pairs to 5 anything as if you were using a 6 wire stepper in bipolar mode If you attempt to use this algorithm build a table ...

Page 16: ... Step position is controlled in a graduating scale dependant upon the speed of the motor Up to 1016 1 16th steps second shaft angle is affected in 1 16th step increments 1024 1 16th steps second and higher shaft angle is affected in full step increments The position property always contains a count of 1 16th steps Maximum velocity is controlled in 1 16th steps second up to 32768 1 16th steps secon...

Page 17: ...n some holding torque while consuming less power Starting the motor When the steppers are first engaged from software the stepper motor likely will not be at the same state as the default output state of the controller This will cause the stepper to snap to the position asserted by the controller potentially moving by 2 full steps High Precision Applications Stepper motor precision is limited by t...

Page 18: ...ltage Required to sw itch is dependent on VG USER APPLICATION VS1 Q1 INPUT GROUND Phidget Digital Input 100nF 15K 15K 5V 5V NPUT GROUND Phidget Digital Input x1 Monitoring the position ofa Relay K 1 Isolating a Digital Input w ith an Optocoupler Detail of Digital Input USER APPLICATION Relay contact causes Digital Input to report TRUE Current through LED causes Digital Input to rep Using an FSR as...

Page 19: ...ith an NPN Transistor Collector Emitter Current 270uA causes Digital Input to report TRUE Collector Emitter Current 67uA guarantees Digital Input to report FALSE Drain Source Current 270uA causes Digital Input to report TRUE Drain Source Current 67uA guarantees Digital Input to report TRUE USER APPLICATION USER APPLICATION 10K R1 VS1 1K R1 VS1 U1 OptoCoupler INPUT GROUND Phidget Digital Input INPU...

Page 20: ...the digital input is guaranteed to be reported as true in software This makes the digital input much more sensitive to reporting TRUE state and makes it useful to watch for short events Any Digital Input True events of less than 1 5ms are never reported FSR USER APPLICATION FSR Resistance rising above 75k Ohms causes Digital Input This design can be used w ith any variable resistance sensor Q1 Col...

Page 21: ...000 1 16th steps second2 Acceleration Limit 1 020 000 1 16th steps second2 Maximum Top End Torque 1 000 oz in 2 5 amps Digital Input Update Rate 125 samples second Digital Input Pull Up Resistance 15K ohms Digital Input Recommended Wire Size 16 26 AWG Minimum Power Supply Voltage 9V Maximum Power Supply Voltage 30V Max Current Per Coil 2 5A USB Power Current Specification 100mA Product History Dat...

Reviews: