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.3.0.0.tar.gz
(61.8 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.3.0.0-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87c3836706aa0a874f5c5d60b9c6a45f8654ba8c236385f46a068d21e942f2cf |
|
MD5 | f9b2d167f7041c00473898eb138278e8 |
|
BLAKE2b-256 | 26e160011bb36e37461a42c8e623c9002da574271739502d5b7c8811a430dcd2 |
Close
Hashes for pyattyscomm-1.3.0.0-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16ae0f9318840716ed30c42022cb10c58e3bf64fbe0f0b2494e62d4eae54227b |
|
MD5 | 78171bdfbb472de65d46ee833fa7db36 |
|
BLAKE2b-256 | 95d8fac9b7eb4499d1b83a3894fc204fa8822f8100f845d0fd6e5891816f1349 |
Close
Hashes for pyattyscomm-1.3.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f45d3c95691d814a51e5dcf348fc8387f6e1b155cd56dbcc0a28c54e082fcea |
|
MD5 | 612732102b650d3028b3f64ab9732f60 |
|
BLAKE2b-256 | 5b0b064a0ba0cbc1aecb7df120a0a2b12c6b9b73b625b2cf50baf68423e60ed7 |