Hi!
I am having problems reading temperature sensor values on my stellaris launchpad (LM4F120H5QR). The values returned by analogRead(TEMPSENSOR) are erratic and do not correlate with actual temperature. I use ubuntu 14.04 and energia 0101E0014. I tried following code:
While runnning this code and putting my finger on MCU this code gives:
ADC value: 1939
Temperature in C: 32.40
------------------------
ADC value: 1871
Temperature in C: 34.50
------------------------
ADC value: 1899
Temperature in C: 32.80
------------------------
ADC value: 1895
Temperature in C: 33.00
------------------------
ADC value: 1895
Temperature in C: 33.00
------------------------
ADC value: 1899
Temperature in C: 32.80
------------------------
ADC value: 1899
Temperature in C: 32.80
------------------------
ADC value: 1895
Temperature in C: 33.00
------------------------
ADC value: 1899
Temperature in C: 32.80
------------------------
ADC value: 1899
Temperature in C: 32.80
------------------------
ADC value: 1895
Temperature in C: 33.00
------------------------
ADC value: 1899
Temperature in C: 32.80
Basicaly no changes in reading, appart from random-like stuttering. What could be the problem here?
Hi! I am having problems reading temperature sensor values on my stellaris launchpad (LM4F120H5QR). The values returned by analogRead(TEMPSENSOR) are erratic and do not correlate with actual temperature. I use ubuntu 14.04 and energia 0101E0014. I tried following code:
While runnning this code and putting my finger on MCU this code gives:
Basicaly no changes in reading, appart from random-like stuttering. What could be the problem here?