On Thu, Jun 29, 2017 at 7:46 PM, Mala Dies <[email protected]> wrote: > var b = require('bonescript'); > > function readTemp() { > b.analogRead('P9_39', displayTemp); > } > > function displayTemp(reading) { > var millivolts = reading.value * 1800; > var tempC = (millivolts - 500) / 10; > var tempF = (tempC * 9/5) + 32 > console.log("TempC = " + tempC + "\t Temp F = " + tempF); > } > > setInterval(readTemp, 100000); > > Okay... > > This is my software from "Programming the BeagleBone Black" in the > "hardware interfacing" section. I am messing with a TMP36 sensor for analog > temp. reads. > > The issue is this: > > I keep getting a similar read for my C and F reads. I should be able to > get the F read but unfortunately, I get the same as the C read. > > Seth > > > <https://lh3.googleusercontent.com/-6uATaSztQgs/WVWfRwRFJNI/AAAAAAAAJy0/i2WaNX-KV9QkFnW1PE958ZyFCugDxQeaACLcBGAs/s1600/forBBBfiles.JPG> > P.S. Try your TMP36 sensor and this software and get back to me. I would > love to know about the value(s) I am creating and why they are returning > the listed read(s). Oh and here is a photo. See! >
You must live near the equator... ;) -40F == -40C This is something norther folk in America & Canada run into every once in awhile in January... Regards, -- Robert Nelson https://rcn-ee.com/ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgH5k%3D7jqyqALHx_VNtTvgWDeKG1YGx9MTa9FrjLr%2BamQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
