Microcontroller sensor interfacing exercises
TMP36 temperature sensor
- sensitivity: 10mV/C; offset: 750 mV at 25 C
- output voltage range: 0.1 V to 1.75 V
ADC
- Voltage reference: 2.25 V
- Number of bits: 11
- Jusfitication: left
Signal conditioning
To do:
- Write a function that calculates the sensed value as a function of the ADC code!
Test data:
| sensor input | sensor output | ADC input | ADC output | calculated sensor input |
|---|
| 84 C | 1.34 V | 1.34 V | 39040 | 84.0332 C |
| -14 C | 0.36 V | 0.36 V | 10496 | -13.9648 C |
| -21 C | 0.29 V | 0.29 V | 8448 | -20.9961 C |