API for the Attys DAQ box (www.attys.tech)
Project description
Attys is a lightweight bluetooth DAQ box which can measure anything from temperature to ECG.
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.AttysScan) help(pyattyscomm.AttysComm)
The Python classes have been generated with SWIG. The header files AttysComm.h and AttysScan.h provide detailed info about the classes:
Demos
On github are two python demos: one which prints the ADC data to the screen and two demos which plots it.
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
pyattyscomm-2.0.0.0.tar.gz
(20.4 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.0.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86572f1077373c37db115ffdf0faceee24d922e116c6f7a5da6857dce92548d7 |
|
MD5 | 7fa886297a49e853c27e256db87691db |
|
BLAKE2b-256 | 14018eecda9cc6d7d9a3f1e2dfc9ae908e6f5eb1e0d438d905f828dd41082a69 |
Close
Hashes for pyattyscomm-2.0.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc538e30d4ba7c60103aadf988136fb1d9f0717e2f60590de6be9289b105906 |
|
MD5 | ce21ec3f0c02bfa2314f3184a671b6d3 |
|
BLAKE2b-256 | a4a77a2e378d2ff9004158adfae39ead1a46fc61e73db2c2c34699af8d2c8c4c |
Close
Hashes for pyattyscomm-2.0.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be36f9c75ccf48826e550b63ef10b569dd2595fc28c78daae684adc75f19ffd1 |
|
MD5 | 52773969a8657e7ee11f5b88a1e3b34a |
|
BLAKE2b-256 | 03170df7e2d24f5b6b5543cb41f70f66f04065c4f2bdbae073bc618ec5e29f11 |