Hot-End Thermistor Temperature calibration
-
I'm looking into a robust way of calibrating the hot-end thermistor connected to a BTT-E3-RRF board running RRF 3.3. This is a standard NTC 100k 3950 device. When I first set up the system there was a 20°C temperature error at the hot-end which meant that the extruder failed to push through filament properly (nasty clicking and popping noises).
I've found very little information on how to achieve accuracy in the temperature control of the hot end. The approach seems to be to set the supplier's published R25 and Beta values in a M308 entry in config.g. However, it would appear that such specifications are applicable to a limited range at low temperatures - e.g. 25 to 50°C so there can be larger errors at the higher working temperatures where accuracy is really needed.
I believe I can put together an RRF macro to recalibrate the R25 (or more appropriately the A coefficient in the Steinhart-Hart function) and Beta coefficient values applicable to a higher temperature range (say 180 to 260°C).
I'd be interested to learn if anyone else has looked into this - I have an algorithm already working in an Excel worksheet and I'm about to code the macro. One big stumbling block has been to get access to raw ADC readings used by RRF for temperature calculations. I can see how to get access to these data in Marlin but but I can't find a method in RRF - does anyone know how I can display and monitor these raw values? In the meantime, I'm having to use an iterative process to least-squares fit data to the measured temperatures - its tedious and messy!
-
@wombat37 the best answer is bin the 3950 and buy a proper thermistor. They are known to have poor resolution at higher temperatures (such as the temperatures used for printing) and no matter how well you calibrate it it is still a poor choice of thermistor.
That's just my 2 cents though -
-
@wombat37 Out of interest, how are you planning on acheiving this? To accurately determine the Steinhart coefficients, you need to be able to accurately measure the thermistor's resistance at several known temperatures. If you're trying to automate this on the Duet, how are you accurately measuring those 'real' temperature values?
There are plenty of online calculators where you can put in measured thermistor resistances at different known temperatures and calculate the coefficients. In some cases you might use an oven with a high quality thermocouple through the door, but it will still be full of errors.
The other thing to bear in mind is that different filaments, different nozzles, and even different speeds/print settings will all need slightly different temperatures to get a perfect print (e.g. my 0.8mm brass volcano needs about 10deg hotter on my delta for the same filament compared to my 0.3mm copper v6 on my corexy). Even if you do back-calculate the thermistor parameters, or get a high quality one to get a better temperature reading, it's probably worth doing a set of 'temperature towers' to dial in what temperatures your printer/filament etc actually need. Something like this: https://www.thingiverse.com/thing:2729076
-
Thanks everyone for the quick responses.
I totally agree that using a better quality thermistor is a good way to go. However, there are many more variables that affect the accuracy of temperature control. I just moved this same thermistor between two different boards with the same settings and saw a 20°C difference when measured independently. Something was different with the board, the cabling, the PSU, thermal lag, the firmware, etc., etc. I don't think a bad thermistor caused this.
Jay_s_uk stated that a 3950 thermistor has poor resolution at the top end. With a 12-bit ADC, this equates to about 19 counts/°C at 240°C. With the 104Gt (beta = 4267), it's much worse at about 12 counts/°C and a lower ceiling for the top temperature. So, I don't quite understand your comment about it being worse.
Proper calibration using independent temperature measurements is always a more reliable approach than just typing in expected numbers and then assuming that everything is working correctly. I know it's easy to dismiss stuff as cheap rubbish but unless you make measurements like this, it's difficult to have a basis for such claims.
Also, before you challenge my method of making these measurements, I used an expensive Omega probe thermocouple inside the nozzle which had been calibrated beforehand using melting pure tin metal (231.9°C) and not just ice and steam.
Back to my original question, is there any way of getting access to the raw data values from the ADC in RRF?
I apologize if I'm coming across a bit snarky - it's not intended. I do appreciate your input, I just like to fully understand things before I accept or dismiss them.
-
If someone made an automatic test device for thermistors that didn't cost an arm and a leg (I still need mine) I would get one.
Perhaps we could persuade someone here to invent such a testing device.
Lacking that I simply determine what temperature I need to see to get the results I want.
For example the PLA I have being using most works fine at a reading of 190. I recently have been using a new brand that works better at 200.
So perhaps those numbers are not correct but they do work.
-
@jay_s_uk So which thermistor would you recommend for temperatures up to 350ºC. I got an HT-NTC100K-B3950 in the belief I was getting something decent
-
I don't think it would be fully automatic but more macro-guided.
The macro would ask the user to adjust 3 or 4 temperatures and then do the calculations to determine values for R25 and Beta. I'm still thinking on how to handle the LowOffset and HighOffset settings, my board doesn't automatically calculate these.
Regarding the quality of the B3950 vs B4267 and other higher Beta thermistors, it might not be so much an issue of resolution but of noise and stability (and robustness). Lower resolution but less noise might be a better combination.
-
@ignacmc said in Hot-End Thermistor Temperature calibration:
@jay_s_uk So which thermistor would you recommend for temperatures up to 350ºC. I got an HT-NTC100K-B3950 in the belief I was getting something decent
I'd recommend a PT100 but you need a daughterboard. PT1000 would be my choice if the daughterboard was a deal breaker.
https://duet3d.dozuki.com/Wiki/Connecting_thermistors_or_PT1000_temperature_sensors
-
-
@wombat37 I think the issue with B3950s is more that they vary from thermistor to thermistor (so you can't trust the manufacturers B values) rather than that they're fundamentally less accurate.
In your case with the 20deg difference between two boards, it might be that you need to calibrate the ADC rather than the thermistor. There's a guide for doing it with Duet boards, but not sure how it compares for one of the ports for the E3...
https://duet3d.dozuki.com/Wiki/Calibrating_thermistor_and_PT1000_readings -
I seem to be on a roll, now
I've started reviewing the data sheets for expensive "high quality thermistors". Whereas the resistance seems to be stable (<1%) at a given temperature, the absolute resistance can be very variable. The specs seem be all over the place for Selco thermistors as shown in the table below. The Beta values change significantly between 0-50°C and 25-85°C ranges and the R25 value varies by almost 5% in some instances. The R25 variance doesn't affect things too much but the change in Beta certainly does and measurements are going to be way-off once the high temperatures are reached if we use Beta values for low temperatures in the M308 entry. So, in my mind, unless anybody can convince me otherwise, buying an expensive, high quality thermistor does not mitigate the need for proper temperature calibration. If the thermistor Beta and R25 varies between devices, then all the more need for calibration. QED.
-
How expensive is expensive for a high quality thermistor? Is it comparable to the price of a PT100 with daughterboard or a simple PT1000? I would say that the thermistor simply isn't the right tool for the job if you need accuracy across a wide range of temps.
Not to dissuade you from the calibration angle. Being able to take something cheap and calibrate it into better functioning is definitely worthwhile.
-
I seem to be losing this argument
My understanding is that a thermistor can match the performance of a platinum RTD - if it's properly calibrated!
It is the calibration that is the challenge because it's very non-linear and variable.
If we can make this easy then anyone's system currently using a thermistor (which I assume is the vast majority of us) could, without making any hardware modifications, get better temperature control of the hot-end (even with cheap thermistors). This would lead to consistent performance over long periods and and more reliable portage of methods between different systems.
Why wouldn't we want to do this?
-
@wombat37 said in Hot-End Thermistor Temperature calibration:
calibration that is the challenge because it's very non-linear and variable.
its not that we don't want to do this, but this is the issue. three options as far as i can see:
- Use a accurate meter and temperature bath/oven to get good coefficients at the temps you are interested in printing at (difficult).
- Print temperature towers for the filament/thermistor/controller combination. use that temperature.
- Use a more repeatable temperature sensor like a PT100 or PT1000
I favour 3, which still needs some of 2 to be done anyway because every filament is different.
-
Your point for an accurate thermometer is well taken but I'm not sure why you would need an oven/bath to do this. Air baths are notorious for thermal gradients (I used to help design and evaluate gas chromatographs). Pushing a well calibrated 1-mm (or smaller) diameter thermocouple probe through the heat-break and into the inside of the nozzle would be my approach.
I have a fourth suggestion:
- Publish thermistor Beta values for the 180-260°C range. I will try to put together some suggestions for these based on manufacturers' published R vs T tables.
This must be much better than using the Beta values published for a 0-25°C range.
Maybe this will be enough to eliminate the need for calibration.
-
@phaedrux Then a PT1000 could be adequate for any temp below 350ºC? I intend to be able to print in PLA, PETG, ABS....
-
@ignacmc yes, PT100 is great for lower temps too
-
@jay_s_uk Think I will be getting one and ditching the NTC100K....I suppose it does not have any disadvantage over a thermistor even at low temps
-
Just to throw another spanner in the works, temperature sensors will only the measure the temperature at the point where they are fitted and not necessarily at the point we are interested in. One can have a temperature gradient between the cold filament entering the hot end and the nozzle tip, with the heater and sensor fitted somewhere along that gradient. Furthermore, nozzles are often made from hardened materials which have different thermal characteristics to the block into which they are screwed. Also, the nozzle temperature can be affected by deflected part cooling air. Some time ago I attempted to measure this phenomenon https://somei3deas.wordpress.com/2020/05/21/the-effect-of-deflected-part-cooling-air-on-brass-and-steel-nozzle-temperatures/
My conclusion from all of this is that a temperature sensor will only give an approximate indication of the temperature that we are really interested in due to a number of factors in addition to the accuracy of the sensor itself. So calibrating a sensor to make it as accurate as possible is largely irrelevant as one will still need to print temperature towers in order to determine the optimum temperature to use, regardless of the absolute value reported by the sensor itself.