My current project involves measuring temperature using a K-type thermocouple and an amplifier from Adafruit
(
https://www.adafruit.com/products/1778) reading on the analog pin 10.
The problem I'm running into is that I need to convert the reading into a relative voltage, and then translate that into a temperature, ie
Temperature = (Vout - 1.25) / 0.005 V.
Vout is supposed to be
Vout = (analog reading) * 3.3 / 1024
where that 3.3 should be the internal voltage reference.
What I've noticed is that it's not 3.3, and it changes depending on the power source. When powered from my laptop USB I'm measuring a reference closer to 3.19, and when plugged into a USB adapter I get 3.17.
Right now a voltmeter is measuring
4.9V on Vin
0.0V on Gnd
3.29V on Vcc
My attempt at setting up a scientific process has my thermometer in an ice bath that should be a 0C and that is supposed to produce a voltage of 1.25, but instead I'm getting 1.238V
I know there was a thread about this with the Digispark Pro but I'm not sure if that was every resolved. Any thoughts?