Converting temperature sensor output to degrees Celsius
Hello HexBright Forum,
Does anyone know how to convert the temperature sensor output to degrees celsius? Using the conversion described in the MCP9700 TT datasheet (Vout = Tc1 x TA + V0c, with Tc1 = 10 mV/C and V0c = 500 mV) after converting the APIN_TEMP analog read to mV (4.9 mV/unit) is producing seemingly erroneous data (unless the Hexbright PCB really does run at ~55 degrees C when plugged into a USB and the light off, does it?). I'm hoping to program the HexBright to 'blink-out' the ambient temperature in degrees celsius (in whole integers) following some sort of button/accelerometer input (for example, 25 degrees would 'blink-out' as, two blinks, pause, five blinks). Any help that anyone can provide would be greatly appreciated. Thanks!
Is this a good question?