Hello Again,

I am not sure if people get kicks off of figuring out every tiny detail but 
here goes it!

*4:4:41-ti-r82*
*fs.js:549*
*  return binding.open(pathModule._makeLong(path), stringToFlags(flags), 
mode);*
*                 ^*

*Error: ENOENT: no such file or directory, open 
'/sys/bus/iio/devices/iio:device0/in_voltage1_raw'*
*  at Error (native)*
*  at Object.fs.openSync (fs.js:549:18)*
*  at Object.fs.readFileSync (fs.js:397:15)*
*  at Object.exports.readAIN 
(/usr/local/lib/node_modules/bonescript/src/hw_mainline.js:221:30)*
*  at Object.f.analogRead 
(/usr/local/lib/node_modules/bonescript/src/index.js:277:19)*
*  at getBeagleTemp (/var/lib/cloud9/temp11.js:8:19)*
*  at Object.<anonymous> (/var/lib/cloud9/temp11.js:5:1)*
*  at Module._compile (module.js:409:26)*
*  at Object.Module._extensions..js (module.js:416:10)*
*  at Module.load (module.js:343:32)*
*  at Function.Module._load (module.js:300:12)*
*  at Function.Module.runMain (module.js:441:10)*
*  at startup (node.js:140:18)*
*  at node.js:1043:3*

These are the error codes for the older software listed above. If anyone 
knows where to direct me, I am sure I can start an elongate journey into 
reading. Shoot!

Seth

P.S. I have tried in PuTTY and on Chrome on the Cloud9 IDE. 

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/494efec1-633f-4624-a153-09f81fffa766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to