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 examples which print the ADC data to the screen and 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.10.0.tar.gz
(41.5 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.10.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5379bcbdbf816c884a1e4aca7ae16bc7cb6dc07f5b2926404d445c7c1230495 |
|
MD5 | a8d50d71ea066c1df173494ce7ca02a9 |
|
BLAKE2b-256 | 93aa95f767725d98d558b209623f88c3288025538ba25b0f913941c213653f17 |
Close
Hashes for pyattyscomm-2.0.10.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c64767e694f972a5017ca02a99d2bd424cbfe44c3ab8b03b5358b80a60fa6aa |
|
MD5 | 8d68e09cf907f6667f4ed2eb8b80768f |
|
BLAKE2b-256 | 6ba2e84a1e81993e8956ee9bdaaad90df2f48cca7d04b51335a8cb86d8e848ed |
Close
Hashes for pyattyscomm-2.0.10.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | add075077e3efb73140bfb251fc70cefb711025f852a2bfc47b0ab21fd9b65c5 |
|
MD5 | 486b1e795a82f1a9f4e44029f005a8a8 |
|
BLAKE2b-256 | 671c8dcbdde81fc51a8361b540c1bcfd14d5221c6d43232095dd5e9dd650f4d2 |