fix minor issues

This commit is contained in:
2023-10-23 18:38:48 +01:00
parent fe80d4c70e
commit 8104be2a45

View File

@@ -32,9 +32,9 @@ void loop()
/* Put your code here to read ADCs and convert ADC voltages to /* Put your code here to read ADCs and convert ADC voltages to
temperatures */ temperatures */
thermistor_val = analogRead(ThermistorPin); thermistor_val = analogRead(ThermistorPin);
thermocouple_val = analogRead(TCpin) thermocouple_val = analogRead(TCpin);
// Calculate thermistor temperature in degrees C ( Part b, i,ii,iii & v) // Calculate thermistor temperature in degrees C ( Part b, i,ii,iii & v)
thermistor_temp = kelvin_to_c(resistance_to_temperature(voltage_to_thermistor_resistance(adc_to_voltage(thermistor_val)))); thermistor_temp = kelvin_to_c(resistance_to_thermistor_temperature(voltage_to_thermistor_resistance(adc_to_voltage(thermistor_val))));
// Calculate thermocouple temperature in degrees C ( Part c, i - iv) // Calculate thermocouple temperature in degrees C ( Part c, i - iv)
e_rc = 1000*voltage_to_erc(adc_to_voltage(thermocouple_val)); // convert to millivolts e_rc = 1000*voltage_to_erc(adc_to_voltage(thermocouple_val)); // convert to millivolts