serial communication

0 votes

 am new to johnny-five.js framework (javascript-iot) I would like to do some "hello world" in johnny-five by blinking the onboard led at the arduino board and according to some tutorials the board is at default pin 13 and this is the error..

/home/botkiller/javascript/samplej5/node_modules/bindings/bindings.js:96 throw err ^

Error: Could not locate the bindings file. Tried: → /home/botkiller/javascript/samplej5/node_modules/serialport/build/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/build/Debug/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/build/Release/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/out/Debug/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/Debug/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/out/Release/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/Release/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/build/default/serialport.node → /home/botkiller/javascript/samplej5/node_modules/serialport/compiled/10.0.0/linux/x64/serialport.node at bindings (/home/botkiller/javascript/samplej5/node_modules/bindings/bindings.js:93:9) at Object. (/home/botkiller/javascript/samplej5/node_modules/serialport/lib/bindings/linux.js:2:36) at Module._compile (internal/modules/cjs/loader.js:678:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) at Function.Module._load (internal/modules/cjs/loader.js:520:3) at Module.require (internal/modules/cjs/loader.js:626:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/home/botkiller/javascript/samplej5/node_modules/serialport/lib/bindings/auto-detect.js:16:22)

I uploaded the standard firmata at my board and install all the dependencies to use the johnny-five to arduino...

Here is my code:

const j5 = require('johnny-five');
const board = new j5.Board();

board.on("ready", function(){

    this.pinMode(13, 1);
    this.loop(1000, function (){
        this.digitalWrite(13, 1);
    });

});
Nov 22, 2018 in IoT (Internet of Things) by Shubham
• 13,490 points
731 views

1 answer to this question.

0 votes

You can try downloading the npm and node.js through linuxbrew but install them not in root. Which it is the cause of the error, that the computer can't communicate the device (Arduino) because you have to access the root library of your computer..

answered Nov 22, 2018 by Upasana
• 8,620 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

IoT in Serial Communication

I'll put it a link below, which ...READ MORE

answered Jan 28, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points
1,235 views
0 votes
1 answer

Faster communication between two ESP8266 in client-server setup

Try following. Server loop void loop() { // ...READ MORE

answered Jul 13, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
6,831 views
0 votes
2 answers

AttributeError: 'module' object has no attribute 'Serial'

I see where the problem is. I ...READ MORE

answered Aug 14, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
10,428 views
0 votes
1 answer

OMA LWM2M communication with Arduino

You'll have to understand that an Arduino ...READ MORE

answered Aug 28, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,836 views
0 votes
1 answer

Internet Communication with End-to-End Feature

Even if it's not a programming question ...READ MORE

answered Sep 4, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
656 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Suggest Implementation method for Smart Parking Points

They are different things. Raspberry PI is ...READ MORE

answered Aug 24, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
682 views
0 votes
1 answer

AMQP Communication Multiplexing

I've recently built such an architecture, maybe ...READ MORE

answered Nov 14, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,105 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP