This circuit involves an Arduino UNO microcontroller interfaced with a MAX6675 thermocouple module and a 16x2 I2C LCD display. The circuit is powered by a 5V battery. The Arduino UNO reads temperature data from the MAX6675 module and displays it on the 16x2 I2C LCD.
MAX6675 Module
Arduino UNO
16x2 I2C LCD
5V Battery
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
#include <max6675.h> // Include the MAX6675 library
// Define pins connected to the MAX6675 module
int SO_pin = 12; // Serial Output pin
int SCK_pin = 13; // Clock pin
int CS_pin = 10; // Chip Select pin
// Initialize MAX6675 object
MAX6675 thermocouple(SCK_pin, CS_pin, SO_pin);
void setup() {
Serial.begin(9600); // Start serial communication for debugging
Serial.println("Thermocouple Test");
delay(500); // Allow some time for initialization
}
void loop() {
// Read temperature in Celsius
double tempC = thermocouple.readCelsius();
// Print temperature to the Serial Monitor
if (tempC != NAN) {
Serial.print("Temperature: ");
Serial.print(tempC);
Serial.println(" °C");
} else {
Serial.println("Thermocouple not connected!");
}
delay(1000); // Update every second
}