10th week :the PID

Hello guys,

This week we worked for the first time on the PID function.

image3

For the temperature regulation we use the PID library by Brett Beauregard.

From Wikipedia: “A PID controller calculates an ‘error’ value as the difference between a measured [Input] and a desired setpoint. The controller attempts to minimize the error by adjusting [an Output].”

So, the input come from our heat sensor (DS18S20), for the setpoint we use a potentiometer, and the output is a solid state relay.

image4.png

The main difficulty is to find the right parameters for the PID. There are 3 Tuning Parameters: Kp, Ki & Kd. We have to do some tests, for now, the best results were with:

  • Kp=5
  • Ki=0
  • Kd=3

For the moment, we are going to use these data because it works well even if the user has to wait enough time for the soup would be hot.

We are happy because we slowly see the end of our project!

See you!

BERTRAND, DEPARIS, LATOUR, THOMAERE, VAN DEN BOSSCHE.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s