首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MAX31855热电偶故障

MAX31855热电偶故障
EN

Stack Overflow用户
提问于 2013-10-17 20:07:02
回答 1查看 1.7K关注 0票数 0

我从adafruit运行MAX31855热电偶示例中得到了这个例子。但我得到的结果低于。它在我的代码上有问题,或者在设置设备上有问题。

请帮帮忙!我花了很长时间去谷歌,但找不到结果。

代码语言:javascript
复制
Internal Temp = 0.00
C = 0.00
F = 32.00
Internal Temp = 0.00
C = 0.00
F = 32.00
Internal Temp = 0.00
C = 0.00
F = 32.00
Internal Temp = 0.00
C = 0.00
F = 32.00

Here is the code

/*************************************************** 
  This is an example for the Adafruit Thermocouple Sensor w/MAX31855K

  Designed specifically to work with the Adafruit Thermocouple Sensor
  ----> https://www.adafruit.com/products/269

  These displays use SPI to communicate, 3 pins are required to  
  interface
  Adafruit invests time and resources providing this open source code, 
  please support Adafruit and open-source hardware by purchasing 
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution
 ****************************************************/

    #include <Adafruit_MAX31855.h>

    int thermoDO = 3;
    int thermoCS = 4;
    int thermoCLK = 5;

    Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);

    void setup() {
      Serial.begin(9600);

      Serial.println("MAX31855 test");
      // wait for MAX chip to stabilize
      delay(500);
    }

    void loop() {
      // basic readout test, just print the current temp
       Serial.print("Internal Temp = ");
       Serial.println(thermocouple.readInternal());

       double c = thermocouple.readCelsius();
       if (isnan(c)) {
         Serial.println("Something wrong with thermocouple!");
       } else {
         Serial.print("C = "); 
         Serial.println(c);
       }
       Serial.print("F = ");
       Serial.println(thermocouple.readFarenheit());



delay(1000);
}
EN

回答 1

Stack Overflow用户

发布于 2013-10-19 06:24:05

只是一些想法,显然这不是在您的房间冻结,但热电偶确实返回正确的关系0C和32F,没有任何数据转换的部分。

那么,热电偶是否有一个物理参考点或连接点,必须与热电偶装置本身连接在一起?

文档是否说,当出现某种类型的错误时,它总是返回0C/32F?

最后,您的SPI引脚正确吗?记住,对于SPI,Arduino上有一些特定的引脚,您使用这些引脚吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19436234

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档