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.048 V
- Number of bits: 16
- Jusfitication: right
Signal conditioning
To do:
- Write a function that calculates the ADC code as a function of the sensed value!
Test data:
sensor input | sensor output | ADC input | ADC output | calculated sensor input |
---|
76 C | 1.26 V | 1.26 V | 40320 | 76 C |
105 C | 1.55 V | 1.55 V | 49600 | 105 C |
43 C | 0.93 V | 0.93 V | 29760 | 43 C |