Johnny-five: Running johnny five programm without laptop

Created on 14 Feb 2015  路  10Comments  路  Source: rwaldron/johnny-five

Hi guys,

It might be a silly and dumb question, but is it also possible to upload to program to the arduino? So it can run without interference of a computer? I can't find any documentation about this.

Cheers.

Most helpful comment

Thanks for all the info! 馃槵

All 10 comments

It might be a silly and dumb question

There is no such thing :P

but is it also possible to upload to program to the arduino?

No, not the Arduino specifically, but yes you can run your Johnny-Five code directly on a BeagleBone, Raspberry PI, Linino One, Galileo or Edison (and others in progress).

https://github.com/rwaldron/johnny-five/wiki/IO-Plugins

Hi @rwaldron, why is not possible to do that with Arduino? I've seen Arduino working without any laptop or dependency.... Just the Arduino with something to control 馃幃. It'd be really good to do that.

http://forum.arduino.cc/index.php?topic=2089.0

Thanks.

@sant123 it's certainly possible to use an Arduino without a connection to a laptop, but it's not possible to use Johnny-Five with an Arduino, since the JavaScript must run on some capable host (which the Arduino is not)

That sounds really sad @rwaldron, because after the program has been executed it should persist it and then it could be used without a laptop; like Arduino IDE.

By the way, thank you!

The Arduino doesn't host a JavaScript runtime. If you want to execute Johnny-Five code on a device, you'll need to use a platform that runs Linux and is capable of supporting Node.js. Otherwise, it's a host/client relationship that requires some kind of tether. It's not "sad", it's just the reality of supporting a variety of disparate hardware platforms.

@stefanvermaas To run JavaScript inside a hardware without an external computer I recommend to use Tessel 2.

Thanks for all the info! 馃槵

Hey there,

I am a bit confused. How is this project intended to be used if it can only be used with a PC attached to your hardware? Is this just for drafting things? How would you go und run your Arduino based hardware if you don't want to run a Laptop next to your IOT project?

Still I don't want to talk down on the project, I really appreciate it, I am just wondering how to use it.

Johnny-Five is built on node.js, so it's not going to run on a humble Arduino. There are a number of single board computers that have GPIO on board and can run node.js and Johnny-Five (Raspberry Pi, Tessel 2, Beaglebone, etc) so you have a way to create a self-contained device with J5. If it has to be on a humble device like an Uno you will need a host PC connected via serial, Bluetooth, wi-fi or whatever.

lowjs looks interesting. I haven't spent any time with it so I can't comment on it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielhep picture danielhep  路  4Comments

lezabour picture lezabour  路  12Comments

beriberikix picture beriberikix  路  11Comments

hxlnt picture hxlnt  路  6Comments

cannehag picture cannehag  路  12Comments