1056 User Guide: Difference between revisions

From Phidgets Support
Line 191: Line 191:
{{UGrow|May 2011|0|102|getLabelString fixed for labels longer than 7 characters}}
{{UGrow|May 2011|0|102|getLabelString fixed for labels longer than 7 characters}}
{{UGrow|June 2011|0|200|Support for negative gain values.}}
{{UGrow|June 2011|0|200|Support for negative gain values.}}
|-
|style="background: #fff0f0" align=center|July 2014||style="background: #fff0f0" align=left colspan=3| Product Discontinued. Succeeded by the [{{SERVER}}/products.php?product_id=1042 1042 - PhidgetSpatial 3/3/3 Basic] or the [{{SERVER}}/products.php?product_id=1044 1044 - PhidgetSpatial Precision 3/3/3].

Revision as of 20:21, 4 May 2015

1056.jpg
Go to this device's product page


Getting Started

Checking the Contents

You should have received:

  • A PhidgetSpatial 3/3/3
  • A Mini-B USB cable

Connecting the Pieces

Connect the PhidgetSpatial 3/3/3 to your PC using the Mini-B USB cable.

1056 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 Spatial-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 Spatial 3/3/3 is properly attached to your PC.

1056 0 Control Panel Screen.jpg
  1. Double Click on Phidget Spatial 3/3/3 in the Phidget Control Panel to bring up Spatial-full and check that the box labelled Attached contains the word True.
  2. You can adjust the Data Rate by moving the slider.
  3. Move the 1056 board around and you should see the data change to reflect the change of position along the 3 axes.
1056 0 Spatial Full.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 Spatial 3/3/3 is properly attached.
  5. Double Click on Phidget Spatial 3/3/3 in the Phidget Preference Pane to bring up the Spatial-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

3-Axis Accelerometer

For more information on how to use the accelerometer, check the Accelerometer Primer.

3-Axis Gyroscope

For more information on the gyroscope, see the Gyroscope Primer.

3-Axis Magnetometer (Compass)

The magnetometer reports the sum of all magnetic fields acting on the 1056 device. The earth’s magnetic field is only one source that affects this measurement. In order to get accurate bearing data from the magnetometer - ie. to find magnetic north as a compass - any interfering magnetic effects need to be calibrated out. For more information about calibration, see the section below, or the Compass Primer.

Any magnetic field that is stationary with respect to the 1056 device, and less than ± 3 Gauss, can be calibrated out of the magnetic field measurement. This includes both hard and soft iron effects caused by nearby ferrous and magnetic materials. Interfering magnetic fields that vary in strength and orientation with respect to the 1056 device cannot be easily calibrated out.

Magnetic field data will become unavailable for ~28ms every 2 seconds as the compass perform internal calibrations. During this time, polling the magnetic field will return EPHIDGET_UNKNOWNVAL, or throw an UNKNOWNVAL exception. The magnetic field data in the SpatialData event will equal PUNK_DBL.

Template:Compasscalibration

Further Reading

For more information on magnetometers (compasses), see the Compass Primer.

API

Template:UGapih

Data Structures

SpatialData {

double acceleration[3];
double angularRate[3];
double magneticField[3];
Timestamp time;

};

Timestamp {

int seconds; -time since attach event
int microseconds; -time since last second

};

The SpatialData Structure is used by the OnSpatialData event. This contains acceleration data, angular rate data, magnetic field data, and a timestamp. The timestamp is an accurate measurement streamed from the hardware,and can be trusted over a local software timestamp. This timestamp is generally used for integrating angular rate into a heading over time.

Properties

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

Functions

Template:UGapi

Template:UGapi

Template:UGapi

Events

Template:UGapi

Template:UGapi

Product History

Template:UGhist Template:UGrow Template:UGrow Template:UGrow Template:UGrow |- |style="background: #fff0f0" align=center|July 2014||style="background: #fff0f0" align=left colspan=3| Product Discontinued. Succeeded by the 1042 - PhidgetSpatial 3/3/3 Basic or the 1044 - PhidgetSpatial Precision 3/3/3.