Products for USB Sensing and Control
Products for USB Sensing and Control

Thumbstick Phidget Tutorial

HIN1100 - Thumbstick Phidget


by Phidgets Education

Introduction

The HIN1100 is a thumbstick Phidget. You can use it in your projects to capture user input. There are two axes. One for vertical movement and one for horizontal. The thumbstick can also be pressed down and used as a button.

In this tutorial you will :

  • Connect your Phidget to your computer.
  • Learn about data collected from your Phidget.
  • Practice using your Phidget in a mini-project.

Hardware Setup

Using the Phidget

In order to connect your Thumbstick Phidget to your computer you will need the following:

Connect Device



Connect your Thumbstick Phidget to your VINT Hub using the Phidget cable and connect your VINT Hub to your computer with the USB Cable.


When all components are connected, open the Phidget Control Panel on your computer and find the Thumbstick Phidget entry.


Double-click on both Thumbstick Axis and the Thumbstick Button entry to ensure the Phidget is connected. Leave these windows open for the next section.

Device Properties

Voltage Ratio

The Thumbstick Phidget returns data as a number between -1 and 1.

  • Information about the vertical axis is returned on channel 0.
  • Information about the horizontal axis is returned on channel 1.

Try moving the thumbstick around in order to better understand how the voltage ratio reflects the thumbstick position.

Button Press

When using the button, simply press down to activate. This works in a similar fashion to the push buttons in the Getting Started Kit.



Mini-Projects

Now that you have your HIN1100 connected and working, the next step is writing some code.

Write a program in the language of your choice that outputs the vertical position, horizontal position and buton state from the thumbstick. See the flowchart to the right for recommended program flow.


Conclusion

You have completed the HIN1100 - Thumbstick Phidget Tutorial. You are now ready to use your Phidget in a project.