一、器材

MAX6675

 

值得注意的是:MAX6675需要配合图中的温度探头一起使用,单独使用是不能获取温湿度的

测温范围:0度到1024度

温度分辨率:0.25度

工作电压:3.0V----5.5V

arduino uno

 二、接线

MAX6675arduino uno
VCC5V
GNDGND
SCKD6
CSD5
S0D4

三、程序

mixly程序

arduino代码


#include "max6675.h"

MAX6675 thermocouple(6, 5, 4);

void setup(){
  Serial.begin(9600);
  Serial.println("MAX6675 test");
  delay(500);
}

void loop(){
  Serial.print("C = ");
  Serial.println(thermocouple.readCelsius());
  Serial.print("F = ");
  Serial.println(thermocouple.readFahrenheit());
  delay(1000);

}

四、效果

 

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐