Microcontroller sensor interfacing exercises
LM35 temperature sensor
- sensitivity: 10mV/C; offset: 0V at 0C
- output voltage range: 0 V to 1.5 V
ADC
- Voltage reference: 1.1 V
- Number of bits: 11
- Jusfitication: right
Signal conditioning
- voltage divider
- R1 = 12 k, R2 = 33 k

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 |
---|
31 C | 0.31 V | 0.227333 V | 423 | 30.9814 C |
63 C | 0.63 V | 0.462 V | 860 | 62.9883 C |
56 C | 0.56 V | 0.410667 V | 765 | 56.0303 C |