Hello,

I finally got some read-outs but I had to change the software many times.

Seth

P.S. I will post the software soon.

On Friday, April 14, 2017 at 10:16:23 PM UTC-5, Mala Dies wrote:
>
> Hello,
>
> I am on P9_40 with my TMP36 temperature sensor. I used the book, "30 
> BeagleBone Black Projects." It is lesson number 11. It has some BoneScript 
> lessons but I think the book is outdated. Does anyone know of the updates 
> and how it pertains to temperature sensors?
>
> Seth
>
> P.S. Here is the software I cannot get to read. I am going to try and set 
> it up in Cloud9 instead of on PuTTY and see what happens.
>
> var b = require('bonescript');
>
> var inputPin = "P9_40";
>
> getBeagleTemp();
>
> function getBeagleTemp();
>     var value = b.analogRead(inputPin);
>
>     var millivolts = value * 1800;
>     var temp_c = ( millivolts - 500)/10;
>
>     setTimeout(getBeagleTemp, 1000);
>
>     console.log(temp_c);
> }
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9b15186d-966e-4fe4-9c83-1f976b2bbc8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to