Voila j'utilise ce programme pour afficher la température d'un thermocouple via un MAX31855
// ***** INCLUDES *****
#include <MAX31855.h>
// ***** PIN DEFINITIONS *****
const unsigned char thermocoupleSO = 12;
const unsigned char thermocoupleCS = 10;
const unsigned char thermocoupleCLK = 13;
MAX31855 MAX31855(thermocoupleSO, thermocoupleCS, thermocoupleCLK);
void setup()
{
Serial.begin(57600);
}
void loop()
{
double temperature;
// Retrieve thermocouple temperature in Degree Celsius
temperature = MAX31855.readThermocouple(CELSIUS);
Serial.print("Thermocouple temperature: ");
Serial.print(temperature);
Serial.println(" Degree Celsius");
delay(1000);
}
Mais comment traiter et afficher plusieurs températures issues de plusieurs thermocouples, c'est à dire plusieurs MAX31855 ?