Temperature sensors in the Extra-tab possible?
-
Hi!
Can another temperature sensor be added to the Extra-tab, where the MCU-temperature is shown? When yes, then how? -
@christoph13524 The answer here is "it depends". Can you be a bit more specific on what actually you want to do?
But this is doable, as I have two DHT22 sensors attached to my Duet and configured so they show up on the Extra tab. You will probably have to define a new/virtual heater with
M305
and it is important to give it a name via theS"..."
parameter. That is imperative for it to be shown in the Extra tab in the first place. -
@wilriker I just want some temperature senors in my heated chamber. Only sensors, no tool or heater. And I don‘t want them to show up in the tool list.
So just set up one with M305 and the S parameter. And only because of the S parameter it will appear in the extra-tab?
What is a virtual heater (P parameter)? -
@christoph13524 said in Temperature sensors in the Extra-tab possible?:
@wilriker I just want some temperature senors in my heated chamber. Only sensors, no tool or heater. And I don‘t want them to show up in the tool list.
This is achievable.
So just set up one with M305 and the S parameter. And only because of the S parameter it will appear in the extra-tab?
What is a virtual heater (P parameter)?Depending on the type of temperature sensor and how you connect it you do need a virtual heater that will be created by setting the
Pnnn
parameter as you already guessed. Simply choose any number larger than 102, e.g. 103 in this case.
If you use a thermistor that is connected to e.g. second extruder thermistor connector on the board you can simply useP2
.In case you use a virtual heater you will also need to tell it which heater channel it is using by the
Xnnn
parameter.All details about this process can be found at the documentation for M305. If you still have questions don't hesitate to ask here again. In this case please also provide information on what type of temperature sensor and how you want to connect it to your Duet.
-
Now I am home and I could test it.
I still failed. I was able to list the temperature sensor on the extra-tab but have no clue which channel and heater number it is.I have 4 tools with 4 PT100 sensors on the daughterboard which are heater numbers P0, P1, P2, P3 and channels X200, X201, X202, X203.
Now I connect the thermistor (E3D) to E0. Which heater number it has to be? Something with 100 (hundred for virtual heater --> so it shows up in the extra-tab) --> so P101? (P100 is MCU temperature I think).
With P101 the thermistor is listed in the extra-tab but it shows 0°C.
So I need to tell it which channel (X parameter) the temperature sensor is connected to. It is connected to E0. So which channel is E0? X101? --> interferes with X201... --> then X201 and X101 shows 2000°C faults. So why do they interfere? What's the difference between X101 and X201?How to connect a thermistor: VSSA is ground and Thermistor 1 is red wire. Correct?
-
@christoph13524 So,
E0
's channel number is actually just 0, so that makesX0
.For the virtual heaters: 100 to 102 are taken up already:
- 100: MCU
- 101: TMC over-temperature-warning for drivers on Duet
- 102: TMC over-temperature-warning for drivers on DueX
The latter two have just three hard-coded values:
- 0°C: everything OK
- 100°C: over-temperature warning
- 150°C: thermal shutdown
So you have to take any number starting from 103 to define a new virtual heater.
That would make a
M305 S"Chamber temp. top" R4700 T100000 B4750 P103 X0
About your questions what
X101
means:Channels 100, 101... are MAX31855 thermocouple channels using chip selects CS1, CS2... on the SPI bus
EDIT:
How to connect a thermistor: VSSA is ground and Thermistor 1 is red wire. Correct?
Yes, this is correct.
-
Actually, X0 is the bed thermistor. The E0 thermistor would be X1. So use P103 and X1.
-
Thanks a lot guys!
Everything is working now. -
@dc42 said in Temperature sensors in the Extra-tab possible?:
Actually, X0 is the bed thermistor. The E0 thermistor would be X1. So use P103 and X1.
Thanks for spotting this, that slipped - I should not try to fix message broker settings and reply to complicated forum posts at the same time.
-
Just out of interest, is it possible to list the stepper driver temperature in the extra-tab, too?
-
@christoph13524 Yes and no.
You can easily add the pseudo-heater for temperature warnings to it by addingM305 P101
and assign a name. But that would only give you one of the three generic values as I described earlier.
To get the real temperature you'd have to stick thermistors onto the chips and configure them as you did for your chamber sensor.