Go to advanced search

by Aurimaslu
Wed May 28, 2014 12:27 pm
Forum: General programming discussion
Topic: Read Gpio with Nodejs
Replies: 0
Views: 829

Read Gpio with Nodejs

Its possible read GPIO value then GPIO direction is input. I try use GPIO package, but first value is 0 but should be 1. I use Raspberry Pi. var gpio = require("gpio"); var pin5 = gpio.export(18, { direction: "in", ready: function() { } }); function readInput() { a = pin5.value; if (a == 0){ pin3.se...
by Aurimaslu
Fri May 16, 2014 7:46 pm
Forum: Automation, sensing and robotics
Topic: IR sensor
Replies: 2
Views: 1256

Re: IR sensor

Yes something like this, but i try to send simple signal IR333C ant with TSOP38238 receive signal ant make event in nodejs, or like in your video with led. But all example with lirc and remote control. So maybe someone know how can i release that on raspberry. Anyone ?
by Aurimaslu
Tue May 13, 2014 8:13 pm
Forum: Automation, sensing and robotics
Topic: IR sensor
Replies: 2
Views: 1256

IR sensor

Hello, its possible make IR sensor with TSOP38238 and IR333C using NodeJS ?
by Aurimaslu
Thu May 08, 2014 5:15 pm
Forum: General programming discussion
Topic: NodeJS web server lagging
Replies: 1
Views: 1290

NodeJS web server lagging

After 1-2 min. running web server on raspberry pi, i get lag. I use nodeJS, socket.io and sqlite database. I suspect this: io.sockets.on('connection', function(socket){ setInterval(function(){ fs.readFile('/sys/bus/w1/devices/'+ tempId +'/w1_slave', function(error, buffer){ // Read data from file (u...
by Aurimaslu
Fri Feb 28, 2014 3:44 pm
Forum: Automation, sensing and robotics
Topic: DS2405 test
Replies: 5
Views: 1705

Re: DS2405 test

But its not like simple gpio control and i cant understand how to check :(
by Aurimaslu
Fri Feb 28, 2014 2:35 pm
Forum: Automation, sensing and robotics
Topic: DS2405 test
Replies: 5
Views: 1705

Re: DS2405 test

But maybe there is a simple way through the command line?
by Aurimaslu
Fri Feb 28, 2014 2:22 pm
Forum: Automation, sensing and robotics
Topic: DS2405 test
Replies: 5
Views: 1705

DS2405 test

How can i test relay circuit with DS2405 ?
by Aurimaslu
Fri Dec 13, 2013 8:36 pm
Forum: Automation, sensing and robotics
Topic: need simple example for control gpio
Replies: 1
Views: 718

need simple example for control gpio

Hi, maybe someone have simple example, that i can control 1 gpio pin via web using node.js and socket.io. I am not understand how should work button.

Go to advanced search