0

Help with Code for Arduino Uno & RTD MAX31865
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help with Code for Arduino Uno & RTD MAX31865

by petevree on Sat Nov 18, 2017 12:46 pm

Hello,

First off... thanks so much for a great product and phenomenal instructions.
I have hooked everything up according to your instructions for the MAX31865 RTD Temperature Sensor Amplifier
https://learn.adafruit.com/adafruit-max ... iring-test
I am getting Temperature values that are roughly 1 degree higher than my reference temperature sensor.
Is there any way to provide a more accurate temperature reading by manipulating the code?
Is there a link to a more detailed walk through of the following code:
Code: Select all | TOGGLE FULL SIZE
#define RREF 430.0


void setup() {
  Serial.begin(115200);
  Serial.println("Adafruit MAX31865 PT100 Sensor Test!");

  max.begin(MAX31865_3WIRE);  // set to 2WIRE or 4WIRE as necessary
}


void loop() {
  uint16_t rtd = max.readRTD();

  Serial.print("RTD value: "); Serial.println(rtd);
  float ratio = rtd;
  ratio /= 32768;
  Serial.print("Ratio = "); Serial.println(ratio,8);
  Serial.print("Resistance = "); Serial.println(RREF*ratio,8);
  Serial.print("Temperature = "); Serial.println(max.temperature(100, RREF));

Thanks so much!

Pete Vree

petevree
 
Posts: 4
Joined: Wed Oct 18, 2017 2:19 pm

Please be positive and constructive with your questions and comments.