DASL Wiki

Site Tools

hitechnic_angle_encoder

This is an old revision of the document!

LabVIEW and Hitechnic Angle Sensor

Author: Yu Hang He Email: hey6@unlv.nevada.edu
Keywords: LabVIEW, NXT, Hitechnic Angle Sensor

The photo above depicts Hitechnic NXT Angle Sensor which allows you to measure axle rotational position and rotation speed. The Angle Sensor enables you to measure absolute angle, accumulated angle, and rotational speed. This tutorial shows you how to use LabVIEW to program Hitechnic NXT Angle Sensor and display the result on front panel and takes approximately 2 hours to complete.

Motivation and Audience

This tutorial's motivation is to demonstrate how to program Hitechnic NXT Angle Sensor with LabVIEW. This tutorial assumes the reader has the following background and interests:

* Know how to program with LabVIEW. (LabVIEW Basic Tutorial)
* Know how to operate LEGO MINDSTORMS NXT.
* Perhaps also understand how to use LabVIEW MINDSTORMS module. (LabVIEW and NXT)
* This tutorial may also attract readers who want to use LEGO MINDSTORMS for instruction purpose.

The rest of this tutorial is presented as follows:

Programming

To use LabVIEW to program Hitechnic NXT Angle Sensor, you must first installed LabVIEW module for LEGO MINDSTORMS. Follow this link for direction on how to install LabVIEW or the MINDSTORMS module.

To access block diagram nodes for Angle Sensor, go to `Function Palette``MINDSTORMS Robotics``I/O``Additional Sensors``Hitechnic Sensors`.

To receive inputs from Angle Sensor, use the `HT Read` node. The `HT Read` node is a polymorphic VI and Angle Sensor is one instance of the node. Click on the text box below the node to browse different implementations.

HT Read have four different implementations:

• `Angle`: returns the rotation position of a rotating axle from 0 – 359 degrees with 1 degree accuracy
• `Total Angle`: returns the accumulated number of degrees an axle has rotated
• `RPM`: returns the speed of the axle rotation in RPM (revolutions per minute)
• `All Info`: returns all three readings in a cluster structure

Final Words

This tutorial's objective was to <fill in the blank>. Complete <choose: construction details, source code and program descriptions> for <fill in the blank>. Once the concepts were conveyed the reader could <fill in the blank>.

Speculating future work derived from this tutorial, includes <fill in the blank>. In the big picture, the problem of <fill in the blank> can be solved with this tutorial.

For questions, clarifications, etc, Email: paul.oh@unlv.edu