• 新手一枚,学习两个月的板子
  • 芯片制造中的阻挡层沉积技术介绍
  • 接地搭接电缆布局屏蔽!!!
  • 北美液冷生态解码:超微spuermicro,24年营
  • SK海力士全球首发HBM4-16层堆叠、2.0TB/s

arduino 热电偶

[复制链接]
查看1043 | 回复6 | 2019-8-30 20:14:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区

您需要 登录 才可以下载或查看,没有账号?立即注册

×
#include "Max6675.h"

Max6675 ts(8, 9, 10);

// Max6675 module: SO on pin #8, SS on pin #9, CSK on pin #10 of Arduino UNO

// Other pins are capable to run this library, as long as digitalRead works on SO,

// and digitalWrite works on SS and CSKl

void setup()

{

ts.setOffset(0);

// set offset for temperature measurement.

// 1 stannds for 0.25 Celsius

Serial.begin(9600);

}

void loop()

{

Serial.print(ts.getCelsius(), 2);

Serial.print(" C / ");

Serial.print(ts.getFahrenheit(), 2);

Serial.print(" F / ");

Serial.print(ts.getKelvin(), 2);

Serial.print(" K
");

delay(3000);

}
回复

使用道具 举报

小鑫鑫 | 2019-8-31 08:13:59 | 显示全部楼层
回复

使用道具 举报

wangy2000 | 2019-8-31 08:26:04 | 显示全部楼层
回复

使用道具 举报

tzj2013 | 2019-8-31 08:37:32 | 显示全部楼层
回复

使用道具 举报

chjd | 2019-8-31 08:37:55 | 显示全部楼层
回复

使用道具 举报

guitianxia | 2020-6-10 11:14:28 | 显示全部楼层
MAX6675已经停产了,新案子推荐MAX31855K  开发资料原理图成熟
原厂PM 张工137 2421 2401
回复

使用道具 举报

tiny2010 | 2020-6-11 09:01:31 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则