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)
Diff: main.cpp
- Revision:
- 21:819277430a55
- Parent:
- 20:4f3a45fd4bbb
- Child:
- 22:32beca745706
--- a/main.cpp Wed Sep 12 19:40:14 2018 +0000 +++ b/main.cpp Wed Sep 12 20:30:34 2018 +0000 @@ -57,7 +57,7 @@ pc.attach(&rxCallback, Serial::RxIrq); pc.baud(115200); - pc.printf("Hello world! Mbed version\r\n"); + pc.printf("Wifi Heating system\r\n"); for ( int j=0; j < 5; j++ ) { if(ds1820[j].begin()) { @@ -89,7 +89,7 @@ }; - wait(0.850); // let DS1820 complete the temperature conversion + wait(1.0); // let DS1820 complete the temperature conversion for ( int j=0; j < 5; j++ ) { error = ds1820[j].read(temp); // read temperature from DS1820 and perform cyclic redundancy check (CRC)