Giter VIP home page Giter VIP logo

cetoni's Introduction

cetoni

Python Module for controlling Cetoni Nemesys V4 Syringe Pumps over a Serial port

This module allows usage of Cetoni Syringe pumps without the CetoniSDK and runs on most operating systems, including Raspberry Pi's, etc.

You have to install pyserial, e.g., via

pip install pyserial

When using more than one syringe, the serial interface of the first syringe has to be passed as an optional keyword to the init routine of the second syringe as demonstrated in the code below.

Note that you always have to set a non-zero flow rate (in microliter / s) after powering up the syringes.

Usage

import cetoniSerial as cs
S1 = cs.Syringe("/dev/ttyUSB0", volume =1000)
S2 = cs.Syringe("", volume = 1000, ser=S1.ser, node=3)
    
S1.toInput()
S1.positionAbsolute(0)
    
# use the commands below for fast repeated dispensing or aspirating of the same volume
# and repeat only executePositionRelative() for every dispense / aspirate action
S1.setFlowRate(20)
S1.currentPosition = S1.readCurrentPosition()
S1.configurePositionRelativeByVolume(-100)
S1.executePositionRelative()
    
# for aspirate / dispense action
S2.setFlowRate(50)
S2.toInput()
S2.aspirate(100)

S2.toOutput()
S2.dispense(50)

cetoni's People

Contributors

bennomeier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.