Connecting to ANT+ devices from Mathematica

Similar to my recent post on connecting Bluetooth LE devices to Mathematica, this post is to explain a bit about how I’ve been connecting wireless ANT+ devices into Mathematica. Although it’s in early development, this package should allow you to connect to a few ANT+ devices. The notebook included with the package gives some additional examples and a more thorough explanation.

This sets up a connection to an ANT+ Heart Rate Monitor.

ANTDeviceConnect["HRM"]

This gets data from that connection:

ANTDeviceData["HRM"]

If you’re feeling brave and you want to connect devices other than the ones already supported, you’ll want to modify the event handler myChannelEventFunction to respond to the specific ANT+ broadcast data you’re interested in.

You’ll need an ANT USB-m Stick to be able to use the package.

Feedback welcome! Happy data collecting!

2 Likes

Was trying your package (11 years later) but only get:

LibraryFunction::libload: The function W_ANT_Init was not loaded from the file C:\Users\mrommel\Desktop\HRM\Mathematica\ANTConnector\LibraryResources\Windows-x86-64\ANT_DLL.dll.

What am I missing?