6 sharps, 2 ads hooked up

Dependencies:   ADS1115 BME280 CronoDot SDFileSystem mbed

Fork of Outdoor_UPAS_v1_2_Tboard by Volckens Group Sensors

Revisions of main.cpp

Revision Date Message Actions
30:aa6324845a84 2016-04-25 Changed the requirement for setting the serial number via sample name. Now requires a two digit number followed by a ~. ex 01~ will set the sampler name to MS0001. File  Diff  Annotate
29:fd74725294d5 2016-04-24 sets the serial # using the sample id string. If a 2 digit sample id is set then that value will be used for the serial number. If sample name > 2 will use existing. samplers 1-17 will have MS and >17 will be PS. SD file will use designation too File  Diff  Annotate
28:42932d3b105d 2016-04-23 Added hbridge code for Tboard RevC boards and probably some other stuff too. File  Diff  Annotate
27:922f53fa649c 2016-04-21 Fixed distance calculations to determine if at home or work/school. This version doesn't have the pumps turning on, and no flow control. File  Diff  Annotate
26:6aa294d83af4 2016-04-20 Pulls EEPROM lat/lon data for 2 microenvironments and sets them to global variables available for algorithm logic. File  Diff  Annotate
25:fbf7d44e7da4 2016-04-20 Added in microenvironment gps setting for 2 locations settable by the updated app. Battery near dead or after 8 pm red led blink to remind to plug in. Turn pumps off if the 3.3 rail drops out, turn back on once plugged in. Primarily for FOCO school File  Diff  Annotate
24:e274a34492cf 2016-04-07 Commented out Hbridge code from now until Tboard fix is completed. File  Diff  Annotate
23:1ca41779b8ec 2016-03-28 Tests Hbridges top two HB2 and HB4 are working. Added in gps heading and also red light for log when no gps connection and RGB light when gps connection.; UPASv1_Tboard_NUCLEO_L152RE_Hbridge_test_RN4677_GPS_pumpson_100digpot_20160327.bin File  Diff  Annotate
22:baa5a077d908 2016-03-26 Last publish was writing a new file every log instead of append. UPASv1_Tboard_NUCLEO_L152RE_BLERN4677_GPS_noHbridges_pumpson_20160325.bin File  Diff  Annotate
21:bb10efc5bf57 2016-03-26 BLE iOS programmable with GPS working. Hbridges only H4 is working? UPASv1_Tboard_NUCLEO_L152RE_BLERN4677_GPS_noHbridges_pumpson_20160325 File  Diff  Annotate
20:30a00cd18e21 2016-03-24 Few lines of code added at top of main for testing the EEPROM. Turns pumps on if EEPROM is NOT working File  Diff  Annotate
19:b835bfb61e35 2016-03-24 RN4677 on, gps off, sd logging file: UPASv1_2_Tboard_NUCLEO_L152RE_barebones_i2c_sdlog_rn4677_manualtimeset_pumpsonat100digpot_20160324.bin File  Diff  Annotate
18:41ef98db0423 2016-03-22 GPS, RN4677 programming, and pumps set to run without flow control at digitalpot setting of 100. UPASv1_2_Tboard_NUCLEO_L152RE_barebones_i2c_sdlog_gps_rn4677_manualtimeset_pumpsonat100digpot_20160322.bin File  Diff  Annotate
17:3e6dda6e6335 2016-03-22 GPS off, RN4677 on (works with iPhone only currently). Pumps are turned off. File UPASv1_2_Tboard_NUCLEO_L152RE_barebones_i2c_sdlog_rn4677_manualtimeset_nopump_20160322.bin File  Diff  Annotate
16:577cb22cec99 2016-03-22 added in gps File  Diff  Annotate
15:e564c8031c47 2016-03-22 actually set the time, added \r\n to make new lines in the txt file, changed LED scheme, and logging interval to 5 secs. This is the code for UPASv1_2_Tboard_NUCLEO_L152RE_barebones_i2c_sdlog_manualtimeset_20160322.bin File  Diff  Annotate
14:7cdb643da356 2016-03-22 Basic UPASv1 functionality with manual time set using the STM32 RTC and not the chronodot. No flow control but logging all UPASv1 data. UPASv1_Tboard_NUCLEO_L152RE_barebones_i2c_sdlog_manualtimeset_20160322.txt File  Diff  Annotate
13:455601f62aad 2016-03-22 Basic code for initial flashing of the Tboards. Code is also saved as a text file: UPASv1_Tboard_NUCLEO_L152RE_barebones_noi2c_20160321.txt. File  Diff  Annotate
12:5b4f3245606a 2016-03-21 Basic Tboard functionality. No i2c activated. File  Diff  Annotate
11:aa21628a9b15 2016-03-03 Reverted back to official mbed library due to Tboard trace changes to leave Serial2 for the USB com and to use Serial3 RX,TX,CTS,RTS for the RN4677. This works with the nucleo module. File  Diff  Annotate
10:06fbb1c9e3bd 2016-03-02 Updated mbed files and nucleo board to "try" and make the tboard RN4677 work on D1 and D0 rather than D8 and D2 pins. Still not working exactly right... File  Diff  Annotate
9:8646fd501832 2016-03-02 General code cleaning and also added in the chronodot RTC into the log file for now. File  Diff  Annotate
8:c4a8f9b67cee 2016-03-02 Separated the flow control code from the log code such that the flow control can now be checked at the same interval all the time regardless of the logging interval. File  Diff  Annotate
7:29b01d5812ee 2016-03-01 ST RTC now being set (most of the time) with the app. Also callback for the log_data are now working (needed a while(1){} in the main loop for the interrupts to continue working. Need to check that the stop interrupt is working. File  Diff  Annotate
6:a738dcd53bf8 2016-03-01 Recopied and updated the mbed folder version (now seems to work)... must not have been completely copied over... File  Diff  Annotate
5:c3252e5d45ca 2016-02-29 Changed RN4677 pins to D8 and D2 to match what Jake had previously and try to troubleshoot app issues first, then will need to address the potential pin conflict from nucleo pinout and the tboard pinout assignments. File  Diff  Annotate
4:5d004fd997d5 2016-02-26 Initial UPAS Tboard code. Currently has i2c, STRTC, and SDcard all working. Still need to figure out/add in RN4677, Ublox GPS, and hbridges File  Diff  Annotate
3:122bfc998c4c 2016-02-08 MicroBLE App mirrors same func. as UPAS_BLE_SD_iOS with this commit. Callbacks do not work properly/consistently File  Diff  Annotate
2:88fcbfadec6a 2016-02-03 App can now read/write to sample name, log interval, flow rate, and start/stop time. Still missing RTC File  Diff  Annotate
1:9fbb5b665068 2016-01-28 Reliably sending and receiving bytes from my own app... no distinction between messages here File  Diff  Annotate
0:2cb2b2ea316f 2016-01-18 Code can currently send bytes of info off the EEPROM and receive bytes over BLE. Currently does not do anything with sent data File  Diff  Annotate