Skip to main content

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

Metadata

Release files for tclab-jupyter 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tclab-jupyter 0.1.0
File Size Uploaded
tclab_jupyter-0.1.0.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tclab-jupyter 0.1.0
File Interpreter ABI Platform
tclab_jupyter-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 kB

Release files / tclab_jupyter-0.1.0.tar.gz

Download URL tclab_jupyter-0.1.0.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3325e924466b666f1cb7bc04cebfdd3b5b70919178e482df88904792a068b4ef
BLAKE2b-256 checksum
How to use checksums
98ad0300831924db591f835d2b252eba309e5d849725953668d7e78220d139c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / tclab_jupyter-0.1.0-py3-none-any.whl

Download URL tclab_jupyter-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af4df9081578b62f70b8d60d2ca3bec7f5658f1ea2749194c53f412662193840
BLAKE2b-256 checksum
How to use checksums
9e5c97aafd936ccc9c51f0836e1eaa32657950bf21088b39b6aa3a42e7577e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page