User Tools

Site Tools


en-us_commands:temperature

This is an old revision of the document!


NTC/PT100 Temperature Input

Command Return Value Purpose
ntcRead(ch) Integer in 0.1℃ units NTC 3950 10kΩ sensor temperature
ntcReadf(ch) float in ℃ NTC 3950 10kΩ sensor temperature
pt100Read(ch) Integer in 0.1℃ units MPAINO PT100 input module temperature
void loop() {
  float ntcTemperature = ntcReadf(0);
  int pt100Temperature10 = pt100Read(0);
}

Command Prototypes

Return Type Command Prototype
int ntcRead(uint8_t ch)
float ntcReadf(uint8_t ch)
int pt100Read(uint8_t ch)

NTC and PT100 use different sensors and input circuits. Verify that the product supports the required input, and match the sensor type, wiring and channel. Handle sensor open circuits and out-of-range values with separate safety logic.

← Built-in Command List

en-us_commands/temperature.1788785569.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki