PID Controller source code and hardware
Jump start your embedded control project

Our PID Controller source code (C code) has everything you need to realise efficient optimal control, including bumpless PID with limit handling and setpoint weights in all terms, bumpless low pass and notch filters, and auto-tuning. Our code is running in all sorts of systems all over the world, such as wind turbine controllers, motion controllers, and mould temperature controllers.
If you want to implement this software in dirt cheap hardware, Arduino might be suitable for you, and we have prepared a complete packacke for you (hardware and software).
Description of the software package
What exactly is in the software package? The package consist of a batch file, to compile and link the code using the GCC compiler (free and public), and ANSI C source code only. There are no 3d party libraries involved. All code is commented. The ANSI C-code (text files) consists of the following routines:- a Main file that calls the subroutines, and simulates an FOTD model and the controller with add-ons and logs the simulated data to a text file
- the PID controller (as a subroutine)
- Autotuning (as a subroutine)
- Second order filters that allows you to create any type of filter, like notch filters, lead lag, low pass (subroutine)
Customer reviews
” This PID Controller source code with self-tuning algorithms and filters included, continues to work extremely well. We could not be more pleased with the results! ”CEO of J-Systems Inc, Lombard, USA.
” We have successfully applied the PID Controller source code in an embedded mould temperature controller. Using the PID Tuner software of DotX we tuned the PID settings to obtain fast temperature control with minimal overshoot. ”
H. van Hulsen, Control Engineer at Small Processor Systems B.V., the Netherlands
Arduino Package
Our Arduino hardware/software package runs our PID Controller source code and is prepared to connect with the PID Tuner and PID Monitor.You can either buy the package pre-installed from us, or buy the components yourself and install the software yourself. The included components are listed below, and the wiring scheme can be found here.
- Arduino Uno
- Solid State Relay: SSR-40DA
- Temperature Sensor: DHT20
- source code of PID Controller
- source code to connect with the PID Tuner
- source code to connect with the SSR-40DA and DHT20