Questions tagged [johnny-five]

Firmata based JavaScript Arduino Framework

Johnny-Five is an Open Source, JavaScript Arduino programming framework, developed at Bocoup.

107 questions
1
vote
1 answer

RGB LED blinking with Arduino + Johnny-five

I have this RGB 5050 LED trip. Im currently using this with an Arduino board and Johnny-Five platform because I need to use Javascript to control it. I want to make the LED blink on a certain frequency and this will increase slowly. For a single…
MWsan
  • 448
  • 1
  • 8
  • 20
1
vote
2 answers

could not open moddep > file '/lib/modules/4.4.26-v7+/modules.dep.bin

I am having hard time trying to find nodejs samples with the groovepi and pi 3. I want to do a simple hello world, I found a groovepi sample with intel edison but obviously that didnt work. Doing a little of research, I found johny five library but…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
vote
0 answers

Errors installing -g node-gyp on OSX El Capitan

I'm trying to install johnny-five to run Arduino Uno through JS. I keep getting stuck on npm install -g node-gyp. This seems to be a common issue, but none of the threads I've found have proven helpful. I'm very new to all of this, so please…
JulieFunk
  • 53
  • 6
1
vote
1 answer

"exit" event is thrown after board is "ready"

I'm trying to control 3 leds plugged into my raspberry-pi2, and I installed johnny-five to do that. I don't think it is linked to the problem, but there were a slight error while installing johnny-five, described at the end of the post. I have a…
Random
  • 3,158
  • 1
  • 15
  • 25
1
vote
1 answer

How to export an initialized board with sensors as a module

As a basic example, I have: //tempModule.js var five = require("johnny-five"); var board = new five.Board(); var temp; board.on("ready", function() { temp = new five.Temperature({ pin: "A2", controller: "AD8495" }); }); module.export =…
bstein5
  • 13
  • 3
1
vote
1 answer

How to read data continuously?

I'm trying to read data continuously from a sensor using node.js. Assuming my sensor is connected to digital pin 4 of Arduino, in the node side of the code how do I program it? I did try this: Node.js code: var five = require("johnny-five"); var…
Rakshith G B
  • 816
  • 2
  • 8
  • 24
1
vote
0 answers

Node.JS Child Process on the Arduino Yún is exiting when starting the parent-process via autostart

i´ve programmed a heating control with node.js, running on an arduino yun and it works just fine. A parent-process communicates with a server and forks a child-process, which is doing the control. I use fork(), the johnny-five lib and the…
1
vote
0 answers

Arduino Uno and Johnny-Five stops after few seconds

I am using Arduino Uno, Node.js and Johnny-Five for one of my projects. When I try to run the code below everything works just fine, I get the feedback from the sensor. After few seconds the Node.js just stops not giving me any reason. I tested the…
pawel
  • 7
  • 4
1
vote
2 answers

Arduino, johnny-five, can it work without connected computer?

I am new guy on Arduino and johnny-five. I am not clear about the way johnny-five work. JS code will run on computer or run directly on Arduino board? Besides, can we use johnny-five for IoT? because I have not found any component to support Arduino…
Jacky Phuong
  • 457
  • 1
  • 7
  • 21
1
vote
2 answers

How to run johnny-five on Ubuntu 15.04?

$ node hello.js 1436894483255 Device(s) /dev/ttyUSB0 1436894483279 Connected /dev/ttyUSB0 1436894493287 Device or Firmware Error A timeout occurred while connecting to the Board. Please check that you've properly flashed the board with the…
Nainesh Gohil
  • 51
  • 1
  • 2
1
vote
3 answers

The relationship between Firmata, Arduino and Node js

This is a basic question of understanding. I'm trying to follow this explanation http://www.barryvandam.com/node-js-communicating-with-arduino/ but something there sounds a bit off to me. As far as I understood before, I only need to push the…
Gold Smith
  • 13
  • 3
1
vote
2 answers

Reading input pins with johnny-five and arduino

I'm working on an application using node.js and arduino. I'm using the johnny-five framework and have uploaded the StandardFirmata sketch to my arduino, which has an arcade controller connected to it on pins 2, 3, 4 and 5. this is my…
Sven Lombaert
  • 85
  • 1
  • 7
1
vote
1 answer

Refreshing the frame coming from the Leap Motion when in a while loop

I have just begun programming in JS for the Leap Motion. I am working on a project where I can control motors based on hand gestures that are being read from the Leap Motion. The frames are being parsed and then commands are being sent to the motors…
1
vote
1 answer

Can't install latest package version from npm

I'm trying to install https://www.npmjs.org/package/galileo-io via npm, and it keeps on installing 0.3.10 instead of 0.4.0, which is the latest version. Here's a screenshot when I try to force it to install…
Ankur Jain
  • 35
  • 1
  • 4
1
vote
2 answers

Multiple Arduino Boards using Johnny five

I am programming arduino boards in javascript. I am trying to connect multiple arduino boards using the johnny-five library. I followed the johnny-five documentation and I can strobe the led 13 on both boards at once. However my issue is I want to…
Peter Smith
  • 53
  • 1
  • 9