Welcome to infilum

PID Controller Implementation in Software

Click here to get this post in PDF

How to implement a PID controller in software using C, discussing theory and practical considerations. Demonstration of PID controller code using a custom flight simulator.

Source code available here: https://github.com/pms67/PID

Dynamic integrator clamping: https://e2e.ti.com/blogs_/b/industrial_strength/archive/2013/04/13/teaching-your-pi-controller-to-behave-part-vii

[TIMESTAMPS]
00:00 Introduction
00:39 Control system basics

02:40 PID representation in continuous domain
04:57 Converting from the continuous to the discrete domain
06:11 PID controller difference equation

07:35 Practical considerations
10:48 Basic software structure

11:53 Implementation in C

18:46 Example: Flight simulator using PID controller code



Leave a Reply

Your email address will not be published. Required fields are marked *