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-1.3.3.1.tar.gz
(17.7 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.3.3.1-py3.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f859310b11e99277e6847f4b558352c8d7c6e1f453e3cd597ec1a5d1c6e698 |
|
MD5 | ea57839a40693c51b730aafa99033d06 |
|
BLAKE2b-256 | ec10470422c5d329542240efb1326c82e0341f4df33cc8f8fe34bca6f1f54e73 |
Close
Hashes for pyattyscomm-1.3.3.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bdc3db4b81c240916c66ebb46a0a1394bcd4a546cab23fc46e132bcfb20b86e |
|
MD5 | 4142ffcf02a1253c964e10d59f8aeb0b |
|
BLAKE2b-256 | 65d46d78018b96cded536c71619281529db5d4b4188242103ebc44beab09a814 |