The Arduino UNO will be used to read temperature with K-type thermocouple sensors that can read temperatures greater than 100 ° C. The MAX6675 module is used to convert sensor readings data into digital data that also supports SPI communications. The result of temperature reading will be displayed using 2x16 LCD.
Hardware Requirement
- Arduino Uno Board
- Thermocouple Sensor
- LCD 16*2
- Power supply +5 Volt
- Jumper
Block Diagram
Schematic
Arduino - LCD Wiring
Arduino - MAX6675 Driver Wiring
Source Code/Sketch
#include <max6675.h>
#include <LiquidCrystal.h>
#include <Wire.h>
int DO = 8;
int CS = 9;
int CLK = 10;
MAX6675 themp(CLK, CS, DO);
int suhuC, suhuF;
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
uint8_t degree[8] = {140,146,146,140,128,128,128,128};
void setup() {
lcd.begin(16, 2);
lcd.createChar(0, degree);
delay(500);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(" Digital");
lcd.setCursor(0, 1);
lcd.print(" Thermometer");
delay(2000);
lcd.clear();
}
void loop() {
suhuC=themp.readCelsius();
lcd.setCursor(0, 0);
lcd.print("Suhu:");
lcd.print(suhuC);
lcd.write((byte)0);
lcd.print("C ");
suhuF=themp.readFahrenheit();
lcd.setCursor(5, 1);
lcd.print(suhuF);
lcd.write((byte)0);
lcd.print(“F ”);
delay(1000);
}
#include <LiquidCrystal.h>
#include <Wire.h>
int DO = 8;
int CS = 9;
int CLK = 10;
MAX6675 themp(CLK, CS, DO);
int suhuC, suhuF;
LiquidCrystal lcd(2, 3, 4, 5, 6, 7);
uint8_t degree[8] = {140,146,146,140,128,128,128,128};
void setup() {
lcd.begin(16, 2);
lcd.createChar(0, degree);
delay(500);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(" Digital");
lcd.setCursor(0, 1);
lcd.print(" Thermometer");
delay(2000);
lcd.clear();
}
void loop() {
suhuC=themp.readCelsius();
lcd.setCursor(0, 0);
lcd.print("Suhu:");
lcd.print(suhuC);
lcd.write((byte)0);
lcd.print("C ");
suhuF=themp.readFahrenheit();
lcd.setCursor(5, 1);
lcd.print(suhuF);
lcd.write((byte)0);
lcd.print(“F ”);
delay(1000);
}
How it Works
1. Connect the Arduino with Peripherals needed.
2. Plug in the Power Source on the device.
3. Add some library if needed
4. Compile and upload the script program above to your arduino.
5. First initial LCD display
6. LCD will show the temperature value both in Celcius and Fareinheit Degree
Video for Project II -3. Digital Thermometer using Thermocouple Based On Arduino
Required file
No comments:
Post a Comment