- #1

- 9

- 0

I am making a gauge using a microprocessor. I have several sensors and will post one now. It is basically a resistor and its value changes with temperature.

I connect this voltage to an ADC (analog to digital converter) that the micro can read and it returns a number between 1024 and zero that corresponds to the temperature.

I need a SIMPLE formula that will let me calculate the temperature based on the number I receive from the ADC.

The micro only does 16 bit math (no floating point) so it is very difficult to work with. It has normal arithmetic and a modulus (//) operator for the division remainder.

These are the numbers for the graph as I have accurately measured them. The formula needs to use the ADC value so I can calculate the temperature.

I will post the other two after this one.

Thanks for the help.

100 894

112 868

125 849

138 818

150 780

163 754

175 678

180 676

188 666

195 645

200 622

205 606

213 580

220 554

225 531

230 516

238 484

245 457

250 440

255 420

263 377

275 330

I connect this voltage to an ADC (analog to digital converter) that the micro can read and it returns a number between 1024 and zero that corresponds to the temperature.

I need a SIMPLE formula that will let me calculate the temperature based on the number I receive from the ADC.

The micro only does 16 bit math (no floating point) so it is very difficult to work with. It has normal arithmetic and a modulus (//) operator for the division remainder.

These are the numbers for the graph as I have accurately measured them. The formula needs to use the ADC value so I can calculate the temperature.

I will post the other two after this one.

Thanks for the help.

**Temp ADC**100 894

112 868

125 849

138 818

150 780

163 754

175 678

180 676

188 666

195 645

200 622

205 606

213 580

220 554

225 531

230 516

238 484

245 457

250 440

255 420

263 377

275 330

Last edited: