Control an Arduino With a Wristwatch (TI eZ430 Chronos) by laxap
Featured
The watch
The Texas Instruments eZ430 Chronos is a cool gadget. It has bidirectional radio communication, and a whole bunch of sensors: temperature, pressure, acceleration.

In fact, it is a development kit for the MSP 430 (a low-power microcontroller), that TI packaged as a watch (pure genius!), and delivered with plenty of tools. Its firmware can be modified to implement new features into the watch.

Even without developing anything on the watch, it is a terrific toy:
- the watch alone is pretty cool --and has the TI logo ;-),
- the default features allow for a wide range of cool experimentations and developments around it.

The RF communication has a quite short range, and quite low consumption. It is not Bluetooth, but SimpliciTI[TM]  or BlueRobin[TM].

Pretty much documentation about the watch (sample code, specifications, schematics) can be found on the Web. Google is your friend.

Watch to PC
The watch comes along with an access point (i.e. the peer device the watch can talk to) in the form of a dongle, incorporating a TI chip that can, on one side, talk to the watch via RF, and on the other side, talk to the PC via an USB slave interface.

When the access point is plugged into a PC, a PC application provided by TI can exploit it to communicate with the watch: graph sensors, set the watch time, calibrate sensors, send fitness data. The nice thing is that TI wrote it in a scripting language (venerable Tcl/Tk) to run on multiple OS-es.

It is very easy to write your own PC application, as shown by some examples written in Python. There are numerous such examples that can be found on the web.

Watch to Arduino
What about using an Arduino instead of a PC? You could make completely pocket-sized projects!

Surprisingly, I could not find any clue about it on the web.

I evaluated several USB host libraries, and finally found the right application source code to get started (ACM on CDC, for modem, by Circuits@Home, http://www.circuitsathome.com; Oleg, thanks for the library, examples, and for the help!).

It finally works, it's very simple, and that's what I'm covering with the present post.

Just basic Arduino knowledge is required. However, this post is not an Arduino tutorial.

Enough said, let's get to the point!
 
Remove these adsRemove these ads by Signing Up

Step 1: Needed Stuff

The watch
You can purchase the TI eZ430 Chronos watch from several resellers (e.g. Mouser, Farnell, or Amazon). It will come along with:
  • software and doc on a CDROM,
  • an USB dongle that is an RF access point,
  • an USB dongle to reprogram the watch, (we won't use it here),
  • a screwdriver to open the watch (we won't use it either * )
(*) but hey, when did you last get a screwdriver with a watch, and a manual explaining how --and encouraging to-- open it?

The Arduino
Any more or less standard Arduino will do, and the most important thing is to have USB host capability.

For this, the following configurations are among the possible ones:
  • Arduino (mine is Duemilanove) and an USB host shield (mine is from Circuits@Home)
        - or -
  • Arduino Mega ADK (important: must be ADK variant! it has USB host on board)
lazybiker says: Apr 15, 2013. 9:47 AM
Thank you very much! That fixed it. Great instructable by the way.
lazybiker says: Apr 12, 2013. 9:08 AM
When I try to run this I encounter the following error:

eZ430_basic.ino: In function 'void print_frame(char*, uint16_t, uint8_t*, char*)':
eZ430_basic:133: error: no matching function for call to 'PrintHex(unsigned char&)'

How is this fixed?
laxap (author) says: Apr 12, 2013. 9:44 PM
OK, there has been an update of USB host library. I will need to update my project archive, but in the mean tiime, please replace lines 41 to 54 of my code by:
#if DEBUG
#define DPRINT       Serial.print
#define DPRINTLN     Serial.println
#define DPRINTHEX(x) PrintHex(x, 0x80)
#else
#define DPRINT       if(0) Serial.print
#define DPRINTLN     if(0) Serial.println
#define DPRINTHEX(x) if(0) PrintHex(x, 0x80)
#endif

// Regular messages over serial console
#define PRINT       Serial.print
#define PRINTLN     Serial.println
#define PRINTHEX(x) PrintHex(x, 0x80)
Miggles says: Feb 2, 2013. 3:53 PM
Holy crap I just got this watch thinking I was going to have to spend quite a bit of time figuring out how to interface it with the arduino. I guess now I can go straight into programming the arduino! Thanks so much!
meanpc says: Jan 29, 2013. 4:49 PM
Good stuff. I've been thinking about getting one of those TI watches for awhile now. This should work with the new Arduino Due I think. Might give it a try.
golovny500 says: Jan 14, 2013. 12:18 PM
veri good
scci says: Jan 14, 2013. 5:50 AM
vote for this guys, this is awesome
andrew.spencer.2 says: Jan 10, 2013. 1:52 PM
AWESOME! I got one of these watches a while ago and always contemplated trying to interface it with my Arduino. So glad you did all the legwork for me!
Tomdf says: Jan 9, 2013. 5:57 AM
Oh dang it, another must have toy! There are so many possibilities with the watch/arduino combo, thanks for the introduction!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!