User Tools

Site Tools


en-us_commands:temperature

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en-us_commands:temperature [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:temperature [2026/09/12 23:27] (current) – 바깥 편집 127.0.0.1
Line 1: Line 1:
-====== NTC/PT100 Temperature Input ======+====== Temperature input ======
  
-^ Command ^ Return Value ^ Purpose ^ +Read an NTC or PT100 sensor. Check the product specifications for supported sensors and channels.
-| ''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 |+
  
-<code cpp> +  * [[:en-us_commands:reference:ntcread|ntcRead()]] — Returns the temperature of an NTC 3950 10kΩ sensor as an integer in 0.1℃ units. 
-void loop() { +  * [[:en-us_commands:reference:ntcreadf|ntcReadf()]] — Returns the temperature of an NTC 3950 10kΩ sensor as a floating-point value in ℃. 
-  float ntcTemperature = ntcReadf(0); +  * [[:en-us_commands:reference:pt100read|pt100Read()]] — Returns the PT100 sensor temperature as an integer in 0.1℃ units.
-  int pt100Temperature10 = pt100Read(0); +
-+
-</code>+
  
-===== Command Prototypes ===== +[[:en-us_commands:builtin|← Built-in function list]]
- +
-^ 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. +
- +
-[[:en-us_commands:builtin|← 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