fork of StatusReporter with specific changes for the changeover to the support personnel database
Dependencies: ID12RFID SalesforceCaseGenerator-df2014 SalesforceInterface SupportPersonnelDB
Dependents: df-2014-rfid-case-gen-k64f-complete df-2014-rfid-case-gen-k64f-exercise
Fork of StatusReporter by
Diff: StatusReporter.cpp
- Revision:
- 22:dcc1ade67468
- Parent:
- 21:2b85d1442d34
--- a/StatusReporter.cpp Mon Oct 06 03:15:01 2014 +0000 +++ b/StatusReporter.cpp Tue Oct 07 22:05:25 2014 +0000 @@ -25,7 +25,10 @@ // ****************** DreamForce 2014 ******************// - // Temperature sensor - The TMP36 sensor uses A3 in the shield.. See Definitions.h for the define. + // TEMP SENSOR - The TMP36 sensor uses A3 in the shield.. See Definitions.h for the define. + // + // Please uncomment this line below to bind to your TMP36 sensor + // // AnalogIn tmp36_temp_sensor(TEMP_PIN); // ****************** DreamForce 2014 ******************// @@ -41,13 +44,22 @@ // Calculate the ambient temperature of the TMP36 sensor in C... int StatusReporter::getLocalTemperature() { - // Temperature sensor output voltage per TMP36 data sheet + // TEMP SENSOR output voltage per TMP36 data sheet + // + // Celcius temperature for the TMP36 sensor is calulated as follows: + // tempC = ((temperature_sensor_voltage*3.3) - 0.6) * 100.0; + // + // FYI, the shield provides 3.3V to the TMP36 sensor. // - // Celcius temperature is calulated as follows: - // tempC = ((temperature_sensor_voltage*3.3) - 0.6) * 100.0; + // You can provide this calculation by copying this code: + // + // float tempC = (float)(((float)tmp36_temp_sensor*3.3)-0.600)*100.0; // - // Example: float tempC = (float)(((float)tmp36_temp_sensor*3.3)-0.600)*100.0; + // in place of // + // float tempC = 0.0; + // + // below. float tempC = 0.0;