MaybeUseful.h 744 Bytes
Newer Older
João Lino's avatar
Rel.3  
João Lino committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
/*
void termometerCalibration() {
  float temperaturePumpOFF = 200.0;
  float temperaturePumpON = 200.0;

#ifdef DEBUG
  debugPrintFunction("termometerCalibration");
#endif

  for( int i = 0; i < 300; i++ ) {
    basePT100.measure();
    delay(100);
  }

  temperaturePumpOFF = basePT100.getCurrentTemperature();


  analogWrite(PUMP_PIN, PUMP_SPEED_MAX);

  for( int i = 0; i < 300; i++ ) {
    basePT100.measure();
    delay(100);
  }

  temperaturePumpON = basePT100.getCurrentTemperature();

  analogWrite(PUMP_PIN, PUMP_SPEED_STOP);

#ifdef DEBUG
  debugPrintVar("temperaturePumpOFF", temperaturePumpOFF);
  debugPrintVar("temperaturePumpON", temperaturePumpON);
  debugPrintVar("diff", temperaturePumpON - temperaturePumpOFF);
#endif
}
*/