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.3.tar.gz
(17.7 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-1.3.3.3-py3.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64464ea392c943bef0f565eb4fdbced7c2bc73c4b254d0b5066127b2fbc1e6b1 |
|
MD5 | 8a656fd308b07ff761bb47ca13cc7877 |
|
BLAKE2b-256 | ffb33a6891401b9ab45a314af8afca6b673321c4b3f8a0aa5d169a5e100c05f2 |
Close
Hashes for pyattyscomm-1.3.3.3-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37780ae1a2971d20830220d84518656e0fcc7bf6a45bcacf54b6e71a4661183f |
|
MD5 | 54905de4b6e989f62adce57c31f29236 |
|
BLAKE2b-256 | d94b687a1d863e894d505ddab626d91b096968d1e0593ac2fbcbfd6b88722280 |
Close
Hashes for pyattyscomm-1.3.3.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c447b30900e6cea982ab70a1eee11cb7444046776aaac065e807c1b257aa6cc |
|
MD5 | c66bd78acce31eed688a6c2559d148ae |
|
BLAKE2b-256 | 061e28f8066252387b3662f3b1bf0fd0c68623a95d83d099dbe2bafe31d76a32 |