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 examples which print the ADC data to the screen and 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-2.0.10.1.tar.gz
(42.2 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.10.1-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a355e7e337ea8439bac05a6f9c1cca3e3c794bf3d2ae59be492f9476a2321b9 |
|
MD5 | d1d1dbcc43ad15dc6ba8bee118eee50f |
|
BLAKE2b-256 | 0827b11700fe630211f32aafc84f0895b08213a84a5f9bce678367b7383001ff |
Close
Hashes for pyattyscomm-2.0.10.1-py3.6-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f00e52790f345e7fc8650225c60f7899b1408e941cd5ce8d4bc26913e8b5e2a |
|
MD5 | 042fb1408ee9fe26eaf25778abb397ec |
|
BLAKE2b-256 | 8270a1582956a87d56a606290aad123cdfd4261b55e4e0de74b58704fea9144e |
Close
Hashes for pyattyscomm-2.0.10.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b4bb847419786ed58effe4b7b8a731ca4b1560f27f33d92337a50c9554ede0 |
|
MD5 | a27e43f09d8399617d385af85fae15d0 |
|
BLAKE2b-256 | 4f7db8b539d300eb379e3c6cbddfaaf51d816d5149627500a95670b9f7da9692 |
Close
Hashes for pyattyscomm-2.0.10.1-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc76f9910e19e02e6b606c7cb4f413b2b462fd9d45f54501e75a97db15476b4a |
|
MD5 | 9e0eecfb3c78a16db35df531b5302df6 |
|
BLAKE2b-256 | 99f97882b5cbf122105e0a92353370f42cf8acac9ca37fc9afa14134c4a58cf6 |