Data logger: Sensors -> Barometer & temperature (BMP180), Humidity & temp. (RHT03), Sunshine (Cds): Display -> 20 chracters x 4 lines: Strage -> EEPROM (AT24C1024): Special functions -> Enter sleep mode to save current, reading the logging data via serial line
Dependencies: AT24C1024 BMP180 M41T62 RHT03 TextLCD WakeUp mbed
Fork of LPC1114_barometer_with_data_logging by
Please refer following Notebook.
http://mbed.org/users/kenjiArai/notebook/mbed-lpc1114fn28-data-logger/
Revision 19:19dd6332d729, committed 2014-08-19
- Comitter:
- kenjiArai
- Date:
- Tue Aug 19 12:00:06 2014 +0000
- Parent:
- 18:2a1d75bc8ebc
- Commit message:
- changed interval and logging time
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 11 21:56:18 2014 +0000 +++ b/main.cpp Tue Aug 19 12:00:06 2014 +0000 @@ -6,7 +6,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: May 21st, 2014 - * Revised: August 12th, 2014 + * Revised: August 19th, 2014 * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -38,8 +38,8 @@ #define CDS_TBL_SIZE 13 // Waiting time -//#define TIME_INTERVAL 600 // 10 minutes -#define TIME_INTERVAL 60 // 1 minutes +#define TIME_INTERVAL 600 // 10 minutes +//#define TIME_INTERVAL 60 // 1 minutes typedef enum {CDS = 0, VREF, VOL} ADC_Select; @@ -255,7 +255,8 @@ analog_pwr = 0; vref_pwr = 0; // Wait with sleep - WakeUp::set(10); + WakeUp::set_ms(30000); + //WakeUp::set(10); wait(0.001); // looks important for works well myled = 1; wait(0.001);