Microcontroller sensor interfacing exercises
K thermocouple temperature sensor
- sensitivity: 40 uV/C, offset: 0V at 0C
- output voltage range: -0.008 V to 0.024 V
ADC
- Voltage reference: 2.048 V
- Number of bits: 16
- Jusfitication: right
Signal conditioning
- amplifier
- amplification: 42
- offset: 1.024 V
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 |
---|
67 C | 0.00268 V | 1.13656 V | 36370 | 67.0015 C |
243 C | 0.00972 V | 1.43224 V | 45832 | 243.006 C |
388 C | 0.01552 V | 1.67584 V | 53627 | 388.002 C |