A guide on how to tune a PID controller #260
maxeitelwein
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description: This post aims to help users understand how to tune their thermostat controller with a simulation.
To get a first impression of how your room's temperature reacts to a heater, I wrote a small simulation of a room climate system, which can be found at the bottom of this post. To run it just copy it to your PC, input your room's parameters and run it with python. It will show you in a graph how the temperature of a room will react to a heater that is controlled by a PID controller.
Understand the important parameters
1. Heat Capacity (C)
The heat capacity of a room is a measure of how much heat is required to change the room's temperature by 1°C.
2. Thermal Resistance (R)
The thermal resistance (R) of the room walls determines how effectively the walls prevent heat from escaping. Typically around 0.5-1 W/m·K for badly isolated houses and 3-5 for new and better isolated houses.
3. Maximum Heating Power (Q)
The maximum heating power (Q) refers to the maximum output of the heating system, typically provided by the manufacturer. It is usually given in Watts (W).
How to tune the PID controller
Code
To get a understanding to what I assumed is a "good tuning", just run the code with the set parameters.
Have fun with it.
Beta Was this translation helpful? Give feedback.
All reactions