Skip to main content

Notebook UI and reusable control/runtime components for the Temperature Control Lab.

Project description

License: MIT

tclab_jupyter

A jupyter based application and library to explore different control techniques of a simple temperature plant.

Overview

This code was written to showcase an Arduino based Temperature Control Lab (https://apmonitor.com/pdc/index.php/Main/ArduinoTemperatureControl) for a Lecture on Advanced Control Techniques.

The TCLab system is built with two temperature sensors and two heaters. A Matlab or Python interface is provided to read the temperature data from the board and control the heaters power output. A library was created with two entry points, one that aims to control the Arduino System (HardwareNotebookApp) and another one replacing the Arduino interface with a simulator (SimulationNotebookApp), so the app can be used without the real hardware, as a demonstration.

This project implements four different control techniques (Manual, On-Off, PID and MPC) so the user can test and visualize the differences between them.

There is also a configurations window that presents some parameters that can be adjusted for the whole simulation or for each control technique.

The interface was build using ipywidgets and bqplot. The dynamic plant simulation is done using scipy odeint function, whilst the MPC is implemented using the gekko library. For more information regarding the MPC options refer to the gekko documentation (https://gekko.readthedocs.io/en/latest/).

Dependencies

Install

pip install tclab_jupyter

Usage

Import the module and create an object as shown below.

from tclab_jupyter.ui.notebook import SimulationNotebookApp
demo = SimulationNotebookApp()

To open the main window, call the app function.

demo.app()

App Screenshot

To open the configurations window, call the config function.

demo.config()

Config Screenshot

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

tclab_jupyter-0.1.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tclab_jupyter-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file tclab_jupyter-0.1.0.tar.gz.

File metadata

  • Download URL: tclab_jupyter-0.1.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for tclab_jupyter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3325e924466b666f1cb7bc04cebfdd3b5b70919178e482df88904792a068b4ef
MD5 ed1540a0601ba0f7269454acff2ff2c5
BLAKE2b-256 98ad0300831924db591f835d2b252eba309e5d849725953668d7e78220d139c2

See more details on using hashes here.

File details

Details for the file tclab_jupyter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tclab_jupyter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af4df9081578b62f70b8d60d2ca3bec7f5658f1ea2749194c53f412662193840
MD5 34467d8cc12898075f102710d1811a84
BLAKE2b-256 9e5c97aafd936ccc9c51f0836e1eaa32657950bf21088b39b6aa3a42e7577e75

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