North Devices (north_devices)
The north_devices library contains drivers and utilities for third-party devices that can be used in the North
Robotics ecosystem.
Installation
Run pip install north_devices to install, or add north_devices to your requirements.txt file.
Pumps (north_devices.pumps)
Tecan Cavro (tecan_cavro)
There is a driver for the Tecan Cavro series of pumps available that uses the binary protocol to communicate with Cavro pumps on a network.
Usage
from ftdi_serial import Serial
from north_devices.pumps.tecan_cavro import TecanCavro
serial = Serial(baudrate=38400) # Cavro pumps default to 9600
cavro = TecanCavro(serial, address=0, syringe_volume_ml=1000)
TecanCavro.home_all() # Homes all TecanCavro pump instances
# you can perform absolute and relative moves in counts or mL, with optional velocity
cavro.move_absolute_counts(500)
cavro.move_absolute_ml(1000, velocity_counts=500)
cavro.move_relative_counts(100, velocity_counts=1000)
cavro.move_relative_ml(500)
# you can change valve positions with `move_valve`
cavro.move_valve(1) # moves valve to port 1
# there is also a higher-level dispense method that pumps from a port to a port
cavro.dispense_ml(2000, from_port=1, to_port=2)
# you can also batch a series of commands to be sent at once
cavro.start_batch()
cavro.move_valve(1)
cavro.move_absolute_ml(500)
cavro.move_valve(2)
cavro.move_absolute_ml(0)
cavro.execute() # you can use the `broadcast=True` flag to execute batch commands for all pumps at once
# there is also a basic loop command that can be used in a batch command
cavro.loop_start()
cavro.move_valve(1)
cavro.move_absolute_ml(500)
cavro.move_valve(2)
cavro.move_absolute_ml(0)
cavro.loop_end(10) # loop 10 times
cavro.execute()
# multiple cavro instances can share the same serial connection if they are on a network
network = Serial(baudrate=9600)
cavro1 = TecanCavro(network, 0)
cavro2 = TecanCavro(network, 1)
# you can send batch commands to multiple cavros then execture them simultaneously
cavro1.start_batch()
cavro1.move_relative_ml(100)
cavro2.start_batch()
cavro2.move_absolute_ml(100)
TecanCavro.broadcast_execute(cavro1, cavro2) # this will broadcast to all pumps if none given
Metadata
Release files for north-devices 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| north_devices-0.3.5.tar.gz | 29.8 kB | Without provenance | Details for north_devices-0.3.5.tar.gz |
Release files / north_devices-0.3.5.tar.gz
| Download URL | north_devices-0.3.5.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
961168e349e0196f47c8c3fad8d9bc895c78afc26a99d660f57114dfa03ea7b5
|
|
BLAKE2b-256 checksum How to use checksums |
f4f28b53b4c6bd360c7872da4d114f088b3c0c51041984344380f7bb0bcf813c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Security for north-devices 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.