fix minor issues
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user