1061 User Guide

From Phidgets Support
Revision as of 14:55, 24 July 2012 by Mparadis (talk | contribs) (Created page with "Category:UserGuide Category:DELETE_ME_BEFORE_WE_GO_LIVE ==Getting Started== ===Checking the Contents=== {{UGbox| '''You should have received:''' * A PhidgetAdvancedS...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Getting Started

Checking the Contents

You should have received:

  • A PhidgetAdvancedServo 8-Motor
  • A Mini-USB Cable

In order to test your new Phidget you will also need:

  • Some RC Servo Motors
  • A 6 - 15V DC Power Supply (if it's a barrel connector it should have center positive polarity)

Connecting the Pieces

  1. Connect the RC Servo Motors to the PhidgetAdvancedServo.
  2. Plug in a power supply using the barrel connector.
  3. You can also connect a power supply to the Terminal Block for high-current applications. Be sure to observe correct polarity.
  4. Connect the PhidgetAdvancedServo to your computer using the USB cable.

1061 0 Connecting The Hardware.jpg

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:

  1. Go to the Quick Downloads section on the Windows page
  2. Download and run the Phidget21 Installer (32-bit, or 64-bit, depending on your system)
  3. You should see the Ph.jpg icon on the right hand corner of the Task Bar.

Running Phidgets Sample Program

Double clicking on the Ph.jpg icon loads the Phidget Control Panel; we will use this program to ensure that your new Phidget works properly.

The source code for the AdvancedServo-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 Ph.jpg icon to activate the Phidget Control Panel and make sure that the Phidget Advanced Servo Controller 8-Motor is properly attached to your PC.

1061 0 Control Panel Screen.jpg
  1. Double click on Phidget Advanced Servo Controller 8-Motor in the Phidget Control Panel to bring up AdvancedServo-full and check that the box labelled Attached contains the word True.
  2. Select a connected servo. In this example, a servo is connected at position 0.
  3. Select your servo type. If your servo is not in the list, select “default”.
  4. Use the Velocity slider to set the velocity limit. The servo will try to accelerate to this point during motion.
  5. Use the Acceleration slider to set the acceleration.
  6. Use the Min/Max Position slider to set the position range. It can prevent the servo from trying to go beyond its actual range of motion.
  7. Check the Engaged box to power the servo. If the servo is not already the target position, it should begin to move.
  8. Move the Position slider to set a target position. The servo will turn until its actual position equals the target position. If Speed Ramping is enabled, the servo will move using the user set acceleration and velocity.
  9. When the servo has reached the target position, a tick mark will appear in the Stopped box.
  10. These boxes report the controller’s internally calculated position and velocity of the servo, as well as current consumed in amps.
1061 0 Motor Control Screen.jpg

Testing Using Mac OS X

  1. Go to the Quick Downloads section on the Mac OS X page
  2. Download and run the Phidget OS X Installer
  3. Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane
  4. Make sure that the Phidget Advanced Servo Controller 8-Motor is properly attached.
  5. Double Click on Phidget Advanced Servo Controller 8-Motor in the Phidget Preference Pane to bring up the AdvancedServo-full Sample program. This program will function in a similar way as the Windows version.

Using Linux

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

Template:UGce

Technical Details

API

Template:UGapih

Data Structures

enum Phidget_ServoType {

PHIDGET_SERVO_DEFAULT = 1,
PHIDGET_SERVO_RAW_us_MODE,
PHIDGET_SERVO_HITEC_HS322HD,
PHIDGET_SERVO_HITEC_HS5245MG,
PHIDGET_SERVO_HITEC_805BB,
PHIDGET_SERVO_HITEC_HS422,
PHIDGET_SERVO_TOWERPRO_MG90,
PHIDGET_SERVO_HITEC_HS1425CR,
PHIDGET_SERVO_HITEC_HS785HB,
PHIDGET_SERVO_HITEC_HS485HB,
PHIDGET_SERVO_HITEC_HS645MG,
PHIDGET_SERVO_HITEC_HS815BB,
PHIDGET_SERVO_USER_DEFINED

}

Used with the ServoType [get,set] functions. These are servos that have been quantified by Phidget Inc. for your convenience. The Default setting is included for historical reasons, so that the API will be backwards compatible by default. RAW_us_MODE is used for quantifying new servos, or simply when a microsecond based interface makes more sense then a degree based abstraction. USER_DEFINED should never be set directly with ServoType - this is returned when a custom servo type has been defined with setServoParameters.

Functions

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi

Template:UGapi Template:UGapi

Events

Template:UGapi

Product History

Template:UGhist Template:UGrow