Skip to main content

API for the Caonabo DribeBox (CDB)

Project description

drivebox

Python API to interact with the Caonabo DriveBox (CDB). The Caonabo DriveBox is a tool that combines a switch matrix module with an itnernal potentiostat/Galvanostat in order to drive electrochemical (EC) reactions through diferent EC cells. The potentiostat/galvanostat module allows for the sourcing of potentials of ±7.5V and currents of ±65mA. The switch-matrix module allows to assign signals to a total of 50 electrodes. The signals can be procided from the internal potentiostat/galvanostat itself or from and exteral source. For ease of writing from her on we will refer to the potentiostat/galvanostat module as the Source Measurement Unit (SMU).

For more information regarding the CDB hardware please visit the hardware repository.

Table of contents

  1. Installation and package dependencies
  2. How to use the package
  3. API reference guide
  4. Contributors
  5. License

1 Installation and package dependencies

This packager requires the previous installation of the following packages:

Afer installing the dependencies, the package can be installed from the Python package index (PyPI) repository.

In Windows:

C:\> pip install --user drivebox

or in Linux:

$ pip install --user drivebox

If using the anaconda distribution for python you can also use the conda package manager for the instalation from the dreamwere channel.

In Windows:

C:\> conda install -c dreamwere drivebox

or in Linux:

$ conda install -c dreamwere drivebox

As an alternative, the drivebox package (inside the src/ folder) can be download and copied into the the main folder of the project where it will be used.

2 How to use the package

2.1 Instantiation, initiation and general commands for the CDB.

First, the module must be imported:

>>> from drivebox import board

Once imported, the cdb class inside the module must be instantatiated to gain control to an specific CDB. Hence, the port where the CDB board is connected, as well as the ID of the board, must be specified. For the port, the name of the port can be given such as "COM1" or "AUTO" can be used. Sometimes, "AUTO" might not work due to conflict with some USB devices. If this happens, the port will have to be passed manually. An example instantiations can be as folows:

>>> cdb = board.cdb(port="AUTO", board_id="000")

Once initiated, the following output will appear in the console:

Caonabo DriveBox (CDB) with correct ID initiated in port: COM10. Average measurement delay (For [V,I]): 170.0ms

At the end, the instance must be properly closed to avoid leaving the serial ports open. This is done by using the close() method:

>>> cdb.close()

2.2 2.2 Working with the switch matrix module.

To be completed...

2.3 Working with the SMU module (potentiostat/galvanostat).

To be completed...

3 API Reference Guide

To be completed...

4 Contributors

5 License

Copyright (c) 2022 César J. Lockhart de la Rosa (lockhart@imec.be)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drivebox-0.1.3.tar.gz (37.2 kB view details)

Uploaded Source

File details

Details for the file drivebox-0.1.3.tar.gz.

File metadata

  • Download URL: drivebox-0.1.3.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.9.12

File hashes

Hashes for drivebox-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ba28955c2e7baca46001ea1ec39b36a904fb41b31711a16a35cc99df1bd9deac
MD5 7e16fde5a8a5732c5556e4f6d21acdea
BLAKE2b-256 442dd9d473e9ba3162faaf6b4b18c3ce987f3bf3ef15914693462f7995390d32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page