Arduino Leonardo boiler 3xDS18B20 and 3xRelays

Hi, I have idea to make a temperature radar , with 3 wires and 2.8 tft display.My idea is while the temperature is more than 70Celsius the pump will go on. But i realy wish to make very good GUI for display.If someone can help me.

bixermax:
Hi, I have idea to make a temperature radar , with 3 wires and 2.8 tft display.My idea is while the temperature is more than 70Celsius the pump will go on. But i realy wish to make very good GUI for display.If someone can help me.

Do you have code? Do you have schematics? If so, a good start is to post them.

Your question is kind of vague. There are tutorials for using displays and creating GUIs.

My advice is don't get too fancy. A low end Arduino (Uno, Mini, Mega) doesn't have a lot of resources for doing graphics and you can't see much on a 2.8" display. Keep it simple with one big number or a pie-chart display and a square that changes color (red-green) to indicate if the pump is on or off.

Power_Broker:
Do you have code? Do you have schematics? If so, a good start is to post them.

i have code for DS18B20 and relays:

#include <OneWire.h>
#include <Wire.h>
#include <DallasTemperature.h>
#define RELAY1 7 // Relay
#define RELAY2 6
#define RELAY3 5

#define BACKLIGHT_PIN 13
#define ONE_WIRE_BUS 10
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup() {
Serial.begin(9600);
sensors.begin();
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
}
void loop() {
sensors.requestTemperatures();
float temperature = sensors.getTempCByIndex(0);
Serial.print(“TEMP= “);
Serial.print(sensors.getTempCByIndex(0));
Serial.print(”\337C”);
if(temperature < 70) {
digitalWrite(RELAY1,0);
digitalWrite(RELAY2,0);
digitalWrite(RELAY3,0);
Serial.print(“closed”);}

else if(temperature > 70) {
digitalWrite(RELAY1,1);
digitalWrite(RELAY2,1);
digitalWrite(RELAY3,1);
Serial.print(“opened”);
}
}

Ok, so what is the problem? If you want a GUI, try something and if it doesn't work and the answer isn't on google, you can ask us with a reply to this thread.

Power_Broker:
Ok, so what is the problem? If you want a GUI, try something and if it doesn't work and the answer isn't on google, you can ask us with a reply to this thread.

Im starting editing this code , but i dont understand where is error :confused:

Your original questions sounded like you were asking for help creating a GUI. Now you say there is an error. What is the error? Does it compile? Does it return bad data?