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-2.0.1.0.tar.gz
(23.3 kB
view hashes)
Built Distributions
Close
Hashes for pyattyscomm-2.0.1.0-py3.7-macosx-10.15-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409ab79d18fcde01d9bf1aacde5bd7ed8819472a6cb28388ed66401c262f653b |
|
MD5 | 9464f008650fdef0aa39a202aba122af |
|
BLAKE2b-256 | 8f31adc91d5497c726e29e30977a98b3857f1da21f42b722d59cefe12f8728d6 |
Close
Hashes for pyattyscomm-2.0.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fbf460b5307ae6e65f253d9734ba0b92d30df02e9dd7e6f76d147d672ed926d |
|
MD5 | 53394c2b665b4a7fb1567b09ad5c71e1 |
|
BLAKE2b-256 | edf116e1ca4ae0de5adcdcc8d956725f75ffee38f221a7eb056c5eaa756db4e3 |
Close
Hashes for pyattyscomm-2.0.1.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fcfd6ad01493f8068245d7831e01586cb69aa21eb04b0002ee7b62b865c627f |
|
MD5 | f212198ff6f30fb685609a90ee231ab4 |
|
BLAKE2b-256 | e18fb169dd5de2c67316059019d2e68ca4bf034d9ad137711c61298800bb7ef7 |