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: 14
- Jusfitication: left
Signal conditioning
- voltage divider
- division ratio: 33/45
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 |
---|
108 C | 1.08 V | 0.792 V | 47184 | 107.996 C |
41 C | 0.41 V | 0.300667 V | 17912 | 40.9973 C |
119 C | 1.19 V | 0.872667 V | 51992 | 119 C |