Temperature Control

More
10 Feb 2018 11:54 #105699 by Hawkeye
Hawkeye created the topic: Temperature Control
Hello all,

I am currently struggeling to create a temperature controller for a 3D extruder head..

I already hooked an Arduino (with a 100K sensor) using python to my machine.
The customgui seems also be working and shows the temperature recorded by Arduino as a bar graph.
So far - so good..
But now I have to setup an PID (and I guess an pwm-) controller.
My expectation was to have a output bit-signal that can be used to switch on the heater if temperature is less than commanded.
The PID-Controller itself should control between upper 280°C and lower limit 0°C.
My hardware uses an SSR relay to switch heating on and off again.

Any thoughts on this? Here is what I have so far:
loadrt pwmgen output_type=0

addf pwmgen.make-pulses base-thread
addf pwmgen.update		servo-thread

setp t0-pid.enable			1
setp t0-pid.Pgain			1
setp t0-pid.Igain			1
setp t0-pid.Dgain			0
setp t0-pid.maxoutput		280
setp t0-pid.command			20
setp t0-pid.feedback		220
setp t0-pid.FF0           	0
setp t0-pid.FF1           	1
setp t0-pid.FF2           	0.1
setp pwmgen.0.enable		1
setp pwmgen.0.scale			1
setp pwmgen.0.pwm-freq		1000
setp pwmgen.0.dither-pwm	0
setp pwmgen.0.min-dc		0

net t0-pidout				t0-pid.output			=> pwmgen.0.value
net hotend-is-on									<= pwmgen.0.pwm


Thanks in advance,
Ben
Time to create page: 0.356 seconds
Powered by Kunena Forum