ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Example Code

PID temperature controller with on/off and lm35 sensor

Code and Documents

Attachment

Dear all

recently I research for a program that can control the temperature with PID.

Many programms with analogue output from 0-5v like to control a dc motor for example.

I needed a analogue output (PWM) to open or close the rele that arms the heater, but controlled by the pid.

My program works with NI6008, a 5v rele, heater and one lm35 temperature sensor.

So if you need to control the temperature in a room or oven, here is the good example.

Best regards from Portugal

CPalha

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
happyweekday1243
Member
Member
on

I set the point 60, but when I run this program ,it stopped at 50 .😥捕获.PNG

Contributors