STM32F103C8T6_WIFI_Heating_system

Dependencies:   mbed mbed-STM32F103C8T6 eeprom_flash Watchdog PinDetect DS1820

  1. Bluepill STM32F103C8T6 Heating system
    1. _This project is core part of bigger heating system project!_

Features - Reading temperature from four DS18B20 sensors - Making a decision about switching on/off heater and pomp - Executing simple user commands from UART - Storing state parameters to program memory (EEPROM emulation)

Revision:
41:978c2d85a0e7
Parent:
40:6168609574d0
Child:
42:03cbc2a6f63b
--- a/temp_controller/temp_controller.cpp	Fri Sep 21 17:57:02 2018 +0000
+++ b/temp_controller/temp_controller.cpp	Fri Sep 21 19:23:45 2018 +0000
@@ -99,23 +99,7 @@
        for ( int j=0; j < 5; j++ ) {
             
             temp_error[j] = ds1820[j].read(temp[j]); // read temperature from DS1820 and perform cyclic redundancy check (CRC)
-            
-            /*
-            switch(temp_error[j]) {
-                case 0:    // no errors -> 'temp' contains the value of measured temperature
-                    //pc.printf("%s = %3.1fC \r\n", labels[j].c_str() , temp[j]);
-                    break;
-                case 1:    // no sensor present -> 'temp' is not updated
-                    //pc.printf("no %s sensor present \r\n", labels[j].c_str() );
-                    break;
-                case 2:    // CRC error -> 'temp' is not updated
-                    //pc.printf("%s sensor CRC error \r\n", labels[j].c_str() );
-                default:
-                    
-            };
-            */
-            // start temperature conversion from analog to digital before next reading
-            ds1820[j].startConversion();             
+            ds1820[j].startConversion();            // start temperature conversion from analog to digital before next reading
         };        
         
         
@@ -165,8 +149,8 @@
                 break; 
             case 5:
                 // 5 - FULL - pomp and heater are ON
-                pomp_OFF = 1;
-                heater_OFF = 1;
+                pomp_OFF = 0;
+                heater_OFF = 0;
                 break;                 
             default:
                 pomp_OFF = 1;