34Views3Replies

Author Options:

Arduino heating controller: solar panel, oil burner, stove. NEED HELP AND ADVICE Answered

HI
this is my first time with arduino and electronics so please be forgiving.

i want to make a controller for my home heating system and if it possible be able to control (change temp. setting, see statistic, etc. by phone - Bluetooth).

so, i have three source of heat: solar panels (water), oil burner, wet stove. first part of plan is to connect all electrical components correctly (to make sure nothing blowup), second step is the program. third connect controller with phone by android or have a option to send sms to turn on/off oil burner.

let's start

the heating system should looks like that (photo attach)

please don't focus on the plumbing (that's only sketch), electronic and programing is more important.

program (second step) should do:

1. if T5 >T2 pomp P2 work 2. if T3>55'C , P3 work but only if O1 is switch off (automatically P1 and M1 is off, because they will be connect directly to O1 power) 3. option to on/off O1 by click on the phone (or by modul GSM in the future e.g sim800L) 4. additionally options 2 and 3 they are conditioned by other sub-option of 5 zones (where hot waterwill flow, so what will be heat): a)olny hot water in the tank- M3 open, b)only underfoor h.- M2 open, c)only radiators- M4 open, d) all heating, no tank- M2 i M3 open, e) all M2 M3 M4 open. so, before turn on O1 start making fire T3, one of the zone have to be pre-sellect.

also if T1 >60st.C (and O1 and P3 are off), P4 will turn on (dump extra hot water to underfloor h.).

that's all, nothing more .... but it's to much complicate for me right now. :smiley-confuse:

and third part: all should be controll by simple phone app (android) e.g. turn on/off oil burner (maybe timer), change temp. in tank, change zone, see statistics etc.

thera are elements what i have already

- arduino nano

-logging data module

-relay 8 ports

-bluetooth modul At-09, ble-4.0

-extension board nano v3.0

- temp. sensors DS18B20

i connect everything by all info what i've found in internet. also i tried to do simulation in THINKERCAD but many of my elements are not exist in the program, stiil no win. i didnt want to connect power just in case of blow off :o

this is what i already found online:

http://www.reuk.co.uk/wordpress/arduino-solar-water-heating-pump-controller-design-and-code/

https://thesolaruniverse.wordpress.com/2016/11/21/monitoring-temperatures-in-floor-heating-loops-with-an-arduino-with-data-display-on-a-3-5-tft-screen/

http://house4u.com.ua/articles/solar-controller/en/part11.php

https://www.instructables.com/id/2nd-Gen-Arduino-Hot-Water-Solar-Collector-Controll/

https://forum.arduino.cc/index.php?topic=70048.0

and about bluetooth

https://arduino.stackexchange.com/questions/19517/hc-05-bluetooth-module-inq-command-doesnt-work

i only showing the links to proof my hour's spend in google.

i think first two are the best.

so i put together all what i found and this is my first program:

const int TANKSENSORT1 = A0; const int TANKSENSORT2 = A1; const int PANELSENSORT5 = A2; const int STOVESENSORT3 = A3; const int FLOORSENSORT4 = A4;

const int RELAYO1 = 3; const int RELAYM2 = 4; const int RELAYM3 = 5; const int RELAYM4 = 6; const int POMP2 = 7; const int POMP3 = 8; const int POMP4 = 9;

const int diffON = 6; const int diffOFF = 3;

void setup(){ Serial.begin(9600);

pinMode(PANELSENSORT5, INPUT); pinMode(TANKSENSORT1, INPUT); pinMode(TANKSENSORT2, INPUT); pinMode(STOVESENSORT3, INPUT); pinMode(FLOORSENSORT4, INPUT);

pinMode(RELAYO1, OUTPUT); digitalWrite(RELAYO1, LOW); pinMode(RELAYM2, OUTPUT); digitalWrite(RELAYM2, LOW); pinMode(RELAYM3, OUTPUT); digitalWrite(RELAYM3, LOW); pinMode(RELAYM4, OUTPUT); digitalWrite(RELAYM4, LOW); pinMode(POMP2, OUTPUT); digitalWrite(POMP2, LOW); pinMode(POMP3, OUTPUT); digitalWrite(POMP3, LOW); pinMode(POMP4, OUTPUT); digitalWrite(POMP4, LOW);

}

void loop(){ float solarPanelTemperature = ((analogRead(PANELSENSORT5) / 1024.0) * 5000)/10; float hotWaterTankTemperature = ((analogRead(TANKSENSORT2) / 1024.0) * 5000)/10; if(solarPanelTemperature > (hotWaterTankTemperature + diffON)){ digitalWrite(POMP2, HIGH); do{ delay(250); solarPanelTemperature = ((analogRead(PANELSENSORT5) / 1024.0) * 5000)/10; hotWaterTankTemperature = ((analogRead(TANKSENSORT2) / 1024.0) * 5000)/10; }while(solarPanelTemperature > (hotWaterTankTemperature + diffOFF)); digitalWrite(POMP2, LOW);

float stoveTemperature = ((analogRead(STOVESENSORT3) / 1024.0) * 5000)/10; if(stoveTemperature > 55){ digitalWrite(POMP3, HIGH); do{ delay(250); stoveTemperature = ((analogRead(STOVESENSORT3) / 1024.0) * 5000)/10; }while(stoveTemperature < (55)); digitalWrite(POMP3, LOW); // musi byc dodane autoamtyczne wylaczenie pieca O1 jesli T3>55, a jesli T3<55 piec moze byc wlaczony

float hotwaterTemperature = ((analogRead(TANKSENSORT1) / 1024.0) * 5000)/10; if(hotwaterTemperature > (60)){ digitalWrite(POMP4, HIGH); do{ delay(250); hotwaterTemperature = ((analogRead(TANKSENSORT1) / 1024.0) * 5000)/10; }while(hotwaterTemperature < (60)); digitalWrite(POMP4, LOW); // still system have to be sure that O1 or stove P3 not working. // if one of those is on (O1 or P3) 'heat dumping' options cant start

// still missing: // bluetooth modul // or logging data modul (statistics) // before heating will be on one of the zones have to be setup.(and save) // 'life' option for changing the zones M2, M3, M4 } delay(250); }

and i stuck again.

i'm looking for advise about proper electronic setup and program the arduino. i believe there are many people like me looking for help, so this post will have a bigger impact.

regards

Discussions

What are the motor valves? What are the pumps? What voltage and current are they rated for?

If I were doing this project, my first step would be to figure out how to control those using the Arduino.

Once you have that part working, then the sensors, code, and bluetooth can be tweaked until you get it working to your liking.

hi Randofo

all the parts are for heating system (solar panel heat only water). plumbing system is fine (its only the sketch). tepm. sensors will control relay switches (turn on/off pomps.

problem what i have right now is how to add bluetooth option (control and statistic by phone) and gsm controller for further on/off by sms.

regards

0
user
iceng

5 weeks ago

Perhaps you will click the pic to see the entire image of a system that needs no microprocessor and can draw energy from solar or wind to heat underfloor..

And lets the in house temperature regulator adjust the small difference needed to reach the desired warmth !

WindGenLoop.bmp