Condensation Monitor Measure the current environment condition at outside and inside and make caution or warnings related to condensation. Support UART over BLE. It works with nRF Toolbox. 結露モニタ 屋内外の環境情報を計測し、結露に関する警告あるいは注意を出力します。 nRF Toolboxと一緒に動作し、UART機能でBLE経由でメッセージを出力します。 ドキュメント https://developer.mbed.org/users/takafuminaka/notebook/information-about-my-condensation-monitor-for-mbed/
Dependencies: AQM0802 BME280 HDC1000 VaporCondition mbed BLE_API nRF51822 BLE_Condensation_Monitor
Dependents: BLE_Condensation_Monitor
Fork of Condensation_Monitor by
Revision 3:8f886f74f9bb, committed 2015-05-18
- Comitter:
- takafuminaka
- Date:
- Mon May 18 23:07:11 2015 +0000
- Parent:
- 2:362deefab67e
- Child:
- 4:3075954b341c
- Commit message:
- Read Temperature first. It will be used for calculate other measurement.
Changed in this revision
BME280.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BME280.lib Sun May 03 23:35:24 2015 +0000 +++ b/BME280.lib Mon May 18 23:07:11 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/MACRUM/code/BME280/#c35f637c28ef +http://developer.mbed.org/users/takafuminaka/code/BME280/#ddcaa259e65b
--- 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); } }