Heater Code setup question
-
@drak said in Heater Code setup question:
M308 S0 P"e0temp" Y"thermistor" T100000 B4138 F10 ; configure sensor 0 as thermistor on pin e0temp
M950 H0 C"e0heat" T0 Q10 ; create nozzle heater output on e0heat and map it to sensor 0
M307 H0 B0 S1.00 ; disable bang-bang mode for heater and set PWM limitI assume it is heater 0. The M308 and M950 commands look reasonable, however you haven't tuned the heater. You probably need to run M303 heater tuning before you can get it working.
More things to check:
- Does the temperature reading appear to be correct?
- If the SSR has an LED to indicate when it is turned on, does that LED light initially (before the fault is reported) when you command the heater to heat up?
-
@dc42
The temp seems reasonable when the hot end it inactive. It reads 25 degrees celcius which is around room temp.The light on the ssr does light up when i set it active to 215 temp.
When i run the 303 command i get this error:
-
@drak you need to provide H and S parameters in the M303 command.
-
@dc42
the tuning seemed to cancel itself, here is the console: -
Is the heater actually getting warmer? Did the temp graph register an increase in temp?
-
@phaedrux
The temp. would increase but only by 2-3 degrees total before the tuning stopped. -
@dc42
how would i confirm the SSR is wired correctly?
The red light does come on when i set the tool active to 215 -
How is the thermistor attached to the bed? It seems like they are very weakly physically coupled.
-
@phaedrux
is heater 0 only meant for the bed, because the heater element im using is meant for a hot end -
No, heater 0 is just the first heater. It can be used for a hotend.
You may want to try bang-bang mode with this heater.
But where is the thermistor in relation to the rest of the heater? Can you show us photos of the setup?
-
@phaedrux
how would i activate bang bang mode?
here is picture:
i have both close to heating element. originally i had them directly on aluminum but i moved them closer since they werent reading any changes in temp
-
That's a very loose connection between the theristor and the heat source.
You've got two thermistors in there, which are you trying to use for control?
-
@phaedrux should i directly tape them to the heating element?
-
@phaedrux
how do i activate bang bang mode? -
@drak said in Heater Code setup question:
M307 H0 B0 S1.00
M307 H0 B1 S1.00
B1 would be bang bang mode. But it's still going to have to register a temp increase for it to not fault out.
Is this a temporary setup, or intended for actual use?
-
@phaedrux the goal is to use this heating element long term
-
In this configuration, or improved? At the moment, it's a bit "janky" as the kids say.
I wouldn't want to run a heater control with a thermistor attached with tape. When it falls off (and it will) at best you ruin a print.
-
@phaedrux this setup is just to workout the duet control side of the heating element and make sure i can heat up the aluminum consistantly
-
the goal is to use this heating element long term
What temperatures do you aim at with this bold construction? From what I can see on your photo, most of the 50 watts dissipate into air, the rest tries to heat up the aluminum, the clamps and all the other metal connected by those.
Sure you can control that with the Duet - the question is: Can such a construct be covered by the PID tuning, or is the heat increase too slow for the algorithm? In the latter case, you will want to insert proper values for
M307
by guess. Here you can look up the details. -