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.2.0.tar.gz
(23.5 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.2.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb45e51b310594ba278eb0f1cc6287e8b3cadd460b58bc847bab91a344716178 |
|
MD5 | 4a9a6daf86cf4ddb679470cd6151238a |
|
BLAKE2b-256 | 4c9077fd61c468370d29288a79c28a047acb6b4cca52e2c78d276d048e05cfe3 |
Close
Hashes for pyattyscomm-2.0.2.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8490d1ecbca36163d6ec47c8320f02ee7c14b192bdf5ea1c5de0463635dfee67 |
|
MD5 | fadfebc79ec6ea828f07065b90b31479 |
|
BLAKE2b-256 | 979b2d5d44e71e1e3f7cbb5c810777c617013f15ec218afc5df24716e8eb99d6 |
Close
Hashes for pyattyscomm-2.0.2.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3ce67e84a2df9a50f0b749ac9ee826e06f35fd1807b0558cc5128d5446af54e |
|
MD5 | 952273df143805d7a3d4c1cc223745d3 |
|
BLAKE2b-256 | 52aee9839d1830701cf457c2bd85de13e28b437f1cf48a73a48db8068d289bf8 |