
Originally Posted by
KurtE
Might help to know what type of computer? For example if it is a Linux machine, did you install the udev rules?
If WIndows which version? If you are using a USB powered hub try without hub...
What is programmed on these Teensy boards? Does it include Usb type of serial?
Oops, I meant to say it is Windows 8.1, at least on the computer that is not working for me. Windows 10 on the others, even though I still have the problem of not having the Tools/ USB type. It's a long story but I do have to use Windows 8.1 on this one computer. I am not using a hub.
Code:
#include <SPI.h>
#include <Adafruit_MAX31855_A.h>
#include <Adafruit_MAX31855_B.h>
//thermocouple pin definitions
#define MAXDO 12
#define MAXCS1 15
#define MAXCS2 10
#define MAXCLK 13
// initialize the Thermocouple
Adafruit_MAX31855_A AmbientThermocouple(MAXCLK, MAXCS1, MAXDO);
Adafruit_MAX31855_B CoilThermocouple(MAXCLK, MAXCS2, MAXDO);
int buttonState = 0;
void setup() {
//thermocouple
// while (!Serial); // wait for Serial on Leonardo/Zero, etc
Serial.begin(9600);
Serial.println("MAX31855 test");
// wait for MAX chip to stabilize
delay(500);
//Pin Modes
pinMode(2, INPUT); //Button input
pinMode(10, INPUT); //CS Coil Temp
pinMode(12, INPUT); //To SO Both Thermocouples
pinMode(13, INPUT); //To SCK Both Thermocouples
pinMode(15, INPUT); //CS Ambient Temp
pinMode(20, OUTPUT); //Button LED
digitalWrite(20, HIGH); //Turns Button LED On when program starts
}
void loop() {
//Thermocouple Readout
//-------------------------------
//Ambient Thermocouple
// Serial.print("Ambient TC Internal Temp = ");
// Serial.print(AmbientThermocouple.readInternal());
double a = AmbientThermocouple.readCelsius();
if (isnan(a))
{
Serial.print("Ambient TC Error!");
Serial.print("\t");
}
else
{
// Serial.print("\t"); //
// Serial.print("AmbientC = "); //For Celcius Reading
// Serial.print(a); //
//
// Serial.print("\t");
Serial.print("AmbientF = ");
Serial.print(AmbientThermocouple.readFarenheit());
Serial.print(" ");
}
//-----------------------
//Coil Thermocouple
// Serial.print("Coil TC Internal Temp = ");
// Serial.print(CoilThermocouple.readInternal());
double b = CoilThermocouple.readCelsius();
if (isnan(b))
{
Serial.print("Coil TC Error!");
}
else
{
// Serial.print("\t"); //
// Serial.print("CoilC = "); //For Celcius Reading
// Serial.print(b); //
//
// Serial.print("\t");
Serial.print("CoilF = ");
Serial.print(CoilThermocouple.readFarenheit());
Serial.print(" ");
}
//Serial Monitor Button Status Display
buttonState = digitalRead(2);
Serial.print("\t");
Serial.print("Button(");
if (buttonState == HIGH)
{
Serial.println("On)");
// delay(100);
}
else
{
Serial.println("Off)");
// delay(100);
}
}