This program controls the controller of the modularPhotoreactor.
The program is documented with docstrings in the code. A html-version of the documentation can be found here ./docs/build/index.html.
This project is open source. The software is released under the GNU Lesser General Public Licence (GNU LGPL). The hardware is released under the CERN Open Hardware Licence Version 2 - Weakly Reciprocal Licence. Please find the licenses here.
Cite this repository:
To run the modular controller script required for the operation of the modular photoreactor controller follow the steps below:
- start the console and install mod_reactor_controller with (venv is recommended)
pip install "directory of the controller_documentation folder"- copy the "conf" folder to the working directory in which you want to run the controller script
- modify the config files according to the modules and tinkerforge bricklets you use
- use the console to navigate to the working directory in which you want to run the controller script
cd "your directory"- start python in the console
python- start the controller
>>> from Py4ModPhotoreactor import controller
>>> controller.start()- press any key to interrupt the program
This program controls a Korad or RND KA3005P power supply to realize programmable intensity profiles for a radiation source.
- follow the steps outlined above to install mod_reactor_controller
- start python in the console
python- start the controller
>>> from mod_reactor_controller import multi_ramp
>>> multi_ramp.start()- start the connection to the power supply. If standard values do not work, set the USB port to which your power supply is connected through the keyword argument "port", e.g. "port = '/dev/ttyACM0'"*
- set the voltage
Voltage? 5- define the intensity ramp. Several ramps can be defined one after another
time of the first point in seconds = 0
current of the first point in ampere = 0
time of the second point in seconds = 20
current of the second point in ampere = 0.1
add ramp? (y / press key to interrupt)- press any key besides y and enter to start irradiation with the intensity ramp
