-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Configurable offset for PT100 #16561
Comments
I see that max31865.temperature(100, 400) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor This is where you would subtract 6. But maybe you can also fix it by putting in a more accurate calibration resistance value. |
Indeed this could be the wheel to turn. For showing to high temperatures also excessive long or thin wires, with a high resistance, in between module and PT100 could be the reason. 3- and 4-wire modes are currently not supported by Marlin so this can't be easily compensated away. |
Well, that might be part of it. See if |
I use ultimaker amplifier clone I believe it is not max31865 and I set #define TEMP_SENSOR_0 20 |
This is apparently the circuit diagram for that board https://wiki.e3d-online.com/images/8/83/PT100_Schematic_%28v1%29.png |
This is the same as #18420 |
It is powered from stabilized 3.3v (SKR1.3//Sbase/SKR1.1pro) |
And why the hell not 21? |
As AnHardt politely pointed out. |
I tried but 21 shows room temp 1C (!). So it is unusable. Possibly incompatible amplifier board |
you mention several controllers, which controller did you use and how did you wire in the pt100 amplifier? |
I use all of them (but only 32bit ones). MKS SBASE 1.3 and SKR1.3 (lpc1768 based ) SKR1.1pro (stm32F407 based). |
Wow! What happened? You accidentally gave us more than one new information per message.
That would have been the next question. Did you do that right? You did not accidentally remove the wrong resistor or removed the capacitor or made a bridge instead? All more on the unlikely side - on 3 boards. What is the temperature reading when the module is not plugged in? Concentrate on one of the boards. Before the next reply i expect to get: Configuration.h, Configuration_adv.h, Platformio.ini, pins-file, a closeup photo from the place the resistor is removed, a ( photo ) documentation about - how the module is connected to the board. For only one board - with all information about the same board. I'm tired of guessing. |
Please take a look at PR 16731 for a similar discussion on PT100, PT100 amplifiers and 5V vs. 3.3V. I've ended up using a PT1000 sensor with a 1000 Ohm 0.1% pullup and no amplifier. I have a different view about how to handle thermal inputs than a lot of others. I maintain, in a hobbyist world (only a few printers), that it is the repeatability of the temperature measurement that is critical. If you are following the recommendation to do test prints with each new batch of filament then you are determining the best INDICATED temperature for your system. It doesn't matter what the indicated temperature is, just that you can reliably get back to it. Under this approach the 4-6C offset you are seeing at room temperature is of no concern. |
What's the problem with removing pullup resistor? Its common way. I did it only after connecting to manual recommended ADC ports. Then I compared temp reading with removed resistor port. The same. I prefer to use common THx ports on the boards and save spare pins. |
Personally I always go the same way. But went with PT100: |
I think I'm seeing two threads here:
If there is a need to "fix" your system then I think that should be the topic of a separate issue. I'd prefer to limit discussion in this thread to if adding an offset option is something we should add to Marlin. |
Please take a look at PR #18687. I believe this implements your request. If yes then please close this issue. |
Sorry but more knowledgeable people pointed out some potential unwanted interactions between my simplistic approach in PR #18687 and the thermal protection features. The only other easy option I see is to create a custom thermistor table that has the offset built into it. |
thermistor_21.h might have a bug. See also #19234. The look-up table of ADC values is depending on both OP-Amp supply voltage as well as ADC-reference voltage. The conversion OV_SCALE is therefore not needed for 3V3 microcontrollers setups, in my opinion. |
This seems closely related to, and possibly a duplicate of #18809. |
Recently calibration resistance values were made configurable for PT100 devices: #19695 Once the correct resistance value is used, I suspect that eliminates the need for the offset requested here. Does anyone feel this still needs to stay open, or can it be closed? |
Given the earlier comments in this FR and the apparent lack of interest since my last post I am closing this FR. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In common case PT100 reading is about 4-6C higher at room temperature.
I think it is constant or almost constant (difference will be larger at high temp ) along the range. I need a command to set temp offset to subtract from sensor reading.
The text was updated successfully, but these errors were encountered: