Alert.png

Notice: This page contains information for the legacy Phidget21 Library.

Phidget21 is out of support. Bugfixes may be considered on a case by case basis.

Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21.

We recommend that new projects be developed against the Phidget22 Library.


Click on the 2phidget22.jpg button in the menu bar to go to the Phidget22 version of this page.

Alert.png

Simple Spatial Experiments: Difference between revisions

From Phidgets Legacy Support
No edit summary
Line 35: Line 35:
==Phidgets==
==Phidgets==


All you need is a Phidget Spatial - this page shows use of the [[1056 - PhidgetSpatial 3/3/3]].  Hook it up using USB to your computer as shown in the getting started guide
All you need is a Phidget Spatial - this page shows use of the [[1056 - PhidgetSpatial 3/3/3]].  Hook it up using USB to your computer as shown in the getting started guide [[Device List|for your Spatial Device]]


==Code==
==Code==

Revision as of 18:50, 15 March 2012

The project described here is a simple data recording program for the Phidget Spatial. We play with the program and record data to learn things about our environment.


Practical concepts covered are (click on links to see other projects on that topic):  


As with any of our described projects, Phidgets takes care of the electrical component design. Here, we also provide some simple code so you can play around with your Spatial and save the data to plot later.

Time: About two hours (It is perfect for a Saturday morning, perhaps with your kids?)

Special Needed Tools: A Phidget Spatial, USB cord, and your computer.

  • You should have already worked through our Phidget Spatial Getting Started Guide for your Spatial Device - this will show you how to get the the Phidget Libraries installed for your operating system.
  • Your computer should have a C compiler we support (including gcc, MinGW, Borland, Visual Studio, and many more)
  • If you would like to follow along with the graphing examples, you can install the R Statistical package, which is free and available for Windows, Mac, and Linux.


Introduction

A Phidget Spatial can measure acceleration, and some models can also measure gyroscopic motion and magnetic fields.

We start with a Phidget spatial just on our desk, and then play around with it and plot the data.

Phidgets

All you need is a Phidget Spatial - this page shows use of the 1056 - PhidgetSpatial 3/3/3. Hook it up using USB to your computer as shown in the getting started guide for your Spatial Device

Code

Putting it All Together

Extra Credit