Arduino library support the ADS129X family of analog front-ends by TI
C++
Switch branches/tags
Nothing to show
Clone or download
ferdinandkeil Merge pull request #3 from aj-ptw/master
FIX: support new transaction based SPI interface
Latest commit e4bd32c May 8, 2018

README.md

ADS129X Arduino library

This library adds support for the ADS129X series of analog front-ends from Texas Instruments to the Arduino environment. It is based on work by conorrussomanno.

So far the library has only been tested with the ADS1298. In theory it should be compatible to all members of the ADS129X family.

Modes of operation

The library support two modes of operation: interrupt-driven and polling. Both modes use the same API and your sketch still has to poll for available data even when in interrupt mode. However in interrupt mode the response time to changes on the DRDY line is much quicker and thus higher sample-rates are supported (tested with up 8 kSPS). Interrupt mode is the default, to switch to the old polling operation add this to your sketch as the first line:

#define ADS129X_POLLING

When multiple devices share the SPI bus you will want to use polling mode as not to interfere with the SPI transactions of other devices.

Example sketches

Two example sketches are included. One transfers the data to a PC via a serial connection, the other uses a nRF8001 BTLE chip to send it to a phone. Both were tested using a custom board including an Olimex nRF8001 breakout and a Teensy 3.1.

Libraries required by the sketches:

License

See LICENSE