Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

Committer:
andrewboyson
Date:
Wed Feb 10 17:24:36 2021 +0000
Revision:
104:46ce1aaf8be7
Parent:
91:8b192efd0288
Child:
105:1899f7ed17ec
Added PWM speed control to the boiler pump.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 24:e3ed1b52c6e6 1 #include "http.h"
andrewboyson 53:c1bf7d9db507 2 #include "web-nav-this.h"
andrewboyson 51:c7c6ce0d57ad 3 #include "web-add.h"
andrewboyson 24:e3ed1b52c6e6 4
andrewboyson 49:9491c966dc60 5 void WebBoilerHtml()
andrewboyson 24:e3ed1b52c6e6 6 {
andrewboyson 24:e3ed1b52c6e6 7 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 51:c7c6ce0d57ad 8 WebAddHeader("Boiler", "settings.css", "boiler.js");
andrewboyson 51:c7c6ce0d57ad 9 WebAddNav(BOILER_PAGE);
andrewboyson 51:c7c6ce0d57ad 10 WebAddH1("Boiler");
andrewboyson 24:e3ed1b52c6e6 11
andrewboyson 104:46ce1aaf8be7 12 WebAddH2("Tank outputs");
andrewboyson 51:c7c6ce0d57ad 13 WebAddAjaxLed("Boiler call", "ajax-blr-call-toggle");
andrewboyson 104:46ce1aaf8be7 14
andrewboyson 104:46ce1aaf8be7 15 WebAddH2("Tank inputs");
andrewboyson 104:46ce1aaf8be7 16 WebAddAjaxLabelledSuffix("Tank", "ajax-tank-html", "°C");
andrewboyson 104:46ce1aaf8be7 17
andrewboyson 104:46ce1aaf8be7 18 WebAddH2("Tank parameters");
andrewboyson 104:46ce1aaf8be7 19 WebAddAjaxInput("Tank 'off' setpoint (deg)", 2, "ajax-tank-set-point", "tanksetpoint" );
andrewboyson 104:46ce1aaf8be7 20 WebAddAjaxInput("Tank 'on' temp drop (deg)", 2, "ajax-tank-hysteresis", "tankhysteresis" );
andrewboyson 104:46ce1aaf8be7 21
andrewboyson 104:46ce1aaf8be7 22 WebAddH2("Pump outputs");
andrewboyson 51:c7c6ce0d57ad 23 WebAddAjaxLed("Boiler pump", "ajax-blr-pump-toggle");
andrewboyson 104:46ce1aaf8be7 24 WebAddAjaxLabelledSuffix("Boiler pump speed (0-100)", "ajax-blr-pump-speed-html", "%");
andrewboyson 104:46ce1aaf8be7 25 WebAddAjaxLabelledSuffix("Boiler pump pwm  (84-10)", "ajax-blr-pump-pwm-html" , "%");
andrewboyson 36:07c7e4d197f2 26
andrewboyson 104:46ce1aaf8be7 27 WebAddH2("Pump inputs");
andrewboyson 104:46ce1aaf8be7 28 WebAddAjaxLabelledSuffix("Boiler output", "ajax-blr-out-html", "°C");
andrewboyson 104:46ce1aaf8be7 29 WebAddAjaxLabelledSuffix("Boiler input", "ajax-blr-rtn-html", "°C");
andrewboyson 104:46ce1aaf8be7 30 WebAddAjaxLabelledSuffix("Boiler ΔT", "ajax-blr-rise-html", "°C");
andrewboyson 35:bb8a6d1c034c 31
andrewboyson 104:46ce1aaf8be7 32 WebAddH2("Pump calling parameters");
andrewboyson 104:46ce1aaf8be7 33 WebAddAjaxInput("Pump speed calling (% or -1)",2, "ajax-pump-speed-calling", "pumpspeedcalling" );
andrewboyson 104:46ce1aaf8be7 34 WebAddAjaxInput("Boiler output target (deg)", 2, "ajax-blr-output-target", "boileroutputtarget");
andrewboyson 104:46ce1aaf8be7 35 WebAddAjaxInput("Boiler ΔT at pump 0", 3, "ajax-pump-rise-at-0" , "blrriseat0" );
andrewboyson 104:46ce1aaf8be7 36 WebAddAjaxInput("Boiler ΔT at pump 50", 3, "ajax-pump-rise-at-50" , "blrriseat50" );
andrewboyson 104:46ce1aaf8be7 37 WebAddAjaxInput("Boiler ΔT at pump 100", 3, "ajax-pump-rise-at-100" , "blrriseat100" );
andrewboyson 104:46ce1aaf8be7 38
andrewboyson 104:46ce1aaf8be7 39 WebAddH2("Pump run on parameters");
andrewboyson 104:46ce1aaf8be7 40 WebAddAjaxInput("Run on residual heat (deg)", 2, "ajax-blr-run-on-deg", "boilerresidual" );
andrewboyson 104:46ce1aaf8be7 41 WebAddAjaxInput("Run on max time (sec)", 2, "ajax-blr-run-on-time", "boilerrunon" );
andrewboyson 104:46ce1aaf8be7 42 WebAddAjaxInput("Run on pump speed (%)", 2, "ajax-pump-speed-run-on", "pumpspeedrunon" );
andrewboyson 24:e3ed1b52c6e6 43
andrewboyson 51:c7c6ce0d57ad 44 WebAddEnd();
andrewboyson 24:e3ed1b52c6e6 45
andrewboyson 24:e3ed1b52c6e6 46 }