Mr please help me in making the program, because I no constraint in making program.
I attach below the workings of a system of my tools
if the keypad button 1 is pressed select the menu, in the conditions of the menu there are two options.
the first option set time, the second option set temperature.
heater will run by one of the choices.
if selected set time, then set the time how long to activate the heater flame then press the “#” for OK “*” to clear.
and if select the set temperature, the heater will flash when the set temperature below the sensor readings.
I use thermocouple sensor typeK MAX6675.
3x4 keypad
We are the solution
#include <Keypad.h>
#include <Wire.h>
#include <LiquidCrystal.h>
#include <max6675.h>
int relay1 = A0;
int led = 7;
int thermoDO = 4; //bisa juga S0
int thermoCS = 5;
int thermoCLK = 6; //bisa juga SCK
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
//int vccPin = 3;
//int gndPin = 2;
//RS, E, D4, D5, D6, D7
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);
// make a cute degree symbol
uint8_t degree[8] = {140,146,146,140,128,128,128,128};
void setup() {
pinMode(relay1, OUTPUT);
pinMode(led, OUTPUT);
//Serial.begin(9600);
//use Arduino pins
//pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
// pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
lcd.begin(16, 2);
lcd.createChar(0, degree);
// wait for MAX chip to stabilize
delay(500);
}
void loop() {
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("SUHU = ");
int dataku = thermocouple.readCelsius();
lcd.print(thermocouple.readCelsius());
#if ARDUINO >= 100
lcd.write((byte)0);
#else
lcd.print(0, BYTE);
#endif
lcd.print("C ");
delay(1000);
if (thermocouple.readCelsius() >= 60) {
digitalWrite(relay1, HIGH);
}
else {
digitalWrite(relay1, LOW);
}
}