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

Revisions of main.cpp

Revision Date Message Actions
58:7239c2ab2b65 2015-07-02 Added back in the stop time function which still doesn't work properly File  Diff  Annotate
57:0b554f7aa9a3 2015-07-01 Removed stop time requirement and fixed the issue with accidentally commenting out the start time while loop. File  Diff  Annotate
56:c4d6bdd7c3fb 2015-06-30 Set gas gauge to reset when the UPAS is turned on. File  Diff  Annotate
55:f24d70f519cd 2015-06-29 Updated RTC calls to reflect josh's changes to the library. Added in a hold for large changes in flow to permit the return to original digital pot setting to allow for recovery from temporary flow blockage. File  Diff  Annotate
54:8ee11c9ecd8a 2015-06-27 Updated UPAS12 TF File  Diff  Annotate
53:03d8d5b1f06b 2015-06-27 Updated UPAS12 TF File  Diff  Annotate
52:80480b2fafba 2015-06-18 v1.1 code for UBC/OSU UPASs. Includes flow control and integrated sample volume. Individual calibration coefficients in calibration spreadsheet and MS-Word doc. File  Diff  Annotate
51:91cfb90e901c 2015-06-16 Corrected serial stamp to UPAS0011 File  Diff  Annotate
50:dddf01867e85 2015-06-12 still contains RTCtime errors on lines 112 and 122 File  Diff  Annotate
49:19e828650618 2015-06-14 Made the Omron min and max voltage and flow rates a variable that can be set in one place. File  Diff  Annotate
48:b8cbef6aaed2 2015-06-14 Updated sd printout File  Diff  Annotate
47:3146e8c949a9 2015-06-13 added variable gain for 1 and 2 lpm flow rates. File  Diff  Annotate
46:af5f2d7c158c 2015-06-13 Updated flow control. Integrated led indication of operation mode as well. No filter load can be problematic, but a red light indicates this issue. We can kill the unit if appropriate flow can't be obtained. File  Diff  Annotate
45:1d06ac109d04 2015-06-12 modified line 224 SD card write to reflect the int to float change for the UV index. File  Diff  Annotate
44:096dcb50ff08 2015-06-12 Uses a gain of 100x the mass flow error. Seems to work well even with disturbance inputs. File  Diff  Annotate
43:da0708632a21 2015-06-12 try number two on the flow control code File  Diff  Annotate
42:fc2f2b9f07ae 2015-06-11 Attempt at flow control. Need to figure out a more fundamental base number. Perhaps use the deltaflow rate portion. File  Diff  Annotate
41:1fb3e0ac6f87 2015-06-09 Replaced wire.h library with CronoDot library. File  Diff  Annotate
40:ef7e1dcb3780 2015-06-09 Added the library to control the RGB LED and turned the LED on as low as possible green. File  Diff  Annotate
38:e02e037132b4 2015-06-05 updated fprintf precision for acc_x/y/z to 4 decimal places File  Diff  Annotate
37:838824df3f5f 2015-06-04 Operating code in UPASs shipped to UBC/OSU - includes all MFS transfer functions File  Diff  Annotate
36:2d90be7655e1 2015-06-03 Updated filenaming File  Diff  Annotate
35:bd978e6ccd82 2015-06-02 Removed wire.h library and replaced it with the CronoDot library. Also added the NCP5623BMUTBG library for control over RGB LEDs. File  Diff  Annotate
34:481403146690 2015-05-31 Simple control loop implemented. File  Diff  Annotate
33:bc73a2493821 2015-05-31 UPAS0005 with 31May calibration and updated log filenaming File  Diff  Annotate
32:72e9ea8368da 2015-05-31 UPAS0005 calibrated 31May2015 File  Diff  Annotate
31:f8504ef165fb 2015-05-31 File name formatting modification File  Diff  Annotate
30:8a33a94a1a89 2015-05-31 UPAS0004 operating code calibrated 31May2015 File  Diff  Annotate
29:29dcd5391c36 2015-05-31 Operating program for UPAS0003 31May2015 File  Diff  Annotate
28:39747a95e989 2015-05-31 Not sure what is updated here File  Diff  Annotate
27:6830122ebc00 2015-05-30 UPAS0002 Operational Code 2015 05 30 Calibration File  Diff  Annotate
26:9cf8e76d8274 2015-05-30 UPAS0002 Operational Code 2015 05 30 Calibration File  Diff  Annotate
25:658a9a146391 2015-05-30 Added a -5 degree C offset for temp to line 155 File  Diff  Annotate
24:ff113c02d680 2015-05-30 UPAS0001 Operational Code 2015 05 30 Calibration added in comments for file name of calibration spreadsheet. File  Diff  Annotate
23:3647fecd3cef 2015-05-30 UPAS0001 Operational Code 2015 05 30 Calibration File  Diff  Annotate
22:8dd7e0d4c21c 2015-05-30 Auto sets the digital pot based on set point of 1 lpm, bme temp/press/rh from bme, and the mass flow-digital pot transfer function File  Diff  Annotate
21:765896ebd61c 2015-05-30 removed the test offset omron value of 0.1 from line 124 File  Diff  Annotate
20:ad9883973d86 2015-05-30 Added in placeholder equations for mass and volumetric flow rate File  Diff  Annotate
19:addd6c99c970 2015-05-30 fixed the issue with last rev on line 151 File  Diff  Annotate
18:f530dfdc0c05 2015-05-30 Rearranged the print out values in line 151 File  Diff  Annotate
17:1baf7cab694e 2015-05-30 Changed datalogging file name to UPASLOG_YearMonthDayHourMinuteSec.txt File  Diff  Annotate
16:210e5eaeb89b 2015-05-30 Added Light Sensor and everything is saving correctly to UPASLOGxx.txt, but can only go up to files UPASLOG00.txt-UPASLOG04.txt File  Diff  Annotate
15:3d1322f05b8e 2015-05-29 Modified Saved Files with date time stamp File  Diff  Annotate
14:ad550174db8b 2015-05-29 Added SI1145 Light Sensor and Updated Libraries to reference Volckens Group Repo File  Diff  Annotate
13:a8e096e715bd 2015-05-21 Removed Honeywell pressure sensor File  Diff  Annotate
12:8c00a7f5d483 2015-05-20 Replaced BMP280 library with BME280 library File  Diff  Annotate
11:2297d364af61 2015-05-20 Uses RTC to log consistently every 10 seconds, and a 1 second wait period to eliminate multiple logging events in the same second. File  Diff  Annotate
10:f9cb61b29340 2015-05-20 UPAS Code for AST-UBCUO sampler File  Diff  Annotate
9:2057c3779b6a 2015-05-14 Modified code to fix 24 hour clock time. File  Diff  Annotate
8:204c21adf693 2015-05-12 Toggles on the pump after the digital pot value is set. Added the Honeywell analog pressure sensing line. File  Diff  Annotate
7:a24d7156bc02 2015-05-06 Added RTC and STC3100 Gas Gauge File  Diff  Annotate
6:2328feb48792 2015-05-05 Added option to change Omron Gain for increased voltage range for Dan's manifold design. File  Diff  Annotate
5:0edf35b6d79a 2015-05-03 added bmp280 data (temp is in F and press in hPa) File  Diff  Annotate
4:69bd7e8a994c 2015-05-03 added in timer function for runtime time stamp File  Diff  Annotate
3:2d059d88582b 2015-05-03 Data filename corrected, logging ADS1115 byte words to sd card with incrementing filenames File  Diff  Annotate
2:e596e685eb39 2015-05-03 5 seconds between logging, append to file, and saving ADS1115 data File  Diff  Annotate
1:37babeb68ab9 2015-05-02 upas sd-card cq File  Diff  Annotate
0:14d46ef4b6cb 2015-05-01 UPAS SD Card and ADS1115 File  Diff  Annotate