Anda di halaman 1dari 18

27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino.

| Henry's Bench

 LOGIN (HTTP://HENRYSBENCH.CAPNFATZ.COM/WP-LOGIN.PHP) 

HENRY'S BENCH
(HTTP://HENRYSBENCH.CAPNFATZ.COM)
a place for the electronic hobbyist

MAX6675 Temp Module Arduino Manual and


Tutorial
Contents [show]

Introducing the MAX6675 for your Arduino.


(http://www.amazon.com/gp/product/B00PVTH4MW/ref=as_li_qf_sp_asin_il_tl?
ie=UTF8&camp=1789&creative=9325&creativeASIN=B00PVTH4MW&linkCode=as2&tag=henrysbench-
20&linkId=2RHUVNLPFEDK6MVA)Thermocouples have been around forever and are a great way to measure
temperature.  They have a very large range, are robust and come in all kinds of lengths, varying tip con gurations
and a variety sheaths.

The challenge with using thermocouples is with the need for what is known as cold junction compensation and the
need to detect a very small voltage change for every degree in change of temperature.

Fortunately there are chips like the MAX6675 that make connecting a thermocouple to your Arduino an affordable breeze.  The device
measures the output of a K Thermocouple and provides the result to the Arduino via a SPI interface.

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 1/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

$ 4800 $ 95000 $ 1,20000 $ 14500 $ 80000 $ 1,59000

Shop for a MAX6675


Amazon (https://www.amazon.com/gp/search/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&tag=leaacicarbatf-
20&keywords=MAX6675&index=aps&camp=1789&creative=9325&linkCode=xm2&linkId=79e02f0cba70894ebd77060005fabacc)

Bang Good (http://www.anrdoezrs.net/links/8535047/type/dlg/https://www.banggood.com/search/max6675.html)

AliExpress (http://www.anrdoezrs.net/links/8535047/type/dlg/https://www.aliexpress.com/wholesale?
catId=0&initiative_id=SB_20180210150804&SearchText=MAX6675)

Basic Speci cations


As you can see in the table below, the fundamental requirements and capabilities jive nicely with the abilities of your Arduino micro-
controller.

A word of warning –  There are some that sell this module that think it’s measurement range is from -200 to 1300 degrees F.  They’re
wrong.  The MAX6675 chip measurement range is limited to what is detailed below:

Supply Voltage 3.3. to 5 VDC

Operating Current about 50mA

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 2/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Measurement Range 0 to 1024 deg C


(32 deg F to 1875 F)

Measurement Resolution +/- 0.25 Deg C


(+/- 0.45 Deg F)

Output Uses a SPI Interface

Required SENSOR K Thermocouple

TEMPERATURE RANGE NOTE:  It is true that MAXIM 6675 will read from zero to 1024 degrees C.  However, there is another limiting
factor.   The K thermocouple will come with insulated wires and cable sheathing.   These too have temperature limits associated with
them.  It is not unusual to have a sheathing on your thermocouple that fall below the range of the maxim chip.  Be careful here.

 MAX6675 Module Pin Outs


The pin-outs for this module are shown in the illustration below. Click on the image to make it larger.

(https://i1.wp.com/henrysbench.capnfatz.com/wp-content/uploads/2015/05/MAX6675-K-Thermocouple-Module-Pin-Outs.jpg)These pins
function as follows:

SO: The module’s serial output.   Your Arduino will read this output.

CS:  Chip Select.   Setting low, selects the Module and tells it to supply an output that is synchronize with a clock

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 3/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

SCK : The Serial Clock… an input from your Arduino.

VCC: 5V supply

GND:  Ground.

– (or Minus):   The K thermocouple minus input.

+ ( or Plus):  The K Thermocouple plus input.

IMPORTANT NOTE– Most K thermocouples come with a red lead and a yellow lead.  The red lead is normally your negative connection
and the yellow lead is your positive.  That is industry standard.

That said, some of the suppliers for the module will in fact jack this up  and provide you a thermocouple with red indicating positive.

The way to know is if you increase the temperature at the thermocouple tip and the indication goes lower.

MAX6675 Arduino Thermocouple Module Schematic


This module is a duplicate of the what is offered in the datasheet as a sample circuit.  In fact, if you were so inclined, you could simply buy
the MAX6675 (http://rover.ebay.com/rover/1/711-53200-19255-0/1?
icep_ff3=9&pub=5575103433&toolid=10001&campid=5337589482&customid=&icep_uq=MAX6675+Chip&icep_sellerId=&icep_ex_kw=&icep_so
  and build your own thermocouple measuring circuit for a few bucks less.  (click to enlarge)

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 4/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

(https://i1.wp.com/henrysbench.capnfatz.com/wp-content/uploads/2015/05/MAX6675-K-Thermocouple-Module-Schematic.png)

MAX6675 Arduino Tutorial

Get the MAX6675 Arduino Library


The Maxim 6675 library for your Arduino if freely available at GitHub.   You can get it here (https://github.com/adafruit/MAX6675-library).

If you are unfamiliar with installing Arduino libraries, you can read this page (http://www.arduino.cc/en/guide/libraries).

$ 4800 $ 95000 $ 12000 $ 1,20000 $ 1,48939 $ 60000

Connect your Arduino to the Thermocouple Module


Pretty simple stuff.   Keep the note about the thermocouple polarity in mind as you make these connections. (click image to enlarge)

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 5/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

(https://i1.wp.com/henrysbench.capnfatz.com/wp-
content/uploads/2015/05/Arduino-Connections.png)

Copy and Paste the Arduino MAX6675 Sketch


 

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 6/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

// Sample Arduino MAX6675 Arduino Sketch

#include "max6675.h"

int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;

MAX6675 ktc(ktcCLK, ktcCS, ktcSO);

void setup() {
Serial.begin(9600);
// give the MAX a little time to settle
delay(500);
}

void loop() {
// basic readout test

Serial.print("Deg C = ");
Serial.print(ktc.readCelsius());
Serial.print("\t Deg F = ");
Serial.println(ktc.readFahrenheit());

delay(500);
}

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 7/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Related Documents
The MAX6675 Data Sheet

MAX6675 Datasheet (http://henrysbench.capnfatz.com/wp-content/uploads/2015/05/MAX6675-Datasheet.pdf)

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 8/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

[Video] Paste Dispenser Easy Arduino COYO Hydraulic Rotary MAX31855 Arduino K
Temperature Logger Actuator - www.coyo- Thermocouple Sensor:
sh.com Manual and Tutorial

Ad Voltera capnfatz.com Ad coyo-sh.com capnfatz.com

NTC Thermistors - ACS712 Current Sensor Arduino MAX471 Power MingHe B3603 User
Customized Engineering User Manual Meter Tutorial Manual: Interface and
Help Connections

Ad info.ametherm.com capnfatz.com capnfatz.com capnfatz.com

Share this:

Share 12 Guardar Tweet  More


submit (https://es.pinterest.com/pin/create/button/?guid=nHnKkWzfNCv0-
2&url=http%3A%2F%2Fhenrysbench.capnfatz.com%2Fhenrys-bench%2Farduino-temperature-measurements%2Fmax6675-temp-
196

18 COMMENTS module-arduino-manual-and-tutorial%2F&media=https%3A%2F%2Fi1.wp.com%2Fhenrysbench.capnfatz.com%2Fwp-
content%2Fuploads%2F2015%2F05%2FArduino-
Connections.png%3Ffit%3D552%252C960&description=MAX6675%20Temp%20Module%20Arduino%20Manual%20and%20Tutorial)
Gabriela Araujo Machado November 20, 2017

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 9/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Gostaria de saber o que signi ca o kct, nesta parte: “MAX6675 ktc (ktcCLK, ktcCS, ktcSO);”.
Att, Gabriela.

hadifallahi August 20, 2017

Hello dear
Thank you that’s ok
And I don’t see any errors
But there is a big problem that
It shows just “0.0 deg” and it doesn’t have any other result when I’m make the thermocouple heat !!! Just “0.0 “all time or “32 f “.
Thanks a lot

solomon July 7, 2017

How can I make temp control relay with thermocouple? I am trying to write the programming, but I am a beginner, so it became very
di cult.

omar July 2, 2017

hola soy nuevo y estoy aprendiendo con arduino ya conecte el modulo max6675 y mido la temperatura por monitor serial, ahora quiero
experimentar con el control de una o mas salidas dependiendo del valor de temperatura pero me confundí ya que cuando usamos una
entrada análoga podemos crear una variable a la cual se pueden tomar los valores y con gurar la comparación pero usando el
max6675 envía señales digitales y me bloquie no se como tomar cierto valor por ejemplo que mi pin 13 con gurado como OUTPUT
este en alto entre 90 y 150° C, y > a 150°C sea LOW muchas gracias.

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 10/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Lena June 7, 2017

How do I code for 11 Thermocouples on a Mega Arduino each Simple reading temperature?

asouma May 14, 2017

how can i cnnecte a thermocouple max6675 k through spi interface with a microcontroler pic16f876

asouma March 13, 2017

how can i connect max6675 with microcontroller 16f84 help me

Pasqual February 12, 2017

Okay. I want to use your MAX6675 library to display the temperature on three 7-segment LED displays. How could I do that?

Await you.

Emn Sand February 2, 2017

how to do if i want to connect 4 max6675 in the same arduino uno ??

Tom January 31, 2017

On uno

#include “max6675.h”

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 11/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

int ktcSO = 8;
int ktcCS = 9;
int ktcCS2 = 11;
int ktcCLK = 10;

MAX6675 ktc(ktcCLK, ktcCS, ktcSO);


MAX6675 ktc2(ktcCLK, ktcCS2, ktcSO);

void setup() {
Serial.begin(9600);
// give the MAX a little time to settle
delay(500);
}

void loop() {
// basic readout test

Serial.print(“Kanal 1 = “);
Serial.print(ktc.readCelsius());
Serial.print(“\t Kanal 2 = “);
Serial.print(ktc2.readCelsius());
Serial.print(“\t Deg F = “);
Serial.println(ktc.readFahrenheit());

delay(5000);
}

Wolfgang Thiess January 31, 2017

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 12/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Hallo running!
how kann i connect to Fhem?
blease help me!

lg
Wolfgang

Just_Chris October 27, 2016

Brendan you are a genius, thank you.

Miguel Rodmen September 21, 2016

I have a problem, i am working with three MAX6675, and Arduino Mega, at the start everthing works good, but sometimes the
temperature goes up to 900 C, a i need to restart the Arduino and so then it works good again.

Emanuel August 22, 2016

Hi, when i hold the thermocouple, the temperature increases and when i let it loose, it will take too long to return

Fedri August 18, 2016

How to do if i want measure voltage max6675?

Grant June 6, 2016

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 13/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

I’m having trouble making this work on a Arduino 101. All works ne on the Uno. Using tools and switch boards to the 101 I get the
following message:

Arduino: 1.6.8 (Windows 10), Board: “Arduino/Genuino 101”

sketch\sketch_jun06a.ino.cpp.o: In function `loop’:

C:\Users\Grant\Documents\Arduino\sketch_jun06a/sketch_jun06a.ino:31: unde ned reference to `MAX6675::readCelsius()’

C:\Users\Grant\Documents\Arduino\sketch_jun06a/sketch_jun06a.ino:33: unde ned reference to `MAX6675::readFahrenheit()’

sketch\sketch_jun06a.ino.cpp.o: In function `__static_initialization_and_destruction_0′:

C:\Users\Grant\Documents\Arduino\sketch_jun06a/sketch_jun06a.ino:12: unde ned reference to `MAX6675::MAX6675(signed char,


signed char, signed char)’

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino 101.

This report would have more information with


“Show verbose output during compilation”
option enabled in File -> Preferences.

I have put the Max6675 library master into the same directory as the other Curie libraries – but still no luck.

Thoughts?

Brendan (http://www.neme.com.au) June 4, 2016

Hi uriel,

All you have to do is use a different pin for the cable select (CS) on the second MAX6675. In this example that is pin 9. The data (8) and
clock (10) pins remain the same (plug these into the second MAX6675 module just like the rst). You would then make another
MAX6675 object in the code and read from that.
http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 14/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

So connect the other thermocouple up to the arduino the same as the rst one, except use pin 11 for the CS pin for second
thermocouple. See below for the code – it worked for me.

Regards,
Brendan

PS. Thanks Henry for your excellent post on using this chip!

// Sample Arduino MAX6675 Arduino Sketch

#include “max6675.h”

int ktcSO = 8;
int ktcCS = 9;
int ktcCS2 = 11;
int ktcCLK = 10;

MAX6675 ktc(ktcCLK, ktcCS, ktcSO);


MAX6675 ktc2(ktcCLK, ktcCS2, ktcSO);

void setup() {
Serial.begin(9600);
// give the MAX a little time to settle
delay(500);
}

void loop() {
// basic readout test

Serial.print(“First = “);
Serial.println(ktc.readCelsius());
Serial.print(“Second = “);
Serial.println(ktc2.readCelsius());

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 15/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

delay(500);
}

uriel April 25, 2016

how to do if i want to connect 2 max6675 in the same arduino uno ??

LEAVE A REPLY

Your email address will not be published. Required elds are marked *

Comment

Name* Email* Website

Post Comment

Seleccionar idioma Con la tecnología de Traductor de Google (https://translate.google.com)

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 16/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Shop Now Shop Now

Shop Now Shop Now

Shop Now Shop Now

Shop Related Products

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 17/18
27/2/2018 MAX 6675 Quick Start and Tutorial for the Arduino. | Henry's Bench

Aven 17010 Adjustable


Circuit Board Holder SainSmart MAX6675 Module
(http://aax-us-east.amazon- + K Type Ther… (http://aax-
$12.56 $13.99
us-east.amazon-
adsystem.com/x/c/Qs1Ea…
(878)
6YIAAAFh08aulQEAAAFK… (15)
adsystem.com/x/c/Qs1Ea…
17010-Adjustable-Circuit- 6YIAAAFh08aulQEAAAFK…
Holder/dp/B00Q2TTQEE/r… MAX6675-Thermocouple-
adId=B00Q2TTQEE&creat… Temperature-
20&linkCode=w41&ref- Arduino/dp/B00PVTH4MW…
refURL=http%3A%2F%2F… adId=B00PVTH4MW&crea…
bench%2Farduino- 20&linkCode=w41&ref-
temperature- refURL=http%3A%2F%2F…
measurements%2Fmax66… bench%2Farduino-
temp-module-arduino- temperature-
MAX6675 Module + K Type Uxcell a11121200ux0125
manual-and- measurements%2Fmax66…
Thermocouple Thermocouple K Type…
tutorial%2F&slotNum=0&i… temp-module-arduino-
Thermocouple Sens… (http://aax-us-east.amazon-
manual-and-
$5.40 $5.41
(http://aax-us-east.amazon- adsystem.com/x/c/Qs1Ea…
tutorial%2F&slotNum=0&i…
adsystem.com/x/c/Qs1Ea…
$4.59 6YIAAAFh08aulQEAAAFK…
(4)
6YIAAAFh08aulQEAAAFK… a11121200ux0125-
Thermocouple-Temperature-
Ads Thermocouple-Temperature-
by Amazon (http://aax-us-east.amazon-adsystem.com/x/c/Qs1EaXyMA9FOLctU9a4-6YIAAAFh08aulQEAAAFKARjszdk/https://affiliate-
program.amazon.com/home/ads/ref=sm_n_au_dka_MX_logo?
0~1024%C2%A1%C3%A6- Sensor/dp/B01530OOEY/r…
adId=logo&creativeASIN=logo&linkId=6e233dc46aa72387afecbe7ef44d88e6&tag=henrysbench-20&linkCode=w41&ref-
Arduino/dp/B06XXB66GL/r… adId=B01530OOEY&creati…
refURL=http%3A%2F%2Fhenrysbench.capnfatz.com%2Fhenrys-bench%2Farduino-temperature-measurements%2Fmax6675-temp-module-arduino-
manual-and-
adId=B06XXB66GL&creati… 20&linkCode=w41&ref-
tutorial%2F&slotNum=0&imprToken=x2f29bTuiPoGXKgh.ss.wQ&adType=smart&adMode=auto&adFormat=grid&impressionTimestamp=1519713854
20&linkCode=w41&ref-
ms-src=nsa-ads&cid=nsa-ads) refURL=http%3A%2F%2F…
(https://www.amazon.com/adprefs)
refURL=http%3A%2F%2F… bench%2Farduino-
bench%2Farduino- temperature-
temperature- measurements%2Fmax66…
measurements%2Fmax66… temp-module-arduino-
temp-module-arduino- manual-and-
manual-and- tutorial%2F&slotNum=0&i…
tutorial%2F&slotNum=0&i…

http://henrysbench.capnfatz.com/henrys-bench/arduino-temperature-measurements/max6675-temp-module-arduino-manual-and-tutorial/ 18/18

Anda mungkin juga menyukai