Hello,
I have another set of software that I picked up along the way, i.e. probably from that book, “Evil Genuis,” series from Mr. Rush. Anyway, here goes it. Oh but first, I know people are getting tired of seeing the same ole, same ole. This does not discourage me from posting.
var b = require(‘bonescript’);
var inputPin = “P9_40”;
getBeagleTemp();
function getBeagleTemp() {
var value = b.analogRead(“P9_40”);
var millivolts = value * 1800;
var x = (millivolts - 500)/10;
var z = (x * 9/5) - 32;
setTimeout(getBeagleTemp, 10000);
console.log(“x=” + x + “\tz=” + z);
}
Now,
I tried this software some and changed it a bit to suit my needs. As you all know, I am not 100% legit in the programming field, i.e. even though I try.
I am getting temperatures in the Fahrenheit of 201 and in Celsius of 129. This is not my temp. in the house.
Seth
P.S. If anyone has any other recommendations, please let me know. Please let me know what you think.