Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017

Dependencies:   ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822

Fork of UPAS_BLE_and_USB by Volckens Group Sensors

Files at this revision

API Documentation at this revision

Comitter:
caseyquinn
Date:
Sun Aug 16 17:10:37 2015 +0000
Parent:
69:7a99d97c334e
Child:
71:78edbceff4fc
Commit message:
Fixed issues with logging time stamp variation. Logs at 10s intervals at 0,10,20,30,40,50 seconds.

Changed in this revision

BLE_API.lib Show diff for this revision Revisions of this file
UPAS_Serial.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Sat Aug 15 17:30:20 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8d316a3271a8
--- a/UPAS_Serial.lib	Sat Aug 15 17:30:20 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://developer.mbed.org/teams/Vockens-Group-Sensors/code/UPAS_Serial/#ec0e3781c820
--- a/main.cpp	Sat Aug 15 17:30:20 2015 +0000
+++ b/main.cpp	Sun Aug 16 17:10:37 2015 +0000
@@ -58,6 +58,8 @@
 
 
 
+
+
 float press;
 float temp;
 float rh;
@@ -118,13 +120,22 @@
         pbKill = 0; // this is were we shut everything down
     }
     stop.detach();
-    stop.attach(&check_stop, 5);    // checks stop time every 5 seconds
+    stop.attach(&check_stop, 9);    
 }
 
 
 void log_data()
 {
+    logg.detach();
+    logg.attach(&log_data, logInerval);
     RTC.get_time();
+    secondsD = RTC.seconds;
+    while(fmod(secondsD,logInerval)!=0){
+        RTC.get_time();
+        secondsD = RTC.seconds;
+        }
+    
+    
     omronReading = ads.readADC_SingleEnded(0, 0xC583); // read channel 0 PGA = 2 : Full Scale Range = 2.048V
     omronVolt = (omronReading*4.096)/(32768*2);
 
@@ -197,9 +208,8 @@
     //Unmount the filesystem
     //sd.unmount();
 
-    wait(1);
-    logg.detach();
-    logg.attach(&log_data, 10);
+    //wait(1.2);
+    
 }
 
 int main()
--- a/nRF51822.lib	Sat Aug 15 17:30:20 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#ca9c9c2cfc6a