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@38:a0753c2a4497, 2018-09-18 (annotated)
- Committer:
- andrewklmn
- Date:
- Tue Sep 18 20:49:05 2018 +0000
- Revision:
- 38:a0753c2a4497
- Child:
- 39:aa5f95061409
temp_controller function was moved from mian.cpp to own folder
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 | 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 | 38:a0753c2a4497 | 17 | unsigned int get_temp_config_value(); // get config value from EEPROM |
andrewklmn | 38:a0753c2a4497 | 18 | |
andrewklmn | 38:a0753c2a4497 | 19 | #endif |