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.3.0.tar.gz
(17.7 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.3.3.0-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf4e97b90ce80326d4e64b73b9d63e31cacdbe751d3b826f3a835eda1a8a35c |
|
MD5 | 59825e1467018c30ff90ff762fe96117 |
|
BLAKE2b-256 | 98a15572b14d4b5ebc6f4f7db34768b8b1580ee5c45c300da26f5f82c2fa0d01 |
Close
Hashes for pyattyscomm-1.3.3.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984efbf569728a07ab4d4d9b103a1ef5403f56e3d05ef179f6421b289cdf7045 |
|
MD5 | 4a876bbdebd9e5f30a76b39edb6c1db8 |
|
BLAKE2b-256 | e7bb1ce16c65c850615b802de33d7711398253f4ef453d10a3b3cc66aa7b47f5 |