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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pyattyscomm-1.2.2.4-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fce1678bf3c507a42b6975601a002811892650adafa7bb93b23310da3570a94 |
|
MD5 | 80f890f7cb9ec5cb17bc67271882d9ea |
|
BLAKE2b-256 | 053faf46b28e1d7ec13857d300660cdc64bf494d8c7f791313fff0722e99a5a1 |
Close
Hashes for pyattyscomm-1.2.2.4-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d13b7dfda7daf5a8542ecf415dd6eaf60014be1337502711b6f10b988f972e4 |
|
MD5 | bf64c347b3d311d0236562a0fb0b9e3a |
|
BLAKE2b-256 | efa4ad3af15c97d4aef0473fa13cb4249a394df37c879d58dd9b869e74ade541 |