I moved onto the ADC using a thermometer that is supposed to give the temperature as a function of resistance.
I took the connection diagram in the datasheet and connected a 330 ohm resistor from the temperature vout pin and ground.
I obtained the thermistor resistance using the equation I found on a tutorial site for a thermistor with a resistor in series.
Resistance=(5/(Adc_val/1023*5)*330)-330
I used the resistance-temperature table to get the equation in excel that could convert the resistance of the thermistor to a temperature.
When I run the program I get a value much lower than the mercury bulb(+-10 degree less) and as the temperature goes higher the error seems to get smaller.
Is it perhaps necessary to sit with the mercury bulb and do my own calibration with my own values.
I took the connection diagram in the datasheet and connected a 330 ohm resistor from the temperature vout pin and ground.
I obtained the thermistor resistance using the equation I found on a tutorial site for a thermistor with a resistor in series.
Resistance=(5/(Adc_val/1023*5)*330)-330
I used the resistance-temperature table to get the equation in excel that could convert the resistance of the thermistor to a temperature.
When I run the program I get a value much lower than the mercury bulb(+-10 degree less) and as the temperature goes higher the error seems to get smaller.
Is it perhaps necessary to sit with the mercury bulb and do my own calibration with my own values.