Arduino/Sensors/Temperature Sensors/Max6675: Difference between revisions
Access restrictions were established for this page. If you see this message, you have no access to this page.
Walttheboss (talk | contribs) (Created page with "== General == This is how you would read temperatures in an oven or other broad range temperature application. == Wiring == thumb <br /> == Code == <br />") |
Walttheboss (talk | contribs) (→Code) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== General == | ==General== | ||
This is how you would read temperatures in an oven or other broad range temperature application. | This is how you would read temperatures in an oven or other broad range temperature application. | ||
== Wiring == | ==Wiring== | ||
[[File:Max6675.jpg|thumb]] | [[File:Max6675.jpg|thumb]] | ||
<br /> | <br /> | ||
== Code == | ==Code== | ||
<br /> | <br /> | ||
<code>#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(100); | |||
} | |||
void loop() { | |||
// basic readout test | |||
Serial.print("Deg C = "); | |||
Serial.print(ktc.readCelsius()); | |||
Serial.print("\t Deg F = "); | |||
Serial.println(ktc.readFahrenheit()); | |||
delay(500); | |||
<br /> | |||
}</code> |
Latest revision as of 04:46, 9 May 2021
General
This is how you would read temperatures in an oven or other broad range temperature application.
Wiring
Code
#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(100);
}
void loop() {
// basic readout test
Serial.print("Deg C = ");
Serial.print(ktc.readCelsius());
Serial.print("\t Deg F = ");
Serial.println(ktc.readFahrenheit());
delay(500);
}