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 attyscomm attyscomm-dev:
sudo add-apt-repository ppa:berndporr/attys sudo apt-get update sudo apt-get install attyscomm attyscomm-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 one which plots it with matplotlib.
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.2.2.3.tar.gz
(54.1 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.2.2.3-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 446d06b4ae5f351108791eb6c7bf6779820b13ced72097c29d58ac0a5a45e2ba |
|
MD5 | 8b8d682c439a2d8c136d4fd94c70bd3c |
|
BLAKE2b-256 | 046bb72d8ccd3d1d27ab148ba2d722e8e74a815843ec70dc29cd6f145fedbf96 |
Close
Hashes for pyattyscomm-1.2.2.3-py3.5-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d37d132cfa784b0ffb53bbf982805302570e79d8373ff3b3b85e7149c7ca4187 |
|
MD5 | 17027ee4cd1186a4d69de3841cc1aee1 |
|
BLAKE2b-256 | 0d06903eb46fa1f197d5831cfbbe53d3cb228228699df4ca4ab7f73272e7732d |
Close
Hashes for pyattyscomm-1.2.2.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a804e92872449a86b3843b0b35ee308e9a135144411c0c488ef39d67226e839f |
|
MD5 | b44282823f22cca90fa73b1f0255b870 |
|
BLAKE2b-256 | 19ca9432107183248ebe487df022c20fae107de8ab2db4afdb38f048f6ce00b4 |