Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /nfs/bronfs/uwfs/hw00/d63/soslab/turbidostat/pmwiki/pmwiki.php on line 666

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /nfs/bronfs/uwfs/hw00/d63/soslab/turbidostat/pmwiki/pmwiki.php on line 669
Klavins Lab Turbidostat Wiki | OperatingManual / Software
Recent Changes - Search:







edit SideBar


Previous Next

We recommend getting the latest python code from github. For convenience the latest master release is available directly through this link


  • Windows/Mac/Linux PC (including the raspberry pi 35$ linux computer). Memory and speed don't matter very much as long as the computer isn't multitasking.
  • Serial port or USB to serial converter, preferably based on FTDI's FT232 chipset, as the prolific parts are flaky.
  • Python 2.7 (note: The pythonxy distribution contains all necessary packages)


  1. Make sure the system is properly assembled, powered on, and primed.
  2. Check config.ini. Most of the defaults should be good (example below), but make sure the port settings are correct.
    ;don't inclued the .py
    controlfun: turbidostatController 
    kp: 3.0
    ki: 0.05
    ; space seperated list of setpoints
    setpoint: 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
    altsetpoint: 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0
    odperiod: 4
    maxdilution: 160.0
    mindilution: 7.0
    period: 60
    baudRate: 19200
    odlog: odlog.dat
    fulllog: log.dat
    errorlog: errors.log
    blanklog: blanklog.dat
    controllerPort: COM1
    ; use NONE for cheapostat
    pumpPort: NONE
    ;don't include the .py
    pumpdriver: cheapopumpdriver
    baudRate: 19200
    syringeDiameter: 7.290
    volumeUnits: UL
    syringeRate: 1800
    syringRateUnit: UM
  3. Delete any old data and log files (odlog.dat, log.dat, errors.log, and blank.dat)
    • When blank.dat is missing the software will use the first sample to blank (taken 60 seconds after starting) and write blank.dat. After this point blank.dat will be reloaded every time the software starts (or restarts).
  4. Double click (or start from the command line) servostat.py. The system will now blank and run with the included plugins.
    • The program will print out time followed by numbers representing the OD. First 8 numbers are OD, next 8 are controller state, and the last 8 numbers are dilution rates.
    • Program will blank after 60 seconds if not already blanked from previous run

Previous Next

Edit - History - Print - Recent Changes - Search
Page last modified on July 31, 2014, at 05:28 PM