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: 1.5 V
- Number of bits: 14
- Jusfitication: left
Signal conditioning
- voltage divider
- division ratio: 75/88
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 |
---|
68 C | 1.18 V | 1.00568 V | 43940 | 68.0029 C |
97 C | 1.47 V | 1.25284 V | 54736 | 96.9961 C |
99 C | 1.49 V | 1.26989 V | 55484 | 99.0049 C |