User Tools

Site Tools


en-us_commands:reference:pt100read

This is an old revision of the document!


pt100Read()

pt100Read() returns the PT100 sensor temperature as an integer in 0.1℃ units.

pt100Read command operation flow

int pt100Read(uint8_t ch)

Commands

Command Arguments Return Value Operation
pt100Read(ch) uint8_t ch — Overall MPAINO PT100 input channel number, starting at 0 int Returns the PT100 sensor temperature as an integer in 0.1℃ units.

Example

void setup() {
  Serial.begin(115200);
}
 
void loop() {
  int pt0 = pt100Read(0);  // Return the PT100 sensor temperature as an integer in 0.1°C units.
  int pt4 = pt100Read(4);  // Return the PT100 sensor temperature as an integer in 0.1°C units.
 
  Serial.print("PT0: ");
  Serial.println(pt0);
 
  Serial.print("PT4: ");
  Serial.println(pt4);
 
  delay(500);
}

Precautions

  • pt100Read() is a convenience command for the MPAINO PT100 input module.
  • Conversion of the return value to actual temperature follows the existing PT100 input module behavior.
  • Verify PT100 wiring and module connection order against the product manual and schematic.
  • If insufficient SRAM prevents creation of the internal IADC object, 0 is returned.

← Built-in Command List

en-us_commands/reference/pt100read.1788791735.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki