
Interfacing Arduino to thermocouple
- or -
Post a project like this2434
$$
- Posted:
- Proposals: 4
- Remote
- #2381419
- Awarded
Description
Experience Level: Intermediate
I'm trying to interface a thermocouple MAX6675 to Arduino Uno using Mac IDE. Getting compile errors. Could use some help. Once I get it interfaced I want to develop code in Processing to massage and display the data. I'm new to all this and would like help/coaching on an hourly basis. You interested?
// 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);
}
Error messages
-----------------------
Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Uno"
/var/folders/_z/92s1vys544s4xpzwqnhgfss00000gn/T//ccurrBxy.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:9: undefined reference to `MAX6675::MAX6675(signed char, signed char, signed char)'
/var/folders/_z/92s1vys544s4xpzwqnhgfss00000gn/T//ccurrBxy.ltrans0.ltrans.o: In function `loop':
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:22: undefined reference to `MAX6675::readCelsius()'
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:24: undefined reference to `MAX6675::readFahrenheit()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
// 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);
}
Error messages
-----------------------
Arduino: 1.8.9 (Mac OS X), Board: "Arduino/Genuino Uno"
/var/folders/_z/92s1vys544s4xpzwqnhgfss00000gn/T//ccurrBxy.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:9: undefined reference to `MAX6675::MAX6675(signed char, signed char, signed char)'
/var/folders/_z/92s1vys544s4xpzwqnhgfss00000gn/T//ccurrBxy.ltrans0.ltrans.o: In function `loop':
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:22: undefined reference to `MAX6675::readCelsius()'
/Users/dermodwood/Documents/Arduino/MAX6675/MAX6675/MAX6675.ino:24: undefined reference to `MAX6675::readFahrenheit()'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Dermod W.
100% (14)Projects Completed
16
Freelancers worked with
14
Projects awarded
41%
Last project
11 Jul 2020
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

make sure max6675.h and max6675.cpp are in the same folder as the MAX6675.ino sketch. If they are, then try changing the name of the sketch so it is different than the library file names ...
798742
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies