STM32F103C8T6_WIFI_Heating_system
Dependencies: mbed mbed-STM32F103C8T6 eeprom_flash Watchdog PinDetect DS1820
- Bluepill STM32F103C8T6 Heating system
- _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)
temp_controller/temp_controller.h
- Committer:
- andrewklmn
- Date:
- 2020-10-06
- Revision:
- 58:70930f201f97
- Parent:
- 50:94730b99ea41
File content as of revision 58:70930f201f97:
#ifndef __TEMP_CONTROLLER_H #define __TEMP_CONTROLLER_H #include "stm32f103c8t6.h" #include "mbed.h" #include "mbed_events.h" //#include <stdio.h> #include "DS1820.h" #include "PinDetect.h" #include "Watchdog.h" #include "eeprom_flash.h" #include <string> void start_temp(); // start temp conversion void check_temp(); // check temp sensor state and read temp void process_temp(); // process heating algorithm unsigned int get_temp_config_value(); // get config value from EEPROM unsigned int get_mode_config_value(); // get mode value from EEPROM void save_new_config(); // save new config to EEPROM void set_pomp_and_heater_by(float * work_temp, unsigned char min_mebel_temp, unsigned char min_litos_temp, unsigned char min_back_water_temp, unsigned char max_hot_water_temp) ; // sets state of pomp and heater depends on input temp #endif