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@42:03cbc2a6f63b, 2018-09-22 (annotated)
- Committer:
- andrewklmn
- Date:
- Sat Sep 22 08:32:20 2018 +0000
- Revision:
- 42:03cbc2a6f63b
- Parent:
- 39:aa5f95061409
- Child:
- 45:abc682827659
AT get command added
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 | 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 |