Embedded Invasion

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted

ez430-Chronos Accelerometer and Theremin

Introduction

The Texas Instruments ez430-Chronos watch is based on the MSP430 architecture, and features a number of built-in sensors that may be polled wirelessly through an RF receiver. We use LabVIEW to poll the watch and interpret accelerometer data.

Requirements

Implementation

The ez430-Chronos, as shipped with its default firmware, transmits accelerometer data packets upon request to a USB RF receiver. The receiver creates a virtual serial (COM) port on the desktop host, and is interfaced with LabVIEW using the VISA serial library.

To begin, install the ez430-Chronos software, and verify that you can interact with the watch in the Chronos Control Center (be sure to stop the access point before running your application in LabVIEW). Note the COM port used by the RF dongle; on Windows machines, this can be found in the Device Manager (Figure 1). Select this COM port when running examples from the project below.

device mgr.jpg

Figure 1: Device manager showing the COM port number of the RF adapter.

Sample Code

Three examples are provided in the project below: simple graphing of the accelerometer, advanced graphing of the accelerometer, and a Theremin emulator. All may be found in the Example Finder by searching for ez430 or navigating to Hardware Input and Output -> Serial. Figure 2 below shows an example of graphing the accelerometer:

simple graph.jpg

Figure 2: Simple graphing of the ez430-Chronos accelerometer.

Future Work

The simple interface to the RF receiver makes it easy to customize the software on the ez430-Chronos and communicate information to LabVIEW; just send packets via serial and unflatten them in LabVIEW.

Versions

1.0 (2010-08-10): Initial release.

1.1 (2011-08-25): Updated to VI Package Manager.

2.0 (2012-07-18): Corrected acclerometer calibration, updated to Silver controls/indicators. Added palettes and examples to example finder.

2.0.1 (2012-07-27): Corrected calibration.

Message 1 of 40
(22,219 Views)
39 REPLIES 39

Re: ez430-Chronos Accelerometer and Theremin

great, i have search aome like this chronos + labview, but i have error,labview display me "errro 5000, poll accelerometer", can you help me?

0 Kudos
Message 2 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

Are you able to display the accelerometer data using the Chronos Control Center?

0 Kudos
Message 3 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

oh sorry, is open box dialog control center texas instrumets

0 Kudos
Message 4 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

It would help if you provided more detail; I understand that you had the Chronos Control Center open at the same time you ran the LabVIEW application? After closing the Chronos Control Center, were you able to run the LabVIEW application successfully?

0 Kudos
Message 5 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

yeah, i can do it, thanks, do you build pol accel?, how do you it?

0 Kudos
Message 6 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

Yes, I did build that VI - based on information I found in the ez430 Chronos Wiki, I send a packet that requests acccelerometer data, and wait until the packet is received on the serial port. The VI checks to see if the packet is received successfully and reconstructs the x, y, and z axis. I think I may scale to +/- 1 as well.

0 Kudos
Message 7 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

can you save it to 2009 format or is there 2010 specific code? we haven't upgraded yet

0 Kudos
Message 8 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

Hi Scott – in the interest in maintaining my community posts, I only post one version of the software online. If you would like, I can e-mail you a 2009 version.

0 Kudos
Message 9 of 40
(3,578 Views)

Re: ez430-Chronos Accelerometer and Theremin

elgeeko,

Could you possibly email me a 2009 version also?

Thanks in advance,

Linda Maloney (lmaloney@draper.com)

0 Kudos
Message 10 of 40
(3,578 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.