Questions tagged [johnny-five]

Firmata based JavaScript Arduino Framework

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

107 questions
0
votes
1 answer

Is there a way to send C/C++ commands using Johnny-Five?

Currently running a number of ESP8266s flashed with StandardFirmataWiFi using a central linux machine running J5. So instead setting up a bunch of micro-controllers to run autonomously, they are all WiFi enabled and under the command of a single…
WhatsYourFunction
  • 621
  • 1
  • 9
  • 25
0
votes
1 answer

Johnny-Five, I2C, Controlling multiple temperature sensors using ESP8266

I'm trying figure out how to control multiple temperature sensors. THE SETUP: 2 ESP8266 Micro Controllers 2 MCP9808 Temperature Sensors 1 Machine controlling both ESPs using Johnny-Five. NOTE: Each ESP8266 micro controller handles one MCP9808…
WhatsYourFunction
  • 621
  • 1
  • 9
  • 25
0
votes
1 answer

Kill a Child Process in Node.js while still running Server

I am trying to kill a child process I have running within my server. Basically the child process runs johnny-five code I've written in an online terminal in React to my server. When I run the child process, the code works great but if I want to kill…
Moth Man
  • 11
  • 1
0
votes
2 answers

Using arduino to change webpage

I'm trying to make a video on a webpage change by clicking on a physical button. The button is connected to an Arduino and I can get information from it with Johnny Five, yet I'm not able to make that button press switch between 2 video's on the…
Jelle Schräder
  • 185
  • 2
  • 13
0
votes
1 answer

Trying to find a good way to control servos at different speeds using johnny-five.io

I am currently trying to figure out a configuration in controlling servos connected to Arduinos using Nodebot johnny-five.io hosted on an RPi. My main goal is to make a hexapod from scratch; I don't like the idea of kits because it's all cookie…
JSArrakis
  • 777
  • 1
  • 9
  • 22
0
votes
1 answer

Cannot find module './accelerometer'

I'm getting the below error when trying to run johnny-five on my tessel 2: Error: Cannot find module './accelerometer' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require…
Phillip Hogan
  • 123
  • 1
  • 2
  • 9
0
votes
1 answer

Passing command line arguments to script running on Tessel

I am trying to run a simple script for Tessel passing command arguments and expect them to be available in process.argv, but only getting the first two of them. Running script via t2 run index.js myparam Logging process.argv I am getting […
Caminante
  • 46
  • 6
0
votes
1 answer

serial port close issue in node red

i am using johnny-five and the problem is how to close the serial port which is already opend? the problem is when i re-deploy the code in the node red it throws an error as shown below: 10 Feb 10:38:33 - [info] Stopping flows 10 Feb…
0
votes
2 answers

ReferenceError in node using readline for user input

I've been playing with Raspberry Pi and Node for fun. I thought for a simple experiment what if I grabbed some user input to turn an LED on and off. const readline = require('readline'); const log = console.log; const five =…
fromspace
  • 355
  • 3
  • 18
0
votes
1 answer

Meteor 1.5, johnny-five, serialport connect wrongly

I need help with Meteor 1.5, johnny-five, serialport. I'm on MacOS. I'm following this guide https://github.com/studiorabota/meteor-johnny-five-tutorial I made a few changes to the code due to new Meteor version and support NPM. My NodeJs version…
MarkZ
  • 280
  • 3
  • 14
0
votes
0 answers

LCD not working in node.js + Arduino project

I am following this tutorial, but I am doing a very basic version where I just want to print something out. All the pins and hardware specification are followed as per that tutorial. Below is my app.js code: var five = require('johnny-five'); var…
codeinprogress
  • 3,193
  • 7
  • 43
  • 69
0
votes
1 answer

Using LCD Library with Johnny Five on Node Js and Arduino

I am trying to make my lcd turn it off the backlight and on again. The command to turn it on: lcd.noBacklight(); is working fine, but I don't know how to turn it on again. var five = require("johnny-five"); var board = new…
0
votes
1 answer

C-Lang check failed in React-Hardware/Particle

I am using React, React Hardware ([https://github.com/iamdustan/react-hardware/]), and Johnny-Five with the Particle Photon. This error stack below comes up when I run my lib/app.js file: # Fatal error in ../deps/v8/src/api.cc, line 1062 # Check…
kopasetik
  • 63
  • 5
0
votes
0 answers

Socket.io and nodeJS javascript robotics

I am currently working at a nodeJS robotics app and i am trying to use sockets.io in order to show some messages and data in browser. I have the following nodeJS code: app.get('/', function(req, res){ …
Codrut Tapu
  • 231
  • 1
  • 2
  • 6
0
votes
1 answer

Can't control the LED by a single html file and johnny five

I'm newbie for this one. I have found some code to controlling Arduino led by a single html file. They said that we must use the johnny-five and node-js protocol to control it. But I found a problem with this way, I succeed to connect to Arduino and…
JeJe
  • 55
  • 1
  • 7