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-1.3.3.2.tar.gz
(66.6 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.3.3.2-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66edf473afd3a1bb7449a60162085b5c900651a76feeaa12e07272934f005f6 |
|
MD5 | c130e893021bfe9a4e41b4f750e290c9 |
|
BLAKE2b-256 | 81d2c0e26760c98f53a6914e922e0b32e4fb19d5a7b4fa4a53a395e03a788d24 |
Close
Hashes for pyattyscomm-1.3.3.2-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f9f1d496533362e5972f66c8791d9bb4792fa93a1f9c1a1504348536b2a623 |
|
MD5 | 1b9a0a09712de4d45fe7280e64f73e31 |
|
BLAKE2b-256 | bec104daa978855ceb6d042b6f59a32ded9c801a586e04d5d96d30360a76e6c8 |
Close
Hashes for pyattyscomm-1.3.3.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7770d54333044ba6a17f76d33bc57c284b399fbab9434bd3d2be90aa1460270 |
|
MD5 | 4ec1ccef9ce88213ed1027bbe1a86839 |
|
BLAKE2b-256 | 6ab1e04f23108cee578d3bd3a2213529fbb856bd816ef51275e75c85af7e1555 |