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:
20:4f3a45fd4bbb
Parent:
19:74f78a777ffa
Child:
21:819277430a55
--- a/main.cpp	Wed Sep 12 19:32:17 2018 +0000
+++ b/main.cpp	Wed Sep 12 19:40:14 2018 +0000
@@ -63,7 +63,7 @@
         if(ds1820[j].begin()) { 
             pc.printf("%s sensor present!\r\n", labels[j].c_str()); 
         } else {
-            pc.printf("No %s sensor found!\r\n", labels[j].c_str());         
+            //pc.printf("No %s sensor found!\r\n", labels[j].c_str());         
         };
     };
     
@@ -89,19 +89,19 @@
         };
 
         
-        wait(0.750);                 // let DS1820 complete the temperature conversion 
+        wait(0.850);                 // let DS1820 complete the temperature conversion 
 
         for ( int j=0; j < 5; j++ ) {
             error = ds1820[j].read(temp); // read temperature from DS1820 and perform cyclic redundancy check (CRC)
             switch(error) {
             case 0:    // no errors -> 'temp' contains the value of measured temperature
-                pc.printf("temp%d = %3.1fC \r\n", j, temp);
+                pc.printf("%s = %3.1fC \r\n", labels[j].c_str() , temp);
                 break;
             case 1:    // no sensor present -> 'temp' is not updated
-                pc.printf("no sensor%d present \r\n", j);
+                pc.printf("no %s sensor present \r\n", labels[j].c_str() );
                 break;
             case 2:    // CRC error -> 'temp' is not updated
-                pc.printf("sensor%d CRC error \r\n", j);
+                pc.printf("%s sensor CRC error \r\n", labels[j].c_str() );
             }; 
         };