logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Smokehouse analogue thermometer for PT1000, LM358 and ESP8266

sznickers 1734 52
Best answers

Why does my PT1000/LM358 smokehouse thermometer top out at about 144°C, and how can I extend the measurement range?

The 144°C ceiling is likely caused by the LM358 output voltage high limit, so lowering R4 to 5 kΩ and rescaling the reading in software should extend the PT1000 measurement range [#21749157][#21749586] The thread author confirmed that after changing R4 to 5 kΩ and recalibrating, the sensor range increased and it worked [#21749586] If you later want a more accurate and simpler RTD solution, the thread also suggests using a MAX31865-based PT100/PT1000 module instead of the LM358 analog front end [#21781376]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21749128
    sznickers
    Level 11  
    Hi,
    i am creating a thermometer for the smokehouse ... :) .
    I have managed to make an analogue temperature sensor based on a PT1000 sensor at this point. It comes in a gel cable. According to the manufacturer the range can be -50*C-200*C. I managed to get max. 144*C. I don't know if the LM358 limits this ?
    The PT1000 sensor is supposed to measure the smoke temperature.
    Wiring diagram of PT1000 sensor with LM358 amplifier and microcontroller
    The circuit is based on an ESP8266 Wemos. It is accompanied by an LCD1602 display. I'm running on ESP Easy and I'm fine with it.
    I may do a second option with zaSUPLOwing - Supla has a good readable app on the tel.
    I calibrated the sensor at two points : at 100*C and 0*C. I also fitted a second sensor : DS18B20, but this one will be as an outdoor temp, or a sensor to stick in the meat.
    Electronic circuit with ESP8266, PT1000 sensor and LCD display on cutting mat
    I would still like to do e.g. a fiddly thing like some sort of buzzer when the temperature rises, or falls below the range, to either boost or dim.
  • ADVERTISEMENT
  • #3 21749570
    sznickers
    Level 11  
    That's what I suspected, in the kk LM358 it says up to 150*C -mi up to 144*C, but more than that I'm unlikely to need, but it begs the question what layout for higher temperatures?

    Added after 3 [minutes]:

    I sealed the whole thing in tins.
    Electronic system in enclosure with LCD display and temperature sensors
  • Helpful post
    #4 21749586
    tos18
    Level 42  
    Reduce R4 to 5 kΩ and scale the transmitter in the software.
  • ADVERTISEMENT
  • #5 21749587
    sznickers
    Level 11  
    OOO :) , thanks - I will be happy to test :) .

    Added after 11 [hours] 7 [minutes]:

    Works, thanks to :)
    Increased the temperature measurement range on the PT1000 after changing resistor R4 to 5kOhm. Of course I recalibrated it as well.
    Temperature display with label “Wędzarnia” and device IP address.
  • #7 21750331
    sznickers
    Level 11  
    >>21750183
    OO Lord you see-that's another good idea. Thanks.
    https://espeasy.readthedocs.io/en/latest/Plugin/P039.html
    The library I can see would be, there is a description of what and how.
    For the smokehouse I don't need such accuracy, butee I was planning to make precise temperature sensors for the heat meter I have for the heat pump- there two decimal places would be useful because now I have for it on DS18B20 and it's Chinese, so .... accuracy of measurement and calculation, indications - poor.
  • #8 21750456
    fachman1964
    Level 5  
    sznickers wrote:
    Hi,
    i am creating a thermometer for the smokehouse ... :) .
    I have managed to make an analogue temperature sensor based on a PT1000 sensor for the moment.

    And not simpler to use a budget specialised RTD Adafruit MAX31865. 10zl at a Chinese manufacturer. Measurement with an accuracy of 0.2*C. Plenty of code examples on the web.
  • ADVERTISEMENT
  • #9 21750463
    sznickers
    Level 11  
    >>21750456
    Well that's what I understand tos18 wrote about
  • ADVERTISEMENT
  • #11 21750786
    sznickers
    Level 11  
    >>21750717
    Very cool design.
  • #12 21751535
    fachman1964
    Level 5  
    I have now added the video
  • #13 21751595
    krzbor
    Level 29  
    sznickers wrote:
    For the smokehouse I do not need such accuracy, but I was planning to make precise temperature sensors for the heat meter I have for the heat pump- there two decimal places would be useful because now I have on it on DS18B20 and it is Chinese, so .... accuracy of measurement and calculation, indications - poor.

    It says: The module provides a high measurement accuracy of 0.5°C
    This is what the DS18B20 will also achieve. Plus the non-linearity of the PT. And the heat meter is not so simple, because you still have to measure flows.
  • #14 21751646
    sznickers
    Level 11  
    krzbor wrote:
    because you still have to measure the flows.

    i know-I have no problem with this :) .
    Professional heat meters are based on PT temperature sensors , but certainly not DSs. Basically with LC it is the delta that is important, or in other words both sensors next to each other at the same temperature you need them to indicate the same thing.
    Coming back to the DS18B20 - it would be interesting to see how the original ones would behave.
    However, here in my project I use a PT1000 sensor because the DS ends its operating range at 125*C.
  • #15 21751658
    krzbor
    Level 29  
    sznickers wrote:
    Back to the DS18B20-I wonder how the original .
    would behave
    According to the data sheet, that is, a maximum error of 0.5 degrees (probably less), and a resolution (12 bit) of 0.0625 degrees. Once these have been calibrated, the difference between the two can be determined and corrected by software. By the way - write what results you got from the Chinese and why are you complaining so much about them? I've encountered mishandling of the standard - i.e. they don't always work on two wires, but when there is a separate power supply (3 wire connection) it's OK.
    And this is a review from Allegro (waterproof sensor with wire for £6):
    Although according to the serial number it is not an original Dallas the indications are very precise. Out of the 4 pieces purchased, only one indicated a difference of 0.2*C from the others. This is very little! and comparing with a laboratory thermometer, these 3 indicated 0.1*C more and this one 0.1*C less.
  • #16 21751673
    sznickers
    Level 11  
    Kamstrup has PT500 sensors.
    Nameplate of Kamstrup PT500 sensor with 10–150°C temperature range
    How accurately do these temperature sensors indicate-precision to 0.01*C !



    As for the DS180B20- what people write there, let them write- I always connect 3-wire with 12bit resolution. What DS I will show another time a test-their comparison.

    Added after 2 [minutes]:


    Temperature sensor resistance table for various sensor types and degrees Celsius
  • #17 21751691
    tos18
    Level 42  
    sznickers wrote:
    How accurately do these temperature sensors indicate-precision to 0.01*C !


    Don't confuse resolution with measurement accuracy, buddy !
  • #18 21751839
    sznickers
    Level 11  
    >>21751691
    I know what you are writing about.
    I connected the two sensors together during a real-time measurement.

    Added after 2 [hours] 33 [minutes]:

    Above 128*C the DS18B20 shuts down, fades out, below that temperature it comes back, and the PT1000 bravely works.
    The 7 segment display maybe like a senior citizen, but in practice the best.
    Smokehouse analogue thermometer for PT1000, LM358 and ESP8266
    Preview in Domoticz :
    Smokehouse analogue thermometer for PT1000, LM358 and ESP8266
    34*C is the meat temp, (DS18B20) and 65*C is the PT1000 analogue .
    I fitted two lights, LEDs to indicate when the temperature is exceeded (dim) , or is too low (sub) or yellow - when the meat reaches 70*C.
  • #19 21753566
    sznickers
    Level 11  
    Comparison of 4 ds18b20 sensors - two each on the supply and two on the return, preview while the heat pump is on:



    Viewed while the heat source is off. and while the circulation pump is on - so theoretically they should all be equal:



    Conclusion: I could apply a sensor correction, a little will only help.

    Added after 7 [minutes]:

    Meat smoking chart:
    Meat temperature from 20*-55* for a smoking time of approx. 8h
    Meat temperature chart during smoking, ranging from 0°C to 60°C over the course of a day
    Smoke temperature:
    Smoke temperature chart from the last 3 days, showing fluctuation between 11:00 and 22:00
  • #21 21775904
    tos18
    Level 42  
    One sensor.
    Solder the jumpers.
  • #22 21776047
    fachman1964
    Level 5  
    sznickers wrote:
    I already have this MAX31865 module

    I have two-wire sensors then I need to solder the "2wire" jumper ?


    Why did you choose the least accurate PT. two-wire for the small price difference? And not the max accurate four-wire?
  • #23 21776050
    sznickers
    Level 11  
    These are the sensors I have, but the fact is you are right.
  • #24 21776100
    tos18
    Level 42  
    If you have two-wire sensors and a large distance to the transmitter then there is nothing stopping you from using a four-wire line.
  • #25 21776109
    sznickers
    Level 11  
    I haven't played around with this sort of thing yet, but I've poked around and I think I already understand.
    4-wire Pt100 sensor wiring diagram with two red and two white wires
    The ones I have 2 wire factory company ones I'll leave them in- I'm not going to unsolder them, and I'll make myself a 4-wire test circuit with two such sensors at some point.
    At 2-wire they should be connected to which pins?
    MAX31865 temperature sensor module with labeled pins and RTD connections
    F- and F+ ?
    Actually this is an advantage for long distances to the sensor.

    Added after 2 [minutes]:

    Still wondering how many pins I need for such a circuit....
    Wemos D1 Mini pinout diagram with GPIO numbers and pin roles labeled
    Because it will soon turn out that one board max=one esp
  • #26 21776111
    fachman1964
    Level 5  
    As I was making the multi-sensor thermostat described on the electrode I examined the theory practically. If I wanted to use the PT100 two-wire version, I had about 3 degrees of difference from the reference/benchmark thermometer. And there would be nothing wrong with that because such a difference can easily be bridged by software via offset. But there is something more serious. Linearity. And this is where the stairs begin, unfortunately. What have I worked out to make the temperature reading reasonably linear. Steinhart-Hart polynomial, Newton-Raphson method, correction table, Linear Interpolation, Everything did not meet my expectations. I finally used the PT1000 four-wire and was pleasantly surprised. At the ends of the measuring ranges deviation without any "fiddles" only 0.5*C centre of the scale identical to the indication of the reference thermometer.
  • #27 21776114
    sznickers
    Level 11  
    >>21776111 you have described it nicely, I see you are an expert on the subject. I'm interested in the accuracy of measuring the two temperature sensors against each other.
  • #28 21776135
    fachman1964
    Level 5  
    I don't know if you know this MAX31865 module from the photo is universal it is factory adapted for PT100 4 wire but by soldering jumpers it can work in 2, 3 no and 4 wire mode and by changing R(ref) as a reading from PT1000. There is also an 'Adafruit' library which I used when writing the program.
  • #29 21776146
    tos18
    Level 42  
    sznickers wrote:
    The ones I have 2-wire factory branded I'll leave them in - I won't desolder them,

    You don't have to - just shorten the wires from the sensor as much as possible (make the split as close to the sensor as possible) at PT1000 a dozen cm of two wire line should not make a problem.
    sznickers wrote:
    After the 2 wires should be connected under which pins?

    whichever left and whichever right
    e.g. F+ and F- or RTD+ and RTD- or F+ and RTD- or F- and RTD+
    after all, you connect F+and RTD+ with a jumper just like F- and RTD-.
  • #30 21776151
    sznickers
    Level 11  
    >>21776135 Yes, I read about this resistor from the msalmon website.

FAQ

TL;DR: PT1000 probe rated −50°C to 200°C; “I calibrated the sensor at two points: 100°C and 0°C.” This build uses ESP8266 + LM358, and range improved by tweaking R4. [Elektroda, sznickers, post #21749128] Why it matters: This FAQ helps hobbyists make a robust smokehouse thermometer, choose the right front-end, and avoid accuracy traps.

Quick Facts

How do I push the PT1000 measurement range higher with LM358 and ESP8266?

Lower the gain-setting resistor R4 to 5 kΩ and rescale in software. This increases headroom before the op-amp output saturates. Recalibrate after the change. Users reported success extending the readable temperature above the earlier ~144°C ceiling with this exact tweak. [Elektroda, sznickers, post #21749587]

Is the LM358 limiting my max temperature reading?

Yes, when the output approaches the positive rail the LM358 cannot swing fully, so your ADC sees a clipped signal. That looks like a temperature ceiling. Reduce gain or sensor current so the output stays inside the linear swing. Quote: “Output voltage high.” ["LM358-D datasheet"]

What temperature range should I expect from the PT1000 probe in this build?

The cable PT1000 used here is specified at −50°C to 200°C. The initial analog front-end reached about 144°C before changes. After scaling and recalibration, higher readings became accessible. For smokehouse control, this comfortably covers typical targets. [Elektroda, sznickers, post #21749128]

Why won’t my DS18B20 survive smoke temperatures?

DS18B20 sensors operate up to 125°C. In testing, a sensor faded above ~128°C and recovered below that. Use DS18B20 for meat or ambient probes, not the smoke path. The PT1000 remains reliable for the hot flue stream. That thermal behavior is expected. [Elektroda, sznickers, post #21751839]

Should I switch to a MAX31865 RTD interface instead of an analog LM358 stage?

A MAX31865 module simplifies RTD conditioning and SPI reads, and budget boards claim ~0.2°C accuracy. Libraries and examples abound, cutting tuning time. It’s a good choice when you want precision and stability without analog trimming. [Elektroda, fachman1964, post #21750456]

How do I perform a quick two‑point calibration in ESP Easy?

Use boiling water and an ice bath to set 100°C and 0°C references. 1) Record raw ADC values at 0°C and 100°C. 2) Enter slope/offset in ESP Easy calibration fields. 3) Verify against a known thermometer at midrange. Recheck after resistor changes. [Elektroda, sznickers, post #21749128]

Can ESP8266 with ESP Easy and an LCD1602 handle this project?

Yes. The build uses an ESP8266 Wemos board running ESP Easy, with an LCD1602 for local readout. It also supports alternative apps like Supla for phone visibility. The stack is proven in this smokehouse context. [Elektroda, sznickers, post #21749128]

How can I add alarms for over‑ or under‑temperature?

Drive a buzzer and LEDs from spare GPIOs with simple thresholds in firmware. One user added LEDs for too-low, too-high, and a special color at 70°C meat temp. Buzzer alerts help you boost or dim the fire promptly. [Elektroda, sznickers, post #21751839]

Are cheap DS18B20 clones usable if I calibrate them?

Yes. Expect around ±0.5°C typical accuracy and 0.0625°C resolution at 12‑bit. Calibrate and apply per-sensor offsets. Many clones behave well when powered 3‑wire rather than parasitic power. A user review showed deviations within ±0.2°C among samples. [Elektroda, krzbor, post #21751658]

What’s the difference between resolution and accuracy here?

Resolution is the smallest display step; accuracy is how close you are to the true value. A sensor can show 0.01°C steps yet be off by more. Expert reminder: “Don’t confuse resolution with measurement accuracy.” [Elektroda, tos18, post #21751691]

Can I use PT500 sensors like in commercial heat meters?

Yes, many professional heat meters use matched RTDs such as PT500 pairs. One example showed a display with 0.01°C resolution. For heat meters, matching and stability matter more than tiny display steps. [Elektroda, sznickers, post #21751673]

Do I need flow measurement for a DIY heat meter with RTDs?

Yes. Heat energy requires temperature delta and volumetric flow. Accurate flow sensing is essential along with matched temperature probes. Without reliable flow, energy calculations drift. [Elektroda, krzbor, post #21751595]

Is there ESP Easy support for MAX31865 on ESP8266?

Yes. ESP Easy includes a MAX31865 plugin (e.g., P039) with setup guidance. That makes PT100/PT1000 integration over SPI straightforward, reducing code work. [Elektroda, sznickers, post #21750331]

What practical upper temperature can I read after scaling changes?

After changing R4 to 5 kΩ and recalibrating, the builder reported extended range beyond the earlier ~144°C limit. The exact ceiling depends on supply voltage, wiring, and ADC headroom. [Elektroda, sznickers, post #21749587]

How do I correct DS18B20 offsets across multiple probes?

Log all probes side-by-side with the pump circulating but heater off. Compute each probe’s offset versus group mean. Apply per-sensor corrections in software. The author did this during heat‑pump testing. [Elektroda, sznickers, post #21753566]
Generated by the language model.
ADVERTISEMENT