• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoShieldsUse MAX6675 with Arduino MEGA to measure water tem ...
Previous Next

Use MAX6675 with Arduino MEGA to measure water temperature

Posted by: admin , May 8, 2014

[vc_row][vc_column][vc_column_text]热电偶

The MAX6675 performs cold-junction compensation and digitizes the signal from a type-K thermocouple. The data is output in a 12-bit resolution, SPI™-compatible, read-only format.
This post we will demo how to use the  MEGA+MAX6675 to measure water temperature.

[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Part list” tab_id=”1399530201-1-73″][vc_column_text]1  x Arduino

1  x  MAX6675 module

 Jumper wires[/vc_column_text][/vc_tab][vc_tab title=”Diagram Wiring” tab_id=”1399530201-2-31″][vc_column_text]

  • Max6675 pin SO  – > Arduino pin 8
  • Max6675 pin CS  – > Arduino pin 9
  • Max6675 pin SCK  – > Arduino pin 10

Ardunio MEGA+MAX6675热电偶测温

 [/vc_column_text][/vc_tab][vc_tab title=”Test Code” tab_id=”1399530941051-2-2″][vc_column_text]Library file :Max6675

Test code

#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 CSK

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(” Kn”);
delay(2000);
}

[/vc_column_text][/vc_tab][vc_tab title=”Test Result” tab_id=”1399530943320-3-1″][vc_column_text]

Room temperature and the hot temperature, as the follows:

The

室温下的温度测试热水时的温度热水温测试

[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: Shields

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors