Hi... It looks from the MCP9701 info like the MCP9701 is an 'active' thermistor and outputs a voltage (rather than resistance) so you don't need a resistor at all. Not only that but it's linear.
The datasheet gives you the formula you need - I don't have one here to test but your code should look something like:
var vOut = E.getAnalogVRef() * analogRead(A0); // if you attached VOUT to Ao
var vZero = 0.4;
var tCoeff = 19.5 / 1000;
var temp = (vOut - vZero) / tCoeff;
console.log(temp);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi... It looks from the MCP9701 info like the MCP9701 is an 'active' thermistor and outputs a voltage (rather than resistance) so you don't need a resistor at all. Not only that but it's linear.
The datasheet gives you the formula you need - I don't have one here to test but your code should look something like: