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@60:7ae1d3b965ae, 2021-03-28 (annotated)
- Committer:
- andrewklmn
- Date:
- Sun Mar 28 09:34:51 2021 +0000
- Revision:
- 60:7ae1d3b965ae
- Parent:
- 58:70930f201f97
Add: readme.md
Who changed what in which revision?
User | Revision | Line number | New 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 | 58:70930f201f97 | 21 | void set_pomp_and_heater_by(float * work_temp, |
andrewklmn | 58:70930f201f97 | 22 | unsigned char min_mebel_temp, |
andrewklmn | 58:70930f201f97 | 23 | unsigned char min_litos_temp, |
andrewklmn | 58:70930f201f97 | 24 | unsigned char min_back_water_temp, |
andrewklmn | 58:70930f201f97 | 25 | unsigned char max_hot_water_temp) ; // sets state of pomp and heater depends on input temp |
andrewklmn | 45:abc682827659 | 26 | |
andrewklmn | 38:a0753c2a4497 | 27 | #endif |