Skip to content
/ PID Public

This project simulates a water tank controlled by a P controller and a magnetic train catching boxes falling from the sky using a PID controller.

Notifications You must be signed in to change notification settings

20030726/PID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

PID Control Project

This repository contains two MATLAB scripts that explore the application of PID controllers in controlling two different dynamic systems: a magnetic train and a water tank. While both systems demonstrate the principles of PID control, they also highlight certain challenges that remain unresolved.

Table of Contents

Introduction

The objective of this project is to demonstrate the use of PID (Proportional-Integral-Derivative) controllers in stabilizing two dynamic systems:

  1. Magnetic Train: A system where the goal is to maintain the levitation of a train.
  2. Water Tank: A system where the water level is controlled to remain within desired bounds.

Each section outlines the current state of the simulations and the issues that still need to be addressed.

Magnetic Train

Description

  • Script: magnetic_train.m
  • Objective: To maintain the stable levitation of a magnetic train using a PID controller.

Unresolved Issues

  • Multiple Simulations: The break condition did not initialize for each simulation individually. Instead, it followed the train_top value from the last simulation to determine if box_bottom <= train_top.

Water Tank

Description

  • Script: water_tank.m
  • Objective: To maintain a desired water level in the tank by controlling the inflow using a PID controller.

Unresolved Issues

  • Delay in Water Flow Response: The model currently does not accurately simulate the delay in water flow response, which affects the controller's performance.
  • Over-Compensation: The PID controller tends to over-compensate for changes in the water level, leading to oscillations around the setpoint.
  • System Linearization: The water tank system assumes linear behavior, which may not hold true for larger disturbances or changes in the inflow rate.

Requirements

  • MATLAB R2023b

About

This project simulates a water tank controlled by a P controller and a magnetic train catching boxes falling from the sky using a PID controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages