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:
Fri Sep 21 17:56:25 2018 +0000
Revision:
39:aa5f95061409
Parent:
38:a0753c2a4497
Child:
42:03cbc2a6f63b
modes added

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 38:a0753c2a4497 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 38:a0753c2a4497 15 void start_temp(); // start temp conversion
andrewklmn 38:a0753c2a4497 16 void check_temp(); // check temp sensor state and read temp
andrewklmn 39:aa5f95061409 17 void process_temp(); // process heating algorithm
andrewklmn 38:a0753c2a4497 18 unsigned int get_temp_config_value(); // get config value from EEPROM
andrewklmn 39:aa5f95061409 19 void save_new_config(); // save new config to EEPROM
andrewklmn 38:a0753c2a4497 20 #endif