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: 2.5 V
- Number of bits: 10
- 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 |
---|
111 C | 1.11 V | 1.11 V | 29120 | 111.084 C |
116 C | 1.16 V | 1.16 V | 30400 | 115.967 C |
64 C | 0.64 V | 0.64 V | 16768 | 63.9648 C |