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)

Committer:
andrewklmn
Date:
Mon Sep 24 13:47:03 2018 +0000
Revision:
50:94730b99ea41
Parent:
46:0d60fbcfb245
Child:
58:70930f201f97
add  eeprom storage for WORKING_MODE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewklmn 38:a0753c2a4497 1 #ifndef __TEMP_CONTROLLER_H
andrewklmn 38:a0753c2a4497 2 #define __TEMP_CONTROLLER_H
andrewklmn 38:a0753c2a4497 3
andrewklmn 38:a0753c2a4497 4 #include "stm32f103c8t6.h"
andrewklmn 38:a0753c2a4497 5 #include "mbed.h"
andrewklmn 38:a0753c2a4497 6 #include "mbed_events.h"
andrewklmn 42:03cbc2a6f63b 7 //#include <stdio.h>
andrewklmn 38:a0753c2a4497 8 #include "DS1820.h"
andrewklmn 38:a0753c2a4497 9 #include "PinDetect.h"
andrewklmn 38:a0753c2a4497 10 #include "Watchdog.h"
andrewklmn 38:a0753c2a4497 11 #include "eeprom_flash.h"
andrewklmn 38:a0753c2a4497 12 #include <string>
andrewklmn 38:a0753c2a4497 13
andrewklmn 38:a0753c2a4497 14
andrewklmn 46:0d60fbcfb245 15 void start_temp(); // start temp conversion
andrewklmn 46:0d60fbcfb245 16 void check_temp(); // check temp sensor state and read temp
andrewklmn 46:0d60fbcfb245 17 void process_temp(); // process heating algorithm
andrewklmn 50:94730b99ea41 18 unsigned int get_temp_config_value(); // get config value from EEPROM
andrewklmn 50:94730b99ea41 19 unsigned int get_mode_config_value(); // get mode value from EEPROM
andrewklmn 46:0d60fbcfb245 20 void save_new_config(); // save new config to EEPROM
andrewklmn 45:abc682827659 21 void set_pomp_and_heater_by(float * work_temp); // sets state of pomp and heater depends on input temp
andrewklmn 46:0d60fbcfb245 22 void set_pomp_and_heater_eco_mode(float * work_temp); // sets state of pomp and heater depends on input temp
andrewklmn 45:abc682827659 23
andrewklmn 38:a0753c2a4497 24 #endif