TMP36 and Software and The Info. Was Correct/Seth

35 views
Skip to first unread message

Mala Dies

unread,
Jul 15, 2017, 11:12:18 PM7/15/17
to BeagleBoard



Hello,


This is the print or reading from the software I produced from the book. It works.


I tried a BBB with Grove Cape and it shut the board down and would not power on. I tried it on the BBGW and it fried my TMP36 sensor. I touched the sensor and it was blistering hot. I got burned, i.e. you mothers.


So, in hindsight, I will stick with the BBB and BBBW for now. I have an older  model that is only 2GB. It worked right from the get-go.




Here is the software and it works with GNDA_ADC and pin 'P9_40'.


var b = require('bonescript');


function readTemp() {

   b.analogRead('P9_40', displayTemp);

}


function displayTemp(reading) {

   var millivolts = reading.value * 1800;

   var C = (millivolts - 500) / 10;

   var F = (C * 9/5) + 32

   console.log("C = " + C + "\tF = " + F);

}


setInterval(readTemp, 9000);


So...all is well that ends well.


Seth

Graham

unread,
Jul 16, 2017, 9:33:56 AM7/16/17
to BeagleBoard
All is well that ends.

--- Graham

==


Reply all
Reply to author
Forward
0 new messages