Coder Social home page Coder Social logo

MAX31855 Linearization about pidkiln HOT 4 OPEN

saur0o0n avatar saur0o0n commented on August 16, 2024
MAX31855 Linearization

from pidkiln.

Comments (4)

djObsidian avatar djObsidian commented on August 16, 2024

This is a serious issue. I, not being aware of the need for additional data correction, even contacted Maxim Integrated tech support. I measured the readings of max31855 and compared them with the expected ones. As you can see from the table below, the error is significant.

t ref mV theor. mV measured t max31855
26 0 0 27
100 2.09 2.0 84
200 5.23 5.5 177
300 8.66 8.6 261
350 10.45 10.4 326

The response from tech support was following:

While the MAX31855 does perform automatic cold-junction compensation, it does not perform any linearization calculations. Linearizing the thermocouple results needs to be performed externally using the NIST calculations and coefficients: http://srdata.nist.gov/its90/main/

As an alternative, the MAX31856 performs on board linearization for all supported thermocouple types.

from pidkiln.

Saur0o0n avatar Saur0o0n commented on August 16, 2024

Well, to be honest I had no idea if this is significant. Previously I've used modified Adafruit MAX31856 library that had additional linearization (not by default - also mod)

double Adafruit_MAX31855::linearizeCelcius(double internalTemp, double rawTemp) {
  //////////////////////////////////////////////////////////////////////////
  // Function:       Takes the thermocouple temperature measurement and
  //                   corrects the linearity errors.
  // Input:
  //   double internalTemp  = value from readInternal()
  //   double rawTemp       = value from readCelsius()
  //
  // Returns:
  //   double               = Corrected Celsius thermocouple temperature
  //////////////////////////////////////////////////////////////////////////
  // Adapted from https://github.com/heypete/MAX31855-Linearization
  // Equations and coefficients from: https://srdata.nist.gov/its90/main/its90_main_page.html
  // Retrieved 2018-09-01

But this library was less reliable and trow different errors - also it introduced, at some point, some additional dependent libraries (Adafruit) that I thought are too much and complicated everything beyond usefulness.

from pidkiln.

djObsidian avatar djObsidian commented on August 16, 2024

As far as I can see the library you are using now doesn't has any linearization. IMHO, that's significant, because you don't want your kiln to read 950 degrees when it's actually 1050. At temperatures below 300 degrees, that might be not a big deal

from pidkiln.

Saur0o0n avatar Saur0o0n commented on August 16, 2024

It should be relatively easy to add it to library - it's just math - but since author still haven't accept my last commit, I've asked if we can add it.

from pidkiln.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.