Main centres: | 1-3 business days |
Regional areas: | 3-4 business days |
Remote areas: | 3-5 business days |
MAX31865 Module For PT100/PT1000 Sensor.
The MAX31865 is a tiny surface mount chip, used for the PT100 and PT1000 temperature sensors. Which needs a lot of other components to make it work. luckily you get nifty breakout boards like these which makes life much easier. You can control the chip and read data from it using the breakouts at the bottom.
Power Pins:
SPI Logic pins:
Datasheets: Max31865 IC
Sample code: Diagram and code
#include <Adafruit_MAX31865.h> // The value of the Rref resistor. // Use 430.0 for PT100 and 4300.0 for PT1000 #define RREF 430.0 // The nominal 0-degrees-C resistance of the sensor // 100.0 for PT100, 1000.0 for PT1000 #define RNOMINAL 100.0 // The constructor expects the Arduino pin-numbers // in the following order: CS, DI, DO, CLK Adafruit_MAX31865 sensor = Adafruit_MAX31865(10, 11, 12, 13); unsigned long lastRead = 0UL; void setup() { Serial.begin(9600); // use 2WIRE, 3WIRE, or 4WIRE as necessary sensor.begin(MAX31865_3WIRE); } void loop() { // Read the temperature once every second if(millis() - lastRead > 1000) { uint16_t rtd_value = sensor.readRTD(); float ratio = (float)rtd_value / 32768.0f; Serial.print("RTD Resistance: "); Serial.println(RREF * ratio, 8); Serial.print("Temperature: "); Serial.println(sensor.temperature(RNOMINAL, RREF)); lastRead = millis(); } }
Links: https://www.programmersought.com/article/82705206627/
https://forum.arduino.cc/t/reading-multiple-rtds-with-one-max31865/1068726