API for the bluetooth Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight wearable bluetooth data acquisition box which can measure anything from temperature to ECG.
It’s cross platform and runs under Linux, Windows and macOS.
It has two 24 bit analogue channels, an accelerometer and a magnetometer.
Required packages under Linux
For Ubuntu Linux install libbluetooth-dev:
sudo apt-get install libbluetooth-dev
For other Linux flavours install them from souce:
Quick start guide
Here are the basic steps how to use the API:
# load the module import pyattyscomm # Gets the AttysScan class which scans for Attys via bluetooth s = pyattyscomm.AttysScan() # Scan for Attys s.scan() # get the 1st Attys c = s.getAttysComm(0) # if an attys has been found c points to it. Otherwise it's None. # Start data acquisition in the background c.start() # Now we just read data at our convenience in a loop or timer or thread # if data is available you can read it from the ringBuffer while (not c.hasSampleAvilabale()): # do something else or nothing # getting a sample (array of all Attys channels) sample = c.getSampleFromBuffer() # do something with the sample print(sample) # rinse and repeat!
API documentation
Query it via the python help system:
import pyattyscomm help(pyattyscomm)
The Python classes have been generated with SWIG. The header files AttysComm.h, AttysCommBase,h and AttysScan.h provide detailed info about the classes:
Demos
On github are python examples which show you how to plot realtime data from the Attys:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyattyscomm-2.0.14.1-py3.8-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36a3bf265f7bbfefa0fd0c0ca600618d9ac49d100f239117007b2c5affda3b5 |
|
MD5 | f3b9ab5c30346b8d36290488652afefa |
|
BLAKE2b-256 | 1c4de9c642f4a51a3b17159ef7421c29d8abcde5124dec272889b523dda29fe7 |
Hashes for pyattyscomm-2.0.14.1-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec037bff946c202e4aefab2d8b9a5a882be4c268fff22422e0030bf89071598 |
|
MD5 | cbc3e5d8686839e54ce978906385b73d |
|
BLAKE2b-256 | 7d948eadc06ee1ea25d7afdad89bf48f2530b195a39531c9b04f14697bb728c2 |