Condensation Monitor Measure the current environment condition at outside and inside and make caution or warnings related to condensation. 結露モニタ 屋内外の環境情報を計測し、結露に関する警告あるいは注意を出力します。
Dependencies: BME280 HDC1000 VaporCondition mbed AQM0802
Fork of mbed_HDC1000 by
Diff: main.cpp
- Revision:
- 3:8f886f74f9bb
- Parent:
- 1:1cf4309871b7
- Child:
- 4:3075954b341c
--- a/main.cpp Sun May 03 23:35:24 2015 +0000 +++ b/main.cpp Mon May 18 23:07:11 2015 +0000 @@ -54,19 +54,20 @@ led1 = 0; led2 = 0; + + // i2c.frequency(100000); while(1) { - Inside.h = float(hdc1000.humidity())/0x10000*100; - - Inside.t = float(hdc1000.temperature())/0x10000*165-40; - + Outside.t = bme280.getTemperature(); Outside.h = bme280.getHumidity(); - Outside.t = bme280.getTemperature(); Outside.p = bme280.getPressure(); Inside.p = bme280.getPressure(); // Usually Pressures are same between inside and outside. + Inside.t = float(hdc1000.temperature())/0x10000*165-40; + Inside.h = float(hdc1000.humidity())/0x10000*100; + // PC("%2.2f degC, %2.2f %%\r\n", t, h); PC("In: %2.2f degC, %2.2f %% Out: %2.2f degC, %2.2f %%, %04.2f hPa\r\n", Inside.t, Inside.h, Outside.t, Outside.h, Outside.p); @@ -146,7 +147,7 @@ } PC("\r\n"); - wait(10); + wait(3); } }